cocos2d-x
3.3
|
#include <CCGLProgramState.h>
Classes | |
union | U |
Public Member Functions | |
UniformValue () | |
UniformValue (Uniform *uniform, GLProgram *glprogram) | |
~UniformValue () | |
void | setFloat (float value) |
void | setInt (int value) |
void | setVec2 (const Vec2 &value) |
void | setVec3 (const Vec3 &value) |
void | setVec4 (const Vec4 &value) |
void | setMat4 (const Mat4 &value) |
void | setCallback (const std::function< void(GLProgram *, Uniform *)> &callback) |
void | setTexture (GLuint textureId, GLuint activeTexture) |
void | apply () |
Protected Attributes | |
Uniform * | _uniform |
GLProgram * | _glprogram |
bool | _useCallback |
union cocos2d::UniformValue::U | _value |
Friends | |
class | GLProgram |
class | GLProgramState |
UniformValue | ( | ) |
UniformValue | ( | Uniform * | uniform, |
GLProgram * | glprogram | ||
) |
~UniformValue | ( | ) |
void apply | ( | ) |
void setFloat | ( | float | value | ) |
void setInt | ( | int | value | ) |
void setMat4 | ( | const Mat4 & | value | ) |
void setTexture | ( | GLuint | textureId, |
GLuint | activeTexture | ||
) |
void setVec2 | ( | const Vec2 & | value | ) |
void setVec3 | ( | const Vec3 & | value | ) |
void setVec4 | ( | const Vec4 & | value | ) |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |