Created
March 28, 2013 01:52
-
-
Save MosheBerman/5259848 to your computer and use it in GitHub Desktop.
display two spheres?
This file contains hidden or 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
void display() | |
{ | |
// Clear the previous frame | |
glClear(GL_COLOR_BUFFER_BIT); | |
{ | |
glPushMatrix(); | |
glTranslatef(0.5, 0.5, 0); | |
glutWireSphere(0.2, 0.2, 10); | |
glPopMatrix(); | |
glPushMatrix(); | |
glTranslatef(0.5, 0.6, 0); | |
glutSolidSphere(0.1, 0.1, 10); | |
glPopMatrix(); | |
} | |
glEnd(); // Finish adding vertices | |
// Flush the buffers to the screen | |
glFlush(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment