Started porting GLUT example to Qt.

This commit is contained in:
David Williams
2009-03-26 23:03:49 +00:00
parent 50b3ff407e
commit fc7cf98347
4 changed files with 66 additions and 5 deletions

View File

@ -7,9 +7,24 @@
#include "OpenGLVertexBufferObjectSupport.h"
#include "Shapes.h"
#include "OpenGLWidget.h"
#include <windows.h> // Standard Header For Most Programs
//#define USE_OPENGL_VERTEX_BUFFERS_OBJECTS
#include <QApplication>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
OpenGLWidget openGLWidget(0);
openGLWidget.show();
return app.exec();
}
#ifdef USING_GLUT
#ifdef WIN32
#include "glew/glew.h"
@ -271,4 +286,6 @@ void main ( int argc, char** argv ) // Create Main Function For Bringing It Al
init ();
glutMainLoop ( ); // Initialize The Main Loop
}
}
#endif //USING_GLUT