public class ShaderUniform extends ShaderDefault implements java.lang.AutoCloseable
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty |
private static org.apache.logging.log4j.Logger |
LOGGER |
private IShaderManager |
shaderManager |
private java.lang.String |
shaderName |
private int |
uniformCount |
private java.nio.FloatBuffer |
uniformFloatBuffer |
private java.nio.IntBuffer |
uniformIntBuffer |
private int |
uniformLocation |
private int |
uniformType |
Constructor and Description |
---|
ShaderUniform(java.lang.String name,
int type,
int count,
IShaderManager manager) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static void |
func_227805_a_(int p_227805_0_,
int p_227805_1_) |
static int |
func_227806_a_(int p_227806_0_,
java.lang.CharSequence p_227806_1_) |
static int |
func_227807_b_(int p_227807_0_,
java.lang.CharSequence p_227807_1_) |
java.lang.String |
getShaderName() |
private void |
markDirty() |
static int |
parseType(java.lang.String typeName) |
void |
set(float p_148090_1_) |
void |
set(float[] p_148097_1_) |
void |
set(float p_148087_1_,
float p_148087_2_) |
void |
set(float p_148095_1_,
float p_148095_2_,
float p_148095_3_) |
void |
set(float p_148081_1_,
float p_148081_2_,
float p_148081_3_,
float p_148081_4_) |
void |
set(int p_148083_1_,
int p_148083_2_,
int p_148083_3_,
int p_148083_4_) |
void |
set(Matrix4f p_195652_1_) |
void |
setSafe(float p_148092_1_,
float p_148092_2_,
float p_148092_3_,
float p_148092_4_) |
void |
setUniformLocation(int uniformLocationIn) |
void |
upload() |
private void |
uploadFloat() |
private void |
uploadFloatMatrix() |
private void |
uploadInt() |
private static final org.apache.logging.log4j.Logger LOGGER
private int uniformLocation
private final int uniformCount
private final int uniformType
private final java.nio.IntBuffer uniformIntBuffer
private final java.nio.FloatBuffer uniformFloatBuffer
private final java.lang.String shaderName
private boolean dirty
private final IShaderManager shaderManager
public ShaderUniform(java.lang.String name, int type, int count, IShaderManager manager)
public static int func_227806_a_(int p_227806_0_, java.lang.CharSequence p_227806_1_)
public static void func_227805_a_(int p_227805_0_, int p_227805_1_)
public static int func_227807_b_(int p_227807_0_, java.lang.CharSequence p_227807_1_)
public void close()
close
in interface java.lang.AutoCloseable
private void markDirty()
public static int parseType(java.lang.String typeName)
public void setUniformLocation(int uniformLocationIn)
public java.lang.String getShaderName()
public void set(float p_148090_1_)
set
in class ShaderDefault
public void set(float p_148087_1_, float p_148087_2_)
set
in class ShaderDefault
public void set(float p_148095_1_, float p_148095_2_, float p_148095_3_)
set
in class ShaderDefault
public void set(float p_148081_1_, float p_148081_2_, float p_148081_3_, float p_148081_4_)
set
in class ShaderDefault
public void setSafe(float p_148092_1_, float p_148092_2_, float p_148092_3_, float p_148092_4_)
setSafe
in class ShaderDefault
public void set(int p_148083_1_, int p_148083_2_, int p_148083_3_, int p_148083_4_)
set
in class ShaderDefault
public void set(float[] p_148097_1_)
set
in class ShaderDefault
public void set(Matrix4f p_195652_1_)
set
in class ShaderDefault
public void upload()
private void uploadInt()
private void uploadFloat()
private void uploadFloatMatrix()