Created
December 10, 2012 21:21
-
-
Save mbaranowski/4253529 to your computer and use it in GitHub Desktop.
openGL Axis
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
glBegin(GL_LINES); | |
glColor3f(1.0f,0.0f,0.0f); glVertex3f(0.0f, 0.0f, 0.0f); glVertex3f(1.0f, 0.0f, 0.0f); | |
glColor3f(0.0f,1.0f,0.0f); glVertex3f(0.0f, 0.0f, 0.0f); glVertex3f(0.0f, 1.0f, 0.0f); | |
glColor3f(0.0f,0.0f,1.0f); glVertex3f(0.0f, 0.0f, 0.0f); glVertex3f(0.0f, 0.0f, 1.0f); | |
glEnd( ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment