feature/imgui-sdl
points-test
Last change
on this file since adcd252 was 8667f76, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Move getWindowSize and getRequiredExtensions to the game gui
|
-
Property mode
set to
100644
|
File size:
580 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_vulkan.h>
|
---|
8 |
|
---|
9 | class GameGui_SDL : public GameGui {
|
---|
10 | public:
|
---|
11 | bool Init();
|
---|
12 | void Shutdown();
|
---|
13 |
|
---|
14 | void* CreateWindow(const string& title, unsigned int width, unsigned int height);
|
---|
15 | void DestroyWindow();
|
---|
16 |
|
---|
17 | bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
|
---|
18 | vector<const char*> GetRequiredExtensions();
|
---|
19 | void GetWindowSize(int* width, int* height);
|
---|
20 |
|
---|
21 | private:
|
---|
22 | SDL_Window* window;
|
---|
23 | };
|
---|
24 |
|
---|
25 | #endif // _GAME_GUI_SDL_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.