Started porting GLUT example to Qt.
This commit is contained in:
		| @@ -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 | ||||
		Reference in New Issue
	
	Block a user