Changeset 6104594 in opengl-game for vulkan-game.hpp


Ignore:
Timestamp:
Apr 19, 2020, 2:13:02 AM (4 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
237cbec
Parents:
5ba732a
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (04/19/20 02:03:38)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (04/19/20 02:13:02)
Message:

Make curTime a static global variable so it can be used by classes outside of VulkanGame

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r5ba732a r6104594  
    9191// them mamdatory
    9292
     93// TODO: Make a singleton timer class instead
     94static float curTime;
     95
    9396class VulkanGame {
    9497   public:
     
    199202
    200203      time_point<steady_clock> startTime;
    201       float curTime, prevTime, elapsedTime;
     204      float prevTime, elapsedTime;
    202205
    203206      float shipSpeed = 0.5f;
Note: See TracChangeset for help on using the changeset viewer.