@Environment(value=CLIENT) public class GlUniform extends Uniform implements AutoCloseable
Modifier and Type | Field and Description |
---|---|
private int |
count |
private int |
dataType |
private FloatBuffer |
floatData |
private IntBuffer |
intData |
private int |
loc |
private static Logger |
LOGGER |
private String |
name |
private GlProgram |
program |
private boolean |
stateDirty |
Constructor and Description |
---|
GlUniform(String name,
int dataType,
int count,
GlProgram program) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
static int |
getAttribLocation(int int2,
CharSequence charSequence) |
String |
getName() |
static int |
getTypeIndex(String typeName) |
static int |
getUniformLocation(int int2,
CharSequence charSequence) |
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 int2) |
static void |
uniform1(int int2,
int int3) |
void |
upload() |
private void |
uploadFloats() |
private void |
uploadInts() |
private void |
uploadMatrix() |
private static final Logger LOGGER
private int loc
private final int count
private final int dataType
private final IntBuffer intData
private final FloatBuffer floatData
private final String name
private boolean stateDirty
private final GlProgram program
public static int getUniformLocation(int int2, CharSequence charSequence)
public static void uniform1(int int2, int int3)
public static int getAttribLocation(int int2, CharSequence charSequence)
public void close()
close
in interface AutoCloseable
private void markStateDirty()
public static int getTypeIndex(String typeName)
public void setLoc(int int2)
public String getName()
public void set(float value1, float value2, float value3, float value4)
public void setForDataType(float value1, float value2, float value3, float value4)
setForDataType
in class Uniform
public void upload()
private void uploadInts()
private void uploadFloats()
private void uploadMatrix()