Created
October 24, 2012 12:00
-
-
Save kenpower/3945700 to your computer and use it in GitHub Desktop.
Rotate OpengL box about centre
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
glTranslated(550,250,0); | |
glRotated(angle,0,0,1); | |
glTranslated(-550,-250,0); | |
glBegin(GL_LINE_LOOP); | |
glVertex2d(500,200); | |
glVertex2d(600,200); | |
glVertex2d(600,300); | |
glVertex2d(500,300); | |
glEnd(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment