Changeset 683dd55 in opengl-game for vulkan-game.cpp
- Timestamp:
- Nov 22, 2019, 4:47:52 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 8e02b6b
- Parents:
- 1908591
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.cpp
r1908591 r683dd55 248 248 cout << "Created all the graphics pipelines" << endl; 249 249 250 numPlanes = 2;251 252 250 createCommandBuffers(); 253 251 … … 255 253 } 256 254 255 // TODO: Maybe changes the name to initScene() or something similar 257 256 void VulkanGame::initMatrices() { 258 257 cam_pos = vec3(0.0f, 0.0f, 2.0f); … … 299 298 } else if (e.key.keycode == SDL_SCANCODE_SPACE) { 300 299 cout << "Adding a plane" << endl; 301 float zOffset = -2.0f + (0.5f * numPlanes);300 float zOffset = -2.0f + (0.5f * modelPipeline.getObjects().size()); 302 301 303 302 vkDeviceWaitIdle(device); … … 314 313 315 314 createCommandBuffers(); 316 317 numPlanes++;318 315 } else { 319 316 cout << "Key event detected" << endl;
Note:
See TracChangeset
for help on using the changeset viewer.