Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "stdafx.h"
- #include <Windows.h>
- #include <gl\GL.h>
- #include <gl\GLU.h>
- #include "glut.h"
- void display();
- float angle = 0.0;
- void idle();
- int main(int argc, char* argv[])
- {
- glutInit(&argc, argv);
- glutInitWindowPosition(10, 10);
- glutInitWindowSize(640, 480);
- glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH);
- glutCreateWindow("Glut Window: Hello World");
- glPushMatrix();
- glRotatef(angle, 0.0, 1.0, 0.0);
- glutWireTeapot(0.5);
- glPopMatrix();
- glutDisplayFunc(display);
- glutIdleFunc(idle);
- glutMainLoop();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement