feature/imgui-sdl
points-test
Last change
on this file since 0e6ecf3 was 0e6ecf3, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 5 years ago |
Create a game gui implementation using glfw3 and move window create/destruction and Vulkan surface creation to the game gui
|
-
Property mode
set to
100644
|
File size:
483 bytes
|
Line | |
---|
1 | #ifndef _GAME_GUI_GLFW_H
|
---|
2 | #define _GAME_GUI_GLFW_H
|
---|
3 |
|
---|
4 | #include "game-gui.hpp"
|
---|
5 |
|
---|
6 | #define GLFW_INCLUDE_VULKAN
|
---|
7 | #include <GLFW/glfw3.h>
|
---|
8 |
|
---|
9 | class GameGui_GLFW : 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 |
|
---|
19 | private:
|
---|
20 | GLFWwindow* window;
|
---|
21 | };
|
---|
22 |
|
---|
23 | #endif // _GAME_GUI_GLFW_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.