Changeset 8667f76 in opengl-game for game-gui-sdl.cpp


Ignore:
Timestamp:
Jul 19, 2019, 9:49:52 PM (5 years ago)
Author:
Dmitry Portnoy <dmitry.portnoy@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
80edd70
Parents:
0e6ecf3
git-author:
Dmitry Portnoy <dmitry.portnoy@…> (07/19/19 21:45:27)
git-committer:
Dmitry Portnoy <dmitry.portnoy@…> (07/19/19 21:49:52)
Message:

Move getWindowSize and getRequiredExtensions to the game gui

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.cpp

    r0e6ecf3 r8667f76  
    3737      RTWO_SUCCESS : RTWO_ERROR;
    3838}
     39
     40vector<const char*> GameGui_SDL::GetRequiredExtensions() {
     41   uint32_t extensionCount = 0;
     42   SDL_Vulkan_GetInstanceExtensions(window, &extensionCount, nullptr);
     43
     44   vector<const char*> extensions(extensionCount);
     45   SDL_Vulkan_GetInstanceExtensions(window, &extensionCount, extensions.data());
     46
     47   return extensions;
     48}
     49
     50void GameGui_SDL::GetWindowSize(int* width, int* height) {
     51   SDL_GetWindowSize(window, width, height);
     52}
Note: See TracChangeset for help on using the changeset viewer.