Changeset 2b40f48 in opengl-game for vulkan-game.hpp
- Timestamp:
- Dec 5, 2019, 5:48:59 PM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 7c929fc
- Parents:
- 785333b (diff), cf727ca (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r785333b r2b40f48 33 33 vec3 color; 34 34 vec3 normal; 35 unsigned int objIndex; 35 36 }; 36 37 … … 178 179 vector<VertexType> addVertexNormals(vector<VertexType> vertices); 179 180 181 template<class VertexType> 182 vector<VertexType> addObjectIndex(unsigned int objIndex, vector<VertexType> vertices); 183 180 184 void createBufferSet(VkDeviceSize bufferSize, VkBufferUsageFlags flags, 181 185 vector<VkBuffer>& buffers, vector<VkDeviceMemory>& buffersMemory, vector<VkDescriptorBufferInfo>& bufferInfoList); … … 211 215 } 212 216 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 213 226 #endif // _VULKAN_GAME_H
Note:
See TracChangeset
for help on using the changeset viewer.