simple-glut-test.cpp

Go to the documentation of this file.
00001 /*
00002  * simple-glut-test.cpp
00003  *
00004  * Quick program to test the ability to compile and link OpenGL/GLU/glut
00005  * programs.  This is the "Hello World" of OpenGL/glut.
00006  */
00007 
00008 #include "wave-glut/wave-glut.h"
00009 
00010 
00011 void display() { /* empty function   required as of glut 3.0 */ }
00012 
00013 int main(int argc, char *argv[])
00014 {
00015         glutInit(&argc, argv);
00016         glutInitDisplayMode(GLUT_RGB | GLUT_DEPTH | GLUT_DOUBLE);
00017         glutInitWindowSize(800,600);
00018         glutCreateWindow("Hello World");
00019         glutDisplayFunc(display);
00020         glutMainLoop(); 
00021         return 0;
00022 }