Changeset 27c40ce in opengl-game for game-gui.hpp


Ignore:
Timestamp:
Sep 12, 2019, 3:29:50 AM (5 years ago)
Author:
Dmitry Portnoy <dmp1488@…>
Branches:
feature/imgui-sdl, master, points-test
Children:
7bf5433
Parents:
39278a8
Message:

Update vulkangame to correctly display a window in Windows and add some commented-out code for a generic system for processing UI events

File:
1 edited

Legend:

Unmodified
Added
Removed
  • game-gui.hpp

    r39278a8 r27c40ce  
    1414using namespace std;
    1515
     16/*
     17struct MouseEvent {
     18   int button;
     19   int action;
     20   int x;
     21   int y;
     22};
     23*/
     24
    1625class GameGui {
    1726   public:
     
    2635      virtual void destroyWindow() = 0;
    2736
     37      /*
     38      virtual void processEvents() = 0;
     39
     40      virtual int pollMouseEvent(MouseEvent* event) = 0;
     41
     42      virtual unsigned char getKeyEvent(unsigned int key) = 0;
     43      virtual bool isKeyPressed(unsigned int key) = 0;
     44      */
     45
    2846#ifdef GAMEGUI_INCLUDE_VULKAN
    2947      virtual bool createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface) = 0;
Note: See TracChangeset for help on using the changeset viewer.