Changeset 0807aeb in opengl-game for vulkan-game.hpp
- Timestamp:
- Mar 10, 2020, 2:53:34 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 22217d4
- Parents:
- 44f23af
- git-author:
- Dmitry Portnoy <dmp1488@…> (03/10/20 00:43:57)
- git-committer:
- Dmitry Portnoy <dmp1488@…> (03/10/20 02:53:34)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vulkan-game.hpp
r44f23af r0807aeb 1 1 #ifndef _VULKAN_GAME_H 2 2 #define _VULKAN_GAME_H 3 4 #include <chrono> 3 5 4 6 #define GLM_FORCE_RADIANS … … 15 17 16 18 using namespace glm; 19 using namespace std::chrono; 17 20 18 21 #ifdef NDEBUG … … 182 185 UBO_VP_mats asteroid_VP_mats; 183 186 184 Uint64 curTime, prevTime; 185 double elapsedTime; 187 time_point<steady_clock> startTime; 188 float curTime, prevTime, elapsedTime; 189 190 float shipSpeed = 0.5f; 191 float asteroidSpeed = 2.0f; 192 193 float spawnRate_asteroid = 0.5; 194 float lastSpawn_asteroid; 186 195 187 196 bool initWindow(int width, int height, unsigned char guiFlags); … … 286 295 } 287 296 297 // TODO: Just pass in the single object instead of a list of all of them 288 298 template<class VertexType, class SSBOType> 289 299 void VulkanGame::updateObject(vector<SceneObject<VertexType, SSBOType>>& objects,
Note:
See TracChangeset
for help on using the changeset viewer.