Rotating 2 objects 1 remains static problem opengl
I want to rotate 2 objects out of 3. One object should remain static. But it's not happening. Please help. I using glPushMatrix() and glPopMatrix() for the objects that I want to rotate.
void CopenGLCoordView::DrawScene(CDC *pDC)
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);
glRotatef(rot, 1.0f, 0.0f, 0.0f);
glRotatef(rot, 0.0f, 1.0f, 0.0f);
glRotatef(rot, 0.0f, 0.0f, 1.0f);
With the above code nothing is rotating. I want the drawLine() line should be static while the axis and x,y,z should rotate. Please help how can I achieve this?..Thanks Sujan
This question is not Qt related, you should ask on "the opengl forum":http://www.opengl.org/discussion_boards/forum.php
I am using this in Qt project. Yes it is openGL question.
SGaist is right, this question is not Qt-related.