source: opengl-game/game-gui-sdl.hpp@ 27c40ce

feature/imgui-sdl points-test
Last change on this file since 27c40ce was 27c40ce, checked in by Dmitry Portnoy <dmp1488@…>, 5 years ago

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

  • Property mode set to 100644
File size: 984 bytes
Line 
1#ifndef _GAME_GUI_SDL_H
2#define _GAME_GUI_SDL_H
3
4#include "game-gui.hpp"
5
6#include <SDL2/SDL.h>
7#include <SDL2/SDL_image.h>
8#include <SDL2/SDL_ttf.h>
9#include <SDL2/SDL_vulkan.h>
10
11class GameGui_SDL : public GameGui {
12 public:
13 string& getError();
14
15 bool init();
16 void shutdown();
17
18 void* createWindow(const string& title, int width, int height, bool fullscreen);
19 void destroyWindow();
20
21 // temporary
22 //int pollEvent(SDL_Event* event);
23
24 /*
25 void processEvents();
26
27 unsigned char getKeyEvent(unsigned int key);
28 bool isKeyPressed(unsigned int key);
29
30 int pollMouseEvent(MouseEvent* event);
31 */
32
33#ifdef GAMEGUI_INCLUDE_VULKAN
34 bool createVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
35#endif
36
37 vector<const char*> getRequiredExtensions();
38 void getWindowSize(int* width, int* height);
39
40 private:
41 SDL_Window* window;
42
43 static string s_errorMessage;
44};
45
46#endif // _GAME_GUI_SDL_H
Note: See TracBrowser for help on using the repository browser.