Rotation matrix

Hi,

I would like to rotate an object under openGL without using glRotate (because I use another representation than Euler angles). I have a 3 by 3 rotation matrix (that I can set to homogeneous 4 by 4) and I would like to rotate my object.

Should I load the modelview and multiply it by my rotation matrix?

Thanks,

c.

You can use glMultMatrix. Be sure to specify the elements in the correct order.

Though I don’t know what you would “load the modelview” for.

You mean that just to write glMultMatrix would be enough?

c.

he meant that you could do

glMatrixMode(Mode);
glMultMatrix(YOUR_ROTATION_MATRIX);

But which matrix mode should i choose?

GL_MODELVIEW