diff --git a/OpenGL1/Main.cpp b/OpenGL1/Main.cpp index 9af7303..0645512 100644 --- a/OpenGL1/Main.cpp +++ b/OpenGL1/Main.cpp @@ -1,20 +1,22 @@ +#include #include +using namespace std; - -void display() -{ +void display() { glutSwapBuffers(); } -int main(int argc, char* argv[]) -{ - glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE | GLUT_DEPTH); - glutInitWindowPosition(800, 600); +int main(int argc, char *argv[]) { + + glutInitDisplayMode(GLUT_RGB | GLUT_DOUBLE); + glutInitWindowSize(800, 600); + glutInit(&argc, argv); + glutCreateWindow("Hello World"); glutDisplayFunc(display); - glutCreateWindow("Hello World"); glutMainLoop(); + return 0; } \ No newline at end of file diff --git a/OpenGL1/OpenGL1.vcxproj b/OpenGL1/OpenGL1.vcxproj index 5fc9a03..7247791 100644 --- a/OpenGL1/OpenGL1.vcxproj +++ b/OpenGL1/OpenGL1.vcxproj @@ -89,6 +89,7 @@ Disabled WIN32;_DEBUG;_CONSOLE;%(PreprocessorDefinitions) freeglut/include + MultiThreaded Console @@ -104,6 +105,7 @@ Disabled _DEBUG;_CONSOLE;%(PreprocessorDefinitions) freeglut/include + MultiThreaded Console @@ -121,6 +123,7 @@ true WIN32;NDEBUG;_CONSOLE;%(PreprocessorDefinitions) freeglut/include + MultiThreaded Console @@ -140,6 +143,7 @@ true NDEBUG;_CONSOLE;%(PreprocessorDefinitions) freeglut/include + MultiThreaded Console diff --git a/OpenGL1/freeglut.dll b/OpenGL1/freeglut.dll index 2fe3a23..c768c15 100644 Binary files a/OpenGL1/freeglut.dll and b/OpenGL1/freeglut.dll differ