Changeset 85b5fec in opengl-game for sdl-game.hpp


Ignore:
Timestamp:
Mar 14, 2021, 2:10:20 AM (4 years ago)
Author:
Dmitry Portnoy <dportnoy@…>
Branches:
feature/imgui-sdl
Children:
7865c5b
Parents:
d255d52
Message:

Use the new UI system in SDLGame as well

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sdl-game.hpp

    rd255d52 r85b5fec  
    109109      /*** High-level vars ***/
    110110
    111       void (VulkanGame::* currentRenderScreenFn)();
     111      // TODO: Just typedef the type of this function to RenderScreenFn or something since it's used in a few places
     112      void (VulkanGame::* currentRenderScreenFn)(int width, int height);
    112113
    113114      map<string, vector<UIValue>> valueLists;
     
    158159      /*** High-level functions ***/
    159160
    160       void renderMainScreen();
    161       void renderGameScreen();
     161      void renderMainScreen(int width, int height);
     162      void renderGameScreen(int width, int height);
    162163
    163164      void initGuiValueLists(map<string, vector<UIValue>>& valueLists);
    164165      void renderGuiValueList(vector<UIValue>& values);
    165166
    166       void goToScreen(void (VulkanGame::* renderScreenFn)());
     167      void goToScreen(void (VulkanGame::* renderScreenFn)(int width, int height));
    167168      void quitGame();
    168169
Note: See TracChangeset for help on using the changeset viewer.