Changeset 5081b9a in opengl-game for sdl-game.hpp


Ignore:
Timestamp:
Apr 7, 2021, 2:29:16 AM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
db2d995
Parents:
e469aed
git-author:
Dmitry Portnoy <dportnoy@…> (04/07/21 02:25:11)
git-committer:
Dmitry Portnoy <dportnoy@…> (04/07/21 02:29:16)
Message:

Add prevTime and elapsedTime to SDLGame and refactor the event-handling code a little bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.hpp

    re469aed r5081b9a  
    122122      // TODO: Make a separate singleton Timer class
    123123      time_point<steady_clock> startTime;
    124       float fpsStartTime, curTime;
     124      float fpsStartTime, curTime, prevTime, elapsedTime;
    125125
    126126      int frameCount;
Note: See TracChangeset for help on using the changeset viewer.