Changeset b33f87b in opengl-game
- Timestamp:
- Feb 26, 2017, 4:04:33 PM (8 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 8a6d19d
- Parents:
- 4d52702
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game.cpp
r4d52702 rb33f87b 15 15 #define MAC 16 16 #endif 17 18 #define FULLSCREEN false 17 19 18 20 using namespace std; … … 40 42 41 43 // Create a GLFWwindow object that we can use for GLFW's functions 42 GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "LearnOpenGL", nullptr, nullptr); 44 GLFWmonitor* monitor = FULLSCREEN ? glfwGetPrimaryMonitor() : nullptr; 45 46 GLFWwindow* window = glfwCreateWindow(WIDTH, HEIGHT, "LearnOpenGL", monitor, nullptr); 43 47 glfwMakeContextCurrent(window); 44 48 if (window == NULL) { 45 49 cout << "Failed to create GLFW window" << endl; 46 50 glfwTerminate(); 47 return -1;51 return EXIT_FAILURE; 48 52 } 49 53 … … 56 60 if (glewInit() != GLEW_OK) { 57 61 cout << "Failed to initialize GLEW" << endl; 58 return -1;62 return EXIT_FAILURE; 59 63 } 60 64 … … 79 83 80 84 glfwTerminate(); 81 return 0;85 return EXIT_SUCCESS; 82 86 } 83 87
Note:
See TracChangeset
for help on using the changeset viewer.