feature/imgui-sdl
points-test
Last change
on this file since 621664a 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
|
Rev | Line | |
---|
[0e6ecf3] | 1 | #ifndef _GAME_GUI_SDL_H
|
---|
| 2 | #define _GAME_GUI_SDL_H
|
---|
| 3 |
|
---|
[98f3232] | 4 | #include "game-gui.hpp"
|
---|
[f898c5f] | 5 |
|
---|
[0e6ecf3] | 6 | #include <SDL2/SDL.h>
|
---|
| 7 | #include <SDL2/SDL_vulkan.h>
|
---|
| 8 |
|
---|
[98f3232] | 9 | class GameGui_SDL : public GameGui {
|
---|
[f898c5f] | 10 | public:
|
---|
| 11 | bool Init();
|
---|
| 12 | void Shutdown();
|
---|
[0e6ecf3] | 13 |
|
---|
| 14 | void* CreateWindow(const string& title, unsigned int width, unsigned int height);
|
---|
| 15 | void DestroyWindow();
|
---|
| 16 |
|
---|
| 17 | bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
|
---|
[8667f76] | 18 | vector<const char*> GetRequiredExtensions();
|
---|
| 19 | void GetWindowSize(int* width, int* height);
|
---|
[0e6ecf3] | 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.