Changeset cabdd5c in opengl-game for new-game.cpp
- Timestamp:
- Sep 14, 2019, 12:13:54 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 2e77b3f
- Parents:
- cb01aff
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
rcb01aff rcabdd5c 287 287 */ 288 288 289 /*** START OF REFACTORED CODE ***/ 289 290 // Helps to test logging during crashes 290 291 void badFunc() { … … 368 369 cout << "OpenGL debug message callback is not supported" << endl; 369 370 } 371 /*** END OF REFACTORED CODE ***/ 370 372 371 373 srand(time(0)); … … 955 957 bindUniformData(modelGroups[TYPE_EXPLOSION].attribs["cur_time"]); 956 958 959 /*** START OF REFACTORED CODE ***/ 957 960 // Render scene 958 961 959 962 glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); 960 961 // Anton's book suggests placing this here, after glClear(). Check it's impact on framerate 962 //glViewport(0, 0, windowWidth, windowHeight); 963 /*** END OF REFACTORED CODE ***/ 963 964 964 965 switch (curState) {
Note:
See TracChangeset
for help on using the changeset viewer.