Changeset 1e3dddf in opengl-game for new-game.cpp
- Timestamp:
- Oct 24, 2018, 2:39:08 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 3d96d13
- Parents:
- 25b47d7
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
new-game.cpp
r25b47d7 r1e3dddf 215 215 216 216 double fps; 217 unsigned int score = 0; 217 218 218 219 vec3 cam_pos; … … 806 807 if (((Asteroid*)objects[i])->hp <= 0) { 807 808 removeObjectFromScene(*objects[i], ubo); 809 score++; 808 810 } 809 811 } … … 2284 2286 */ 2285 2287 2286 stringstream ss; 2287 ss << "FPS: " << fps; 2288 stringstream ssScore, ssFps; 2289 ssScore << "Score: " << score; 2290 ssFps << "FPS: " << fps; 2288 2291 2289 2292 { … … 2294 2297 ImGuiWindowFlags_NoResize | 2295 2298 ImGuiWindowFlags_NoMove); 2296 ImGui::Text( "Score: ???");2297 ImGui::Text(ss .str().c_str());2299 ImGui::Text(ssScore.str().c_str()); 2300 ImGui::Text(ssFps.str().c_str()); 2298 2301 ImGui::End(); 2299 2302 }
Note:
See TracChangeset
for help on using the changeset viewer.