public class ShaderUniform
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
dirty |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ShaderManager |
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,
ShaderManager manager) |
Modifier and Type | Method and Description |
---|---|
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(float m00,
float m01,
float m02,
float m03,
float m10,
float m11,
float m12,
float m13,
float m20,
float m21,
float m22,
float m23,
float m30,
float m31,
float m32,
float m33) |
void |
set(int p_148083_1_,
int p_148083_2_,
int p_148083_3_,
int p_148083_4_) |
void |
set(org.lwjgl.util.vector.Matrix4f matrix) |
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 ShaderManager shaderManager
public ShaderUniform(java.lang.String name, int type, int count, ShaderManager manager)
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_)
public void set(float p_148087_1_, float p_148087_2_)
public void set(float p_148095_1_, float p_148095_2_, float p_148095_3_)
public void set(float p_148081_1_, float p_148081_2_, float p_148081_3_, float p_148081_4_)
public void setSafe(float p_148092_1_, float p_148092_2_, float p_148092_3_, float p_148092_4_)
public void set(int p_148083_1_, int p_148083_2_, int p_148083_3_, int p_148083_4_)
public void set(float[] p_148097_1_)
public void set(float m00, float m01, float m02, float m03, float m10, float m11, float m12, float m13, float m20, float m21, float m22, float m23, float m30, float m31, float m32, float m33)
public void set(org.lwjgl.util.vector.Matrix4f matrix)
public void upload()
private void uploadInt()
private void uploadFloat()
private void uploadFloatMatrix()