Changes in sdl-game.hpp [b8072d3:4a777d2] in opengl-game
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sdl-game.hpp
rb8072d3 r4a777d2 276 276 void cleanupImGuiOverlay(); 277 277 278 void createBufferSet( vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, VkDeviceSize bufferSize,279 VkBufferUsageFlags flags, VkMemoryPropertyFlags properties,280 278 void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, 279 vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, 280 vector<VkDescriptorBufferInfo>& bufferInfoList); 281 281 282 282 // TODO: Since addObject() returns a reference to the new object now, 283 283 // stop using objects.back() to access the object that was just created 284 284 template<class VertexType, class SSBOType> 285 SceneObject<VertexType, SSBOType>& addObject(vector<SceneObject<VertexType, SSBOType>>& objects, 286 GraphicsPipeline_Vulkan<VertexType, SSBOType>& pipeline, 287 const vector<VertexType>& vertices, vector<uint16_t> indices, 288 SSBOType ssbo, bool pipelinesCreated); 285 SceneObject<VertexType, SSBOType>& addObject( 286 vector<SceneObject<VertexType, SSBOType>>& objects, 287 GraphicsPipeline_Vulkan<VertexType, SSBOType>& pipeline, 288 const vector<VertexType>& vertices, vector<uint16_t> indices, SSBOType ssbo, 289 bool pipelinesCreated); 289 290 290 291 template<class VertexType> … … 298 299 299 300 template<class VertexType, class SSBOType> 300 void updateObject(vector<SceneObject<VertexType, SSBOType>>& objects, GraphicsPipeline_Vulkan<VertexType,301 301 void updateObject(vector<SceneObject<VertexType, SSBOType>>& objects, 302 GraphicsPipeline_Vulkan<VertexType, SSBOType>& pipeline, size_t index); 302 303 303 304 void renderFrame(ImDrawData* draw_data); … … 457 458 // TODO: Just pass in the single object instead of a list of all of them 458 459 template<class VertexType, class SSBOType> 459 void VulkanGame::updateObject(vector<SceneObject<VertexType, SSBOType>>& objects, GraphicsPipeline_Vulkan<VertexType,460 460 void VulkanGame::updateObject(vector<SceneObject<VertexType, SSBOType>>& objects, 461 GraphicsPipeline_Vulkan<VertexType, SSBOType>& pipeline, size_t index) { 461 462 SceneObject<VertexType, SSBOType>& obj = objects[index]; 462 463
Note:
See TracChangeset
for help on using the changeset viewer.