Package net.minecraft.client.gl
Class GlUniform
java.lang.Object
net.minecraft.client.gl.Uniform
net.minecraft.client.gl.GlUniform
- All Implemented Interfaces:
AutoCloseable
Represents a uniform variable.
- See Also:
- Mappings:
Namespace Name named net/minecraft/client/gl/GlUniform
intermediary net/minecraft/class_284
official fjm
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
getName()
getType()
static int
getUniformLocation
(int program, CharSequence name) final void
set
(float value1) final void
set
(float[] values) final void
set
(float value1, float value2) final void
set
(float value1, float value2, float value3) final void
set
(int value) final void
set
(int[] values) final void
set
(int value1, int value2, int value3) final void
final void
final void
setAndFlip
(float value1, float value2, float value3, float value4) void
setLocation
(int location) static void
setUniform
(int location, int value) void
upload()
-
Field Details
-
LOGGER
- Mappings:
Namespace Name Mixin selector named LOGGER
Lnet/minecraft/client/gl/GlUniform;LOGGER:Lorg/slf4j/Logger;
intermediary field_1548
Lnet/minecraft/class_284;field_1548:Lorg/slf4j/Logger;
official a
Lfjm;a:Lorg/slf4j/Logger;
-
location
private int location- Mappings:
Namespace Name Mixin selector named location
Lnet/minecraft/client/gl/GlUniform;location:I
intermediary field_1545
Lnet/minecraft/class_284;field_1545:I
official b
Lfjm;b:I
-
type
- Mappings:
Namespace Name Mixin selector named type
Lnet/minecraft/client/gl/GlUniform;type:Lnet/minecraft/client/gl/UniformType;
intermediary field_56740
Lnet/minecraft/class_284;field_56740:Lnet/minecraft/class_10789;
official c
Lfjm;c:Lfku;
-
intData
- Mappings:
Namespace Name Mixin selector named intData
Lnet/minecraft/client/gl/GlUniform;intData:Ljava/nio/IntBuffer;
intermediary field_1547
Lnet/minecraft/class_284;field_1547:Ljava/nio/IntBuffer;
official d
Lfjm;d:Ljava/nio/IntBuffer;
-
floatData
- Mappings:
Namespace Name Mixin selector named floatData
Lnet/minecraft/client/gl/GlUniform;floatData:Ljava/nio/FloatBuffer;
intermediary field_1549
Lnet/minecraft/class_284;field_1549:Ljava/nio/FloatBuffer;
official e
Lfjm;e:Ljava/nio/FloatBuffer;
-
name
- Mappings:
Namespace Name Mixin selector named name
Lnet/minecraft/client/gl/GlUniform;name:Ljava/lang/String;
intermediary field_1546
Lnet/minecraft/class_284;field_1546:Ljava/lang/String;
official f
Lfjm;f:Ljava/lang/String;
-
dirty
private boolean dirty- Mappings:
Namespace Name Mixin selector named dirty
Lnet/minecraft/client/gl/GlUniform;dirty:Z
intermediary field_57886
Lnet/minecraft/class_284;field_57886:Z
official g
Lfjm;g:Z
-
-
Constructor Details
-
GlUniform
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/gl/GlUniform;<init>(Ljava/lang/String;Lnet/minecraft/client/gl/UniformType;)V
intermediary <init>
Lnet/minecraft/class_284;<init>(Ljava/lang/String;Lnet/minecraft/class_10789;)V
official <init>
Lfjm;<init>(Ljava/lang/String;Lfku;)V
-
-
Method Details
-
getUniformLocation
- Mappings:
Namespace Name Mixin selector named getUniformLocation
Lnet/minecraft/client/gl/GlUniform;getUniformLocation(ILjava/lang/CharSequence;)I
intermediary method_22096
Lnet/minecraft/class_284;method_22096(ILjava/lang/CharSequence;)I
official a
Lfjm;a(ILjava/lang/CharSequence;)I
-
setUniform
public static void setUniform(int location, int value) - Mappings:
Namespace Name Mixin selector named setUniform
Lnet/minecraft/client/gl/GlUniform;setUniform(II)V
intermediary method_22095
Lnet/minecraft/class_284;method_22095(II)V
official b
Lfjm;b(II)V
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
setLocation
public void setLocation(int location) - Mappings:
Namespace Name Mixin selector named setLocation
Lnet/minecraft/client/gl/GlUniform;setLocation(I)V
intermediary method_1297
Lnet/minecraft/class_284;method_1297(I)V
official b
Lfjm;b(I)V
-
getName
- Mappings:
Namespace Name Mixin selector named getName
Lnet/minecraft/client/gl/GlUniform;getName()Ljava/lang/String;
intermediary method_1298
Lnet/minecraft/class_284;method_1298()Ljava/lang/String;
official a
Lfjm;a()Ljava/lang/String;
-
getType
- Mappings:
Namespace Name Mixin selector named getType
Lnet/minecraft/client/gl/GlUniform;getType()Lnet/minecraft/client/gl/UniformType;
intermediary method_35662
Lnet/minecraft/class_284;method_35662()Lnet/minecraft/class_10789;
official b
Lfjm;b()Lfku;
-
set
public final void set(float value1) -
set
public final void set(float value1, float value2) -
set
public final void set(float value1, float value2, float value3) -
set
-
setAndFlip
public final void setAndFlip(float value1, float value2, float value3, float value4) - Overrides:
setAndFlip
in classUniform
- Mappings:
Namespace Name Mixin selector named setAndFlip
Lnet/minecraft/client/gl/Uniform;setAndFlip(FFFF)V
intermediary method_1254
Lnet/minecraft/class_278;method_1254(FFFF)V
official a
Lfja;a(FFFF)V
-
set
public final void set(int value) -
set
public final void set(int value1, int value2, int value3) -
set
public final void set(float[] values) -
set
public final void set(int[] values) -
set
-
upload
public void upload()- Mappings:
Namespace Name Mixin selector named upload
Lnet/minecraft/client/gl/GlUniform;upload()V
intermediary method_1300
Lnet/minecraft/class_284;method_1300()V
official c
Lfjm;c()V
-