20 #include "../utils/lockable_object.h"
21 #include "../color/matrix.h"
69 std::map<std::string, MatrixParameter>
params;
void configure(Type type, unsigned short int width, unsigned short int height=1, unsigned int count=1)
T * getData(int index=0) const
MatrixParameter & operator=(MatrixParameter &&)
unsigned short int height
void setFloatMatrix4(std::string name, const float matrix[16])
Sets a float 4*4 matrix variable value.
float getFloat(const std::string &name) const
Retrieves a value of a scalar float uniform variable by its name.
void setInteger(std::string name, int value)
Sets a scalar integer uniform value.
void setFloat(std::string name, float value)
Sets a scalar float uniform value.
std::map< std::string, int > integers
std::map< std::string, MatrixParameter > params
void clear()
Removes all stored variables.
void setFloatMatrix3(std::string name, const float matrix[9])
Sets a float 3*3 matrix variable value.
void setFloatMatrix2(std::string name, const float matrix[4])
Sets a float 2*2 matrix variable value.
std::map< std::string, float > floats
void apply(Program &program)
void setFloatArray(std::string name, const std::vector< float > &values)
Sets a float array variable value.
std::map< std::string, std::vector< float > > floatArrays
return(jlong) new Beatmup jlong jstring name
jlong jstring jint jint jint z
jobject jlong jint jint y
jlong jstring jint jint jint jint w