Guest User

Untitled

a guest
Aug 19th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. How Does OpenGL's Coordinate System Work?
  2. #include <iostream>
  3. #include <stdlib.h>
  4. #include <GLUT/GLUT.h>
  5.  
  6. void RenderScene()
  7. {
  8. glLoadIdentity ();
  9. glClear(GL_COLOR_BUFFER_BIT);
  10.  
  11. glBegin( GL_POINTS );
  12.  
  13. glVertex3f( 0, 0, 0 );
  14.  
  15. glEnd();
  16.  
  17.  
  18. glFlush();
  19. }
  20.  
  21. int main(int argc, char **argv)
  22. {
  23. glutInit( &argc, argv );
  24. glutInitDisplayMode( GLUT_SINGLE | GLUT_RGB );
  25. glutInitWindowSize( 600, 600 );
  26. glutCreateWindow( "OpenGL" );
  27. glutDisplayFunc( RenderScene );
  28. glutMainLoop();
  29. return 0;
  30. }
Add Comment
Please, Sign In to add comment