glRotatef(30.0f, 0.0f , 0.0f, 1.0f);
nothing is visible. But if i comment the above line it's ok apart that
I need to turn it a little.
Thanks
Michael
glEnable(GL_TEXTURE_2D);
XPLMBindTexture2d(gTexture[NEEDLE_TEXTURE], 0);
glTexEnvf(GL_TEXTURE_ENV,GL_TEXTURE_ENV_MODE,GL_MODULATE);
glBegin(GL_QUADS);
glTexCoord2f(1, 1.0f); glVertex3f(NadelLinks, NadelOben,
planeZ); // Bottom Right Of The Texture and Quad
glTexCoord2f(0, 1.0f); glVertex3f(NadelRechts, NadelOben,
planeZ); // Bottom Left Of The Texture and Quad
glTexCoord2f(0, 0.0f); glVertex3f(NadelRechts, NadelUnten,
planeZ); // Top Left Of The Texture and Quad
glTexCoord2f(1, 0.0f); glVertex3f(NadelLinks, NadelUnten,
planeZ); // Top Right Of The Texture and Quad
glEnd();
Hello
If you use glRotate, you rotate the view (~your eye), not the object, so
the drawn object had certainly moved out of view. Try with a smaller
angle, like 5�.
Hope this help
Cathy L.