Package net.minecraft.client.gl
Class GlUniform
java.lang.Object
net.minecraft.client.gl.Uniform
net.minecraft.client.gl.GlUniform
- All Implemented Interfaces:
AutoCloseable
@Environment(CLIENT) public class GlUniform extends Uniform implements AutoCloseable
- Mappings:
Namespace Name official dllintermediary net/minecraft/class_284named net/minecraft/client/gl/GlUniform
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description voidclose()static intgetAttribLocation(int program, CharSequence name)StringgetName()static intgetTypeIndex(String typeName)static intgetUniformLocation(int program, CharSequence name)private voidmarkStateDirty()voidset(float value1)voidset(float[] values)voidset(float value1, float value2)voidset(float value1, float value2, float value3)voidset(float value1, float value2, float value3, float value4)voidset(int value1, int value2, int value3, int value4)voidset(Matrix4f values)voidsetForDataType(float value1, float value2, float value3, float value4)voidsetLoc(int loc)static voiduniform1(int location, int value)voidupload()private voiduploadFloats()private voiduploadInts()private voiduploadMatrix()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official aLdll;a:Lorg/apache/logging/log4j/Logger;intermediary field_1548Lnet/minecraft/class_284;field_1548:Lorg/apache/logging/log4j/Logger;named LOGGERLnet/minecraft/client/gl/GlUniform;LOGGER:Lorg/apache/logging/log4j/Logger;
-
loc
private int loc- Mappings:
Namespace Name Mixin selector official bLdll;b:Iintermediary field_1545Lnet/minecraft/class_284;field_1545:Inamed locLnet/minecraft/client/gl/GlUniform;loc:I
-
count
private final int count- Mappings:
Namespace Name Mixin selector official cLdll;c:Iintermediary field_1544Lnet/minecraft/class_284;field_1544:Inamed countLnet/minecraft/client/gl/GlUniform;count:I
-
dataType
private final int dataType- Mappings:
Namespace Name Mixin selector official dLdll;d:Iintermediary field_1543Lnet/minecraft/class_284;field_1543:Inamed dataTypeLnet/minecraft/client/gl/GlUniform;dataType:I
-
intData
- Mappings:
Namespace Name Mixin selector official eLdll;e:Ljava/nio/IntBuffer;intermediary field_1547Lnet/minecraft/class_284;field_1547:Ljava/nio/IntBuffer;named intDataLnet/minecraft/client/gl/GlUniform;intData:Ljava/nio/IntBuffer;
-
floatData
- Mappings:
Namespace Name Mixin selector official fLdll;f:Ljava/nio/FloatBuffer;intermediary field_1549Lnet/minecraft/class_284;field_1549:Ljava/nio/FloatBuffer;named floatDataLnet/minecraft/client/gl/GlUniform;floatData:Ljava/nio/FloatBuffer;
-
name
- Mappings:
Namespace Name Mixin selector official gLdll;g:Ljava/lang/String;intermediary field_1546Lnet/minecraft/class_284;field_1546:Ljava/lang/String;named nameLnet/minecraft/client/gl/GlUniform;name:Ljava/lang/String;
-
stateDirty
private boolean stateDirty- Mappings:
Namespace Name Mixin selector official hLdll;h:Zintermediary field_1542Lnet/minecraft/class_284;field_1542:Znamed stateDirtyLnet/minecraft/client/gl/GlUniform;stateDirty:Z
-
program
- Mappings:
Namespace Name Mixin selector official iLdll;i:Ldli;intermediary field_1541Lnet/minecraft/class_284;field_1541:Lnet/minecraft/class_3679;named programLnet/minecraft/client/gl/GlUniform;program:Lnet/minecraft/client/gl/GlProgram;
-
-
Constructor Details
-
GlUniform
- Mappings:
Namespace Name Mixin selector official <init>Ldll;<init>(Ljava/lang/String;IILdli;)Vintermediary <init>Lnet/minecraft/class_284;<init>(Ljava/lang/String;IILnet/minecraft/class_3679;)Vnamed <init>Lnet/minecraft/client/gl/GlUniform;<init>(Ljava/lang/String;IILnet/minecraft/client/gl/GlProgram;)V
-
-
Method Details
-
getUniformLocation
- Mappings:
Namespace Name Mixin selector official aLdll;a(ILjava/lang/CharSequence;)Iintermediary method_22096Lnet/minecraft/class_284;method_22096(ILjava/lang/CharSequence;)Inamed getUniformLocationLnet/minecraft/client/gl/GlUniform;getUniformLocation(ILjava/lang/CharSequence;)I
-
uniform1
public static void uniform1(int location, int value)- Mappings:
Namespace Name Mixin selector official aLdll;a(II)Vintermediary method_22095Lnet/minecraft/class_284;method_22095(II)Vnamed uniform1Lnet/minecraft/client/gl/GlUniform;uniform1(II)V
-
getAttribLocation
- Mappings:
Namespace Name Mixin selector official bLdll;b(ILjava/lang/CharSequence;)Iintermediary method_22097Lnet/minecraft/class_284;method_22097(ILjava/lang/CharSequence;)Inamed getAttribLocationLnet/minecraft/client/gl/GlUniform;getAttribLocation(ILjava/lang/CharSequence;)I
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Mappings:
Namespace Name Mixin selector official closeLdll;close()Vintermediary closeLnet/minecraft/class_284;close()Vnamed closeLnet/minecraft/client/gl/GlUniform;close()V
-
markStateDirty
private void markStateDirty()- Mappings:
Namespace Name Mixin selector official cLdll;c()Vintermediary method_1302Lnet/minecraft/class_284;method_1302()Vnamed markStateDirtyLnet/minecraft/client/gl/GlUniform;markStateDirty()V
-
getTypeIndex
- Mappings:
Namespace Name Mixin selector official aLdll;a(Ljava/lang/String;)Iintermediary method_1299Lnet/minecraft/class_284;method_1299(Ljava/lang/String;)Inamed getTypeIndexLnet/minecraft/client/gl/GlUniform;getTypeIndex(Ljava/lang/String;)I
-
setLoc
public void setLoc(int loc)- Mappings:
Namespace Name Mixin selector official aLdll;a(I)Vintermediary method_1297Lnet/minecraft/class_284;method_1297(I)Vnamed setLocLnet/minecraft/client/gl/GlUniform;setLoc(I)V
-
getName
- Mappings:
Namespace Name Mixin selector official aLdll;a()Ljava/lang/String;intermediary method_1298Lnet/minecraft/class_284;method_1298()Ljava/lang/String;named getNameLnet/minecraft/client/gl/GlUniform;getName()Ljava/lang/String;
-
set
public void set(float value1) -
set
public void set(float value1, float value2) -
set
public void set(float value1, float value2, float value3) -
set
public void set(float value1, float value2, float value3, float value4) -
setForDataType
public void setForDataType(float value1, float value2, float value3, float value4)- Overrides:
setForDataTypein classUniform- Mappings:
Namespace Name Mixin selector official bLdlg;b(FFFF)Vintermediary method_1252Lnet/minecraft/class_278;method_1252(FFFF)Vnamed setForDataTypeLnet/minecraft/client/gl/Uniform;setForDataType(FFFF)V
-
set
public void set(int value1, int value2, int value3, int value4) -
set
public void set(float[] values) -
set
-
upload
public void upload()- Mappings:
Namespace Name Mixin selector official bLdll;b()Vintermediary method_1300Lnet/minecraft/class_284;method_1300()Vnamed uploadLnet/minecraft/client/gl/GlUniform;upload()V
-
uploadInts
private void uploadInts()- Mappings:
Namespace Name Mixin selector official dLdll;d()Vintermediary method_1303Lnet/minecraft/class_284;method_1303()Vnamed uploadIntsLnet/minecraft/client/gl/GlUniform;uploadInts()V
-
uploadFloats
private void uploadFloats()- Mappings:
Namespace Name Mixin selector official eLdll;e()Vintermediary method_1301Lnet/minecraft/class_284;method_1301()Vnamed uploadFloatsLnet/minecraft/client/gl/GlUniform;uploadFloats()V
-
uploadMatrix
private void uploadMatrix()- Mappings:
Namespace Name Mixin selector official fLdll;f()Vintermediary method_1296Lnet/minecraft/class_284;method_1296()Vnamed uploadMatrixLnet/minecraft/client/gl/GlUniform;uploadMatrix()V
-