Changeset a6f6833 in opengl-game for game-gui-glfw.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-glfw.hpp

    r09e15a4 ra6f6833  
    88#ifdef GAMEGUI_INCLUDE_VULKAN
    99   #define GLFW_INCLUDE_VULKAN
     10#else
     11   #include <GL/glew.h>
    1012#endif
    1113
     
    3032      int pollEvent(UIEvent* event);
    3133
     34      void refreshWindowSize();
     35      int getWindowWidth();
     36      int getWindowHeight();
     37
    3238#ifdef GAMEGUI_INCLUDE_VULKAN
    3339      bool createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
     40      vector<const char*> getRequiredExtensions();
    3441#endif
    35 
    36       vector<const char*> getRequiredExtensions();
    37       void getWindowSize(int* width, int* height);
    3842
    3943   private:
    4044      GLFWwindow* window;
    41 
    4245      int windowWidth, windowHeight;
    4346};
Note: See TracChangeset for help on using the changeset viewer.