Created
January 30, 2011 23:55
-
-
Save kitschpatrol/803443 to your computer and use it in GitHub Desktop.
this goes in draw,
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
glPushMatrix(); | |
glTranslatef(panX, panY, panZ); | |
glRotatef(rvX, 0, 1, 0); // rotate around y | |
glRotatef(rvY, 1, 0, 0); // rotate around x | |
glEnable(GL_TEXTURE_2D); | |
glBindTexture(GL_TEXTURE_2D, (GLuint)mapBalls[i].mapTexture.textureName[0]); | |
gluSphere(sphere, 200, 30, 30); | |
glDisable(GL_TEXTURE_2D); | |
glPopMatrix(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Throw this in your setup to get the context together: