Quantcast
Channel: beginners - openFrameworks
Viewing all articles
Browse latest Browse all 4929

glMultMatrixf with ofGLProgrammableRenderer::TYPE

$
0
0

@nicolas wrote:

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!

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 4929

Trending Articles