|
| enum | MDRAttribLocation {
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3,
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3,
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3
} |
| |
| enum | MDRUniformLocation {
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3,
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3,
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3
} |
| |
| enum | MDRAttribLocation {
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3,
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3,
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3
} |
| |
| enum | MDRUniformLocation {
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3,
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3,
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3
} |
| |
| enum | MDRAttribLocation {
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3,
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3,
ATTRIB_LOC_VERTEX = 0,
ATTRIB_LOC_COLOR = 1,
ATTRIB_LOC_TEXCOORD0 = 2,
ATTRIBS_COUNT = 3
} |
| |
| enum | MDRUniformLocation {
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3,
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3,
UNIFORM_LOC_MATRIX_MVP = 0,
UNIFORM_LOC_MATRIX_T0 = 1,
UNIFORM_LOC_SAMPLER0 = 2,
UNIFORM_LOC_COUNT = 3
} |
| |
| typedef GLint | MDRLocValueType |
| |
| typedef GLint | MDRLocValueType |
| |
| typedef GLint | MDRLocValueType |
| |
|
| | MDRRendererProgram () |
| |
| | ~MDRRendererProgram () |
| |
| MDRLocValueType | getLocAttrib (MDRAttribLocation aAttribLocationType) const |
| | Returns native handle to an attribute, which is used for uploading vertices, coordinates, colors etc.
|
| |
| MDRLocValueType | getLocUniform (MDRUniformLocation aUniformLocationType) const |
| | Returns native handle to a uniform parameter such as: MVP matrix, a texture matrix and a texture sampler.
|
| |
| bool | initialize (const MPath &aPathVP, const MPath &aPathFP) |
| | Loads vertex and fragment programs from a given file names and sets up attributes and uniforms handlers.
|
| |
| void | use () const |
| | Binds vertex and fragment programs.
|
| |
| void | setUniform (MDRUniformLocation aUniformLocationType, const MMatrix4f &aMatrix) const |
| | Sets a matrix value for a specific uniform parameter.
|
| |
| void | setUniform (MDRUniformLocation aUniformLocationType, int aValue) const |
| | Sets an integer value for a specific uniform parameter.
|
| |
| | MDRRendererProgram () |
| |
| | ~MDRRendererProgram () |
| |
| MDRLocValueType | getLocAttrib (MDRAttribLocation aAttribLocationType) const |
| | Returns native handle to an attribute, which is used for uploading vertices, coordinates, colors etc.
|
| |
| MDRLocValueType | getLocUniform (MDRUniformLocation aUniformLocationType) const |
| | Returns native handle to a uniform parameter such as: MVP matrix, a texture matrix and a texture sampler.
|
| |
| bool | initialize (const MPath &aPathVP, const MPath &aPathFP) |
| | Loads vertex and fragment programs from a given file names and sets up attributes and uniforms handlers.
|
| |
| void | use () const |
| | Binds vertex and fragment programs.
|
| |
| void | setUniform (MDRUniformLocation aUniformLocationType, const MMatrix4f &aMatrix) const |
| | Sets a matrix value for a specific uniform parameter.
|
| |
| void | setUniform (MDRUniformLocation aUniformLocationType, int aValue) const |
| | Sets an integer value for a specific uniform parameter.
|
| |
| | MDRRendererProgram () |
| |
| | ~MDRRendererProgram () |
| |
| MDRLocValueType | getLocAttrib (MDRAttribLocation aAttribLocationType) const |
| | Returns native handle to an attribute, which is used for uploading vertices, coordinates, colors etc.
|
| |
| MDRLocValueType | getLocUniform (MDRUniformLocation aUniformLocationType) const |
| | Returns native handle to a uniform parameter such as: MVP matrix, a texture matrix and a texture sampler.
|
| |
| bool | initialize (const MPath &aPathVP, const MPath &aPathFP) |
| | Loads vertex and fragment programs from a given file names and sets up attributes and uniforms handlers.
|
| |
| void | use () const |
| | Binds vertex and fragment programs.
|
| |
| void | setUniform (MDRUniformLocation aUniformLocationType, const MMatrix4f &aMatrix) const |
| | Sets a matrix value for a specific uniform parameter.
|
| |
| void | setUniform (MDRUniformLocation aUniformLocationType, int aValue) const |
| | Sets an integer value for a specific uniform parameter.
|
| |
The class is a specialized wrapper over vertex and fragment programs and parameters associated to them just for this example purpose.