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

    r09e15a4 ra6f6833  
    6767      virtual int pollEvent(UIEvent* event) = 0;
    6868
    69       /*
    70       virtual void processEvents() = 0;
    71 
    72       virtual int pollMouseEvent(MouseEvent* event) = 0;
    73 
    74       virtual unsigned char getKeyEvent(unsigned int key) = 0;
    75       virtual bool isKeyPressed(unsigned int key) = 0;
    76       */
     69      virtual void refreshWindowSize() = 0;
     70      virtual int getWindowWidth() = 0;
     71      virtual int getWindowHeight() = 0;
    7772
    7873#ifdef GAMEGUI_INCLUDE_VULKAN
    7974      virtual bool createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
     75      virtual vector<const char*> getRequiredExtensions() = 0;
    8076#endif
    81 
    82       virtual vector<const char*> getRequiredExtensions() = 0;
    83       virtual void getWindowSize(int* width, int* height) = 0;
    8477};
    8578
Note: See TracChangeset for help on using the changeset viewer.