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


Ignore:
Timestamp:
Jun 10, 2020, 9:44:02 PM (4 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master
Children:
6bfd91c
Parents:
699e83a
Message:

Show the score and frame rate on the game screen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vulkan-game.hpp

    r699e83a rf809ae6  
    204204      TTF_Font* proggyFont;
    205205
     206      int score;
     207      float fps;
     208
    206209      GraphicsPipeline_Vulkan<OverlayVertex, void*> overlayPipeline;
    207210
     
    345348      float prevTime, elapsedTime;
    346349
     350      float fpsStartTime;
     351      int frameCount;
     352
    347353      float shipSpeed = 0.5f;
    348354      float asteroidSpeed = 2.0f;
     
    363369      void mainLoop();
    364370      void updateScene(uint32_t currentImage);
    365       void renderUI();
    366371      void renderScene();
    367372      void cleanup();
Note: See TracChangeset for help on using the changeset viewer.