Changeset 8dcbf62 in opengl-game for sdl-game.hpp
- Timestamp:
- Jun 8, 2021, 11:19:16 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 6bac215
- Parents:
- 8aa4888
- git-author:
- Dmitry Portnoy <dportnoy@…> (06/08/21 20:38:16)
- git-committer:
- Dmitry Portnoy <dportnoy@…> (06/08/21 23:19:16)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sdl-game.hpp
r8aa4888 r8dcbf62 311 311 GraphicsPipeline_Vulkan<VertexType>& pipeline, 312 312 const vector<VertexType>& vertices, vector<uint16_t> indices, 313 SSBOType ssbo);313 VulkanBuffer<SSBOType>& objectBuffer, SSBOType ssbo); 314 314 315 315 template<class VertexType> … … 399 399 GraphicsPipeline_Vulkan<VertexType>& pipeline, 400 400 const vector<VertexType>& vertices, vector<uint16_t> indices, 401 SSBOType ssbo) {401 VulkanBuffer<SSBOType>& objectBuffer, SSBOType ssbo) { 402 402 // TODO: Use the model field of ssbo to set the object's model_base 403 403 // currently, the passed in model is useless since it gets overridden in updateObject() anyway … … 409 409 410 410 objects.push_back({ vertices, indices, ssbo, mat4(1.0f), mat4(1.0f), false }); 411 objectBuffer.add(ssbo); 411 412 412 413 SceneObject<VertexType, SSBOType>& obj = objects.back(); … … 415 416 // with a boolean being passed in here, so that I don't have to rely on checking the specific object 416 417 // type 418 // TODO: Actually, I've already defined a no-op centerObject method for explosions 419 // Maybe I should do the same for lasers and remove this conditional altogether 417 420 if (!is_same_v<VertexType, LaserVertex> && !is_same_v<VertexType, ExplosionVertex>) { 418 421 centerObject(obj);
Note:
See TracChangeset
for help on using the changeset viewer.