Changes in / [3d96d13:446e55d] in opengl-game
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
TODO.txt
r3d96d13 r446e55d 1 DEBUGGING 2 ========== 3 -Read the sections about shader debugging, starting from line 59 4 1 5 TODO 2 6 ========== -
new-game.cpp
r3d96d13 r446e55d 215 215 216 216 double fps; 217 unsigned int score = 0;218 217 219 218 vec3 cam_pos; … … 810 809 if (((Asteroid*)objects[i])->hp <= 0) { 811 810 removeObjectFromScene(*objects[i], ubo); 812 score++;813 811 } 814 812 } … … 2287 2285 */ 2288 2286 2289 stringstream ssScore, ssFps;2290 ssScore << "Score: " << score;2291 ssFps << "FPS: " << fps;2292 2293 2287 { 2294 2288 ImGui::SetNextWindowSize(ImVec2(95, 46), ImGuiCond_Once); … … 2298 2292 ImGuiWindowFlags_NoResize | 2299 2293 ImGuiWindowFlags_NoMove); 2300 <<<<<<< HEAD2301 ImGui::Text(ssScore.str().c_str());2302 ImGui::Text(ssFps.str().c_str());2303 =======2304 2294 ImGui::Text("Score: ???"); 2305 2295 ImGui::Text("FPS: %f", fps); 2306 >>>>>>> 446e55df316c547047dc0eb5c46189c6958dba212307 2296 ImGui::End(); 2308 2297 }
Note:
See TracChangeset
for help on using the changeset viewer.