Changeset a6f6833 in opengl-game for game-gui-sdl.hpp


Ignore:
Timestamp:
Sep 15, 2019, 5:27:13 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
92cbc6a
Parents:
09e15a4
Message:

Remove getWindowSize() from game-gui and instead add getWindowWidth(), getWindowHeight(), and refreshWindowSize() (which updates the internal variables returned by the first two functions)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui-sdl.hpp

    r09e15a4 ra6f6833  
    77#include <SDL2/SDL_image.h>
    88#include <SDL2/SDL_ttf.h>
    9 #include <SDL2/SDL_vulkan.h>
     9
     10#ifdef GAMEGUI_INCLUDE_VULKAN
     11   #include <SDL2/SDL_vulkan.h>
     12#endif
    1013
    1114class GameGui_SDL : public GameGui {
     
    2225      int pollEvent(UIEvent* event);
    2326
     27      void refreshWindowSize();
     28      int getWindowWidth();
     29      int getWindowHeight();
     30
    2431#ifdef GAMEGUI_INCLUDE_VULKAN
    2532      bool createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
     33      vector<const char*> getRequiredExtensions();
    2634#endif
    27 
    28       vector<const char*> getRequiredExtensions();
    29       void getWindowSize(int* width, int* height);
    3035
    3136   private:
    3237      SDL_Window* window;
     38      int windowWidth, windowHeight;
    3339
    3440      static string s_errorMessage;
Note: See TracChangeset for help on using the changeset viewer.