318 |
|
|
319 |
{ |
{ |
320 |
"Type": "1", |
"Type": "1", |
321 |
"Name" : "TextureMatrix", |
"Name" : "SetMatrix", |
322 |
|
"Data" : "GLenum matrix;", |
323 |
|
"Params" : "GLToken matrix", |
324 |
|
"ParamCode" : """ |
325 |
|
this->matrix = matrix; |
326 |
|
""", |
327 |
"RenderCode" : """ |
"RenderCode" : """ |
328 |
DBG(dbg) << "Apply TextureMatrix\\n"; |
DBG(dbg) << "Apply TextureMatrix\\n"; |
329 |
glPushAttrib(GL_TRANSFORM_BIT); |
glPushAttrib(GL_TRANSFORM_BIT); |
330 |
glMatrixMode(GL_TEXTURE); |
glMatrixMode(matrix); |
331 |
glLoadIdentity(); |
glLoadIdentity(); |
332 |
coords1.performGL(); |
coords1.performGL(); |
333 |
glPopAttrib(); |
glPopAttrib(); |