Changeset a6f6833 in opengl-game for game-gui-sdl.cpp
- Timestamp:
- Sep 15, 2019, 5:27:13 AM (6 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 92cbc6a
- Parents:
- 09e15a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-sdl.cpp
r09e15a4 ra6f6833 61 61 SDL_WINDOWPOS_CENTERED, SDL_WINDOWPOS_CENTERED, 62 62 width, height, flags); 63 64 refreshWindowSize(); 63 65 64 66 return window; … … 125 127 } 126 128 129 void GameGui_SDL::refreshWindowSize() { 130 SDL_GetWindowSize(window, &windowWidth, &windowHeight); 131 } 132 133 int GameGui_SDL::getWindowWidth() { 134 return windowWidth; 135 } 136 137 int GameGui_SDL::getWindowHeight() { 138 return windowHeight; 139 } 140 127 141 #ifdef GAMEGUI_INCLUDE_VULKAN 128 142 … … 131 145 RTWO_SUCCESS : RTWO_ERROR; 132 146 } 133 134 #endif135 147 136 148 vector<const char*> GameGui_SDL::getRequiredExtensions() { … … 144 156 } 145 157 146 void GameGui_SDL::getWindowSize(int* width, int* height) { 147 SDL_GetWindowSize(window, width, height); 148 } 158 #endif
Note:
See TracChangeset
for help on using the changeset viewer.