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 dll
intermediary net/minecraft/class_284
named net/minecraft/client/gl/GlUniform
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
close()
static int
getAttribLocation(int program, CharSequence name)
String
getName()
static int
getTypeIndex(String typeName)
static int
getUniformLocation(int program, CharSequence name)
private void
markStateDirty()
void
set(float value1)
void
set(float[] values)
void
set(float value1, float value2)
void
set(float value1, float value2, float value3)
void
set(float value1, float value2, float value3, float value4)
void
set(int value1, int value2, int value3, int value4)
void
set(Matrix4f values)
void
setForDataType(float value1, float value2, float value3, float value4)
void
setLoc(int loc)
static void
uniform1(int location, int value)
void
upload()
private void
uploadFloats()
private void
uploadInts()
private void
uploadMatrix()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector official a
Ldll;a:Lorg/apache/logging/log4j/Logger;
intermediary field_1548
Lnet/minecraft/class_284;field_1548:Lorg/apache/logging/log4j/Logger;
named LOGGER
Lnet/minecraft/client/gl/GlUniform;LOGGER:Lorg/apache/logging/log4j/Logger;
-
loc
private int loc- Mappings:
Namespace Name Mixin selector official b
Ldll;b:I
intermediary field_1545
Lnet/minecraft/class_284;field_1545:I
named loc
Lnet/minecraft/client/gl/GlUniform;loc:I
-
count
private final int count- Mappings:
Namespace Name Mixin selector official c
Ldll;c:I
intermediary field_1544
Lnet/minecraft/class_284;field_1544:I
named count
Lnet/minecraft/client/gl/GlUniform;count:I
-
dataType
private final int dataType- Mappings:
Namespace Name Mixin selector official d
Ldll;d:I
intermediary field_1543
Lnet/minecraft/class_284;field_1543:I
named dataType
Lnet/minecraft/client/gl/GlUniform;dataType:I
-
intData
- Mappings:
Namespace Name Mixin selector official e
Ldll;e:Ljava/nio/IntBuffer;
intermediary field_1547
Lnet/minecraft/class_284;field_1547:Ljava/nio/IntBuffer;
named intData
Lnet/minecraft/client/gl/GlUniform;intData:Ljava/nio/IntBuffer;
-
floatData
- Mappings:
Namespace Name Mixin selector official f
Ldll;f:Ljava/nio/FloatBuffer;
intermediary field_1549
Lnet/minecraft/class_284;field_1549:Ljava/nio/FloatBuffer;
named floatData
Lnet/minecraft/client/gl/GlUniform;floatData:Ljava/nio/FloatBuffer;
-
name
- Mappings:
Namespace Name Mixin selector official g
Ldll;g:Ljava/lang/String;
intermediary field_1546
Lnet/minecraft/class_284;field_1546:Ljava/lang/String;
named name
Lnet/minecraft/client/gl/GlUniform;name:Ljava/lang/String;
-
stateDirty
private boolean stateDirty- Mappings:
Namespace Name Mixin selector official h
Ldll;h:Z
intermediary field_1542
Lnet/minecraft/class_284;field_1542:Z
named stateDirty
Lnet/minecraft/client/gl/GlUniform;stateDirty:Z
-
program
- Mappings:
Namespace Name Mixin selector official i
Ldll;i:Ldli;
intermediary field_1541
Lnet/minecraft/class_284;field_1541:Lnet/minecraft/class_3679;
named program
Lnet/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;)V
intermediary <init>
Lnet/minecraft/class_284;<init>(Ljava/lang/String;IILnet/minecraft/class_3679;)V
named <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 a
Ldll;a(ILjava/lang/CharSequence;)I
intermediary method_22096
Lnet/minecraft/class_284;method_22096(ILjava/lang/CharSequence;)I
named getUniformLocation
Lnet/minecraft/client/gl/GlUniform;getUniformLocation(ILjava/lang/CharSequence;)I
-
uniform1
public static void uniform1(int location, int value)- Mappings:
Namespace Name Mixin selector official a
Ldll;a(II)V
intermediary method_22095
Lnet/minecraft/class_284;method_22095(II)V
named uniform1
Lnet/minecraft/client/gl/GlUniform;uniform1(II)V
-
getAttribLocation
- Mappings:
Namespace Name Mixin selector official b
Ldll;b(ILjava/lang/CharSequence;)I
intermediary method_22097
Lnet/minecraft/class_284;method_22097(ILjava/lang/CharSequence;)I
named getAttribLocation
Lnet/minecraft/client/gl/GlUniform;getAttribLocation(ILjava/lang/CharSequence;)I
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Mappings:
Namespace Name Mixin selector official close
Ldll;close()V
intermediary close
Lnet/minecraft/class_284;close()V
named close
Lnet/minecraft/client/gl/GlUniform;close()V
-
markStateDirty
private void markStateDirty()- Mappings:
Namespace Name Mixin selector official c
Ldll;c()V
intermediary method_1302
Lnet/minecraft/class_284;method_1302()V
named markStateDirty
Lnet/minecraft/client/gl/GlUniform;markStateDirty()V
-
getTypeIndex
- Mappings:
Namespace Name Mixin selector official a
Ldll;a(Ljava/lang/String;)I
intermediary method_1299
Lnet/minecraft/class_284;method_1299(Ljava/lang/String;)I
named getTypeIndex
Lnet/minecraft/client/gl/GlUniform;getTypeIndex(Ljava/lang/String;)I
-
setLoc
public void setLoc(int loc)- Mappings:
Namespace Name Mixin selector official a
Ldll;a(I)V
intermediary method_1297
Lnet/minecraft/class_284;method_1297(I)V
named setLoc
Lnet/minecraft/client/gl/GlUniform;setLoc(I)V
-
getName
- Mappings:
Namespace Name Mixin selector official a
Ldll;a()Ljava/lang/String;
intermediary method_1298
Lnet/minecraft/class_284;method_1298()Ljava/lang/String;
named getName
Lnet/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:
setForDataType
in classUniform
- Mappings:
Namespace Name Mixin selector official b
Ldlg;b(FFFF)V
intermediary method_1252
Lnet/minecraft/class_278;method_1252(FFFF)V
named setForDataType
Lnet/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 b
Ldll;b()V
intermediary method_1300
Lnet/minecraft/class_284;method_1300()V
named upload
Lnet/minecraft/client/gl/GlUniform;upload()V
-
uploadInts
private void uploadInts()- Mappings:
Namespace Name Mixin selector official d
Ldll;d()V
intermediary method_1303
Lnet/minecraft/class_284;method_1303()V
named uploadInts
Lnet/minecraft/client/gl/GlUniform;uploadInts()V
-
uploadFloats
private void uploadFloats()- Mappings:
Namespace Name Mixin selector official e
Ldll;e()V
intermediary method_1301
Lnet/minecraft/class_284;method_1301()V
named uploadFloats
Lnet/minecraft/client/gl/GlUniform;uploadFloats()V
-
uploadMatrix
private void uploadMatrix()- Mappings:
Namespace Name Mixin selector official f
Ldll;f()V
intermediary method_1296
Lnet/minecraft/class_284;method_1296()V
named uploadMatrix
Lnet/minecraft/client/gl/GlUniform;uploadMatrix()V
-