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