Changeset c1ec4f6 in opengl-game for vulkan-game.hpp
- Timestamp:
- Jun 11, 2021, 2:35:32 PM (4 years ago)
- Branches:
- feature/imgui-sdl
- Children:
- 6486ba8
- Parents:
- b7fc3c2
- git-author:
- Dmitry Portnoy <dportnoy@…> (06/10/21 21:37:02)
- git-committer:
- Dmitry Portnoy <dportnoy@…> (06/11/21 14:35:32)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
rb7fc3c2 rc1ec4f6 118 118 mat4 model_transform; 119 119 120 bool modified;121 122 120 // TODO: Figure out if I should make child classes that have these fields instead of putting them in the 123 121 // parent class … … 133 131 // Could probably use the same approach to make indices optional 134 132 // Figure out if there are sufficient use cases to make either of these optional or is it fine to make 135 // them ma mdatory133 // them mandatory 136 134 137 135 … … 189 187 190 188 *reinterpret_cast<float*>(effectedFieldPtr) = startValue + (curTime - startTime) * changePerSecond; 191 192 objects[objectIndex].modified = true;193 189 } 194 190 }; … … 521 517 } 522 518 523 objects.push_back({ vertices, indices, ssbo, mat4(1.0f), mat4(1.0f) , false});519 objects.push_back({ vertices, indices, ssbo, mat4(1.0f), mat4(1.0f) }); 524 520 objectBuffer.add(ssbo); 525 521
Note:
See TracChangeset
for help on using the changeset viewer.