Changes in vulkan-game.hpp [cf727ca:055750a] in opengl-game


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    rcf727ca r055750a  
    3333   vec3 color;
    3434   vec3 normal;
    35    unsigned int objIndex;
    3635};
    3736
     
    179178      vector<VertexType> addVertexNormals(vector<VertexType> vertices);
    180179
    181       template<class VertexType>
    182       vector<VertexType> addObjectIndex(unsigned int objIndex, vector<VertexType> vertices);
    183 
    184180      void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags,
    185181         vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, vector<VkDescriptorBufferInfo>& bufferInfoList);
     
    215211}
    216212
    217 template<class VertexType>
    218 vector<VertexType> VulkanGame::addObjectIndex(unsigned int objIndex, vector<VertexType> vertices) {
    219    for (VertexType& vertex : vertices) {
    220       vertex.objIndex = objIndex;
    221    }
    222 
    223    return vertices;
    224 }
    225 
    226213#endif // _VULKAN_GAME_H
Note: See TracChangeset for help on using the changeset viewer.