Changes in vulkan-game.hpp [cf727ca:055750a] in opengl-game
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
rcf727ca r055750a 33 33 vec3 color; 34 34 vec3 normal; 35 unsigned int objIndex;36 35 }; 37 36 … … 179 178 vector<VertexType> addVertexNormals(vector<VertexType> vertices); 180 179 181 template<class VertexType>182 vector<VertexType> addObjectIndex(unsigned int objIndex, vector<VertexType> vertices);183 184 180 void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, 185 181 vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, vector<VkDescriptorBufferInfo>& bufferInfoList); … … 215 211 } 216 212 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 226 213 #endif // _VULKAN_GAME_H
Note:
See TracChangeset
for help on using the changeset viewer.