Changeset c61323a in opengl-game for game-gui-glfw.hpp
- Timestamp:
- Sep 13, 2019, 2:51:30 AM (5 years ago)
- Branches:
- feature/imgui-sdl, master, points-test
- Children:
- 1fcca9e
- Parents:
- f6521fb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
game-gui-glfw.hpp
rf6521fb rc61323a 1 1 #ifndef _GAME_GUI_GLFW_H 2 2 #define _GAME_GUI_GLFW_H 3 4 #include <queue> 3 5 4 6 #include "game-gui.hpp" … … 14 16 static string s_errorMessage; // Has to be public so that glfw_error_callback can access it 15 17 16 // Both have to be public so that glfw_key_callback can access them 17 // TODO: Implement a more generic public api over this to get the key state 18 static int s_keyState[GLFW_KEY_LAST]; 19 static bool s_keyDown[GLFW_KEY_LAST]; 18 // Has to be public so that glfw_key_callback can access it 19 static queue<UIEvent> s_events; 20 20 21 21 string& getError(); … … 27 27 void destroyWindow(); 28 28 29 /*30 29 void processEvents(); 31 32 unsigned char getKeyEvent(unsigned int key); 33 bool isKeyPressed(unsigned int key); 34 35 int pollMouseEvent(MouseEvent* event); 36 */ 30 int pollEvent(UIEvent* event); 37 31 38 32 #ifdef GAMEGUI_INCLUDE_VULKAN … … 47 41 48 42 int windowWidth, windowHeight; 49 static queue<UIEvent> s_events;50 43 }; 51 44
Note:
See TracChangeset
for help on using the changeset viewer.