glMultMatrixf with ofGLProgrammableRenderer::TYPE

Hi all,

in the draw method of my class i have

ofPushMatrix();
glMultMatrixf(glMatrix);
ofSetColor(color);
getTextureReference().draw(0,0);
ofPopMatrix();

with my glMatrix already loaded and the transformations are applying correctly.

But when I add to the main.cpp file

ofSetCurrentRenderer(ofGLProgrammableRenderer::TYPE);

the glMultMatrixf doesn’t seem to work, even though the glMatrix is correct, and with the same values than when it’s working correctly.

Any ideas what’s going on?

Thanks!

glMultMatrix doesn’t exist anymore in opengl 3 since matrices are just uniforms in a shader you have to manually multiply the matrix in the computer and upload it to the shader. OF has a method to replicate the old behaviour, ofMultMatrix

1 Like

Thanks Arturo !!
Already tried it and now it’s working!

Thank you!