Changeset 683dd55 in opengl-game for graphics-pipeline_vulkan.hpp


Ignore:
Timestamp:
Nov 22, 2019, 4:47:52 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
8e02b6b
Parents:
1908591
Message:

Add a getObjects() method to the GraphicsPipeline_Vulkan class that returns a reference to the list of objects added to the pipeline, and use that method instead of the numPlanes variable to keep track of the number of textured planes. Also, update the shader compilation batch file and add header files as dependencies to the vulkangame target in the makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • graphics-pipeline_vulkan.hpp

    r1908591 r683dd55  
    5656      void createRenderCommands(VkCommandBuffer& commandBuffer, uint32_t currentImage);
    5757
     58      const vector<SceneObject<VertexType>>& getObjects();
    5859      bool addObject(const vector<VertexType>& vertices, vector<uint16_t> indices, VkCommandPool commandPool,
    5960         VkQueue graphicsQueue);
     
    104105}
    105106
     107// TODO: Verify that vertex capacity and index capacity are both > 0
    106108template<class VertexType>
    107109GraphicsPipeline_Vulkan<VertexType>::GraphicsPipeline_Vulkan(VkPhysicalDevice physicalDevice, VkDevice device,
     
    406408
    407409template<class VertexType>
     410const vector<SceneObject<VertexType>>& GraphicsPipeline_Vulkan<VertexType>::getObjects() {
     411   return objects;
     412}
     413
     414template<class VertexType>
    408415bool GraphicsPipeline_Vulkan<VertexType>::addObject(const vector<VertexType>& vertices, vector<uint16_t> indices,
    409416      VkCommandPool commandPool, VkQueue graphicsQueue) {
Note: See TracChangeset for help on using the changeset viewer.