feature/imgui-sdl
points-test
Last change
on this file since 99d44b2 was 4eb4d0a, checked in by Dmitry Portnoy <dmitry.portnoy@…>, 6 years ago |
Rename vulkan-game.cpp to vulkan-ref.cpp and define the GAMEGUI_INCLUDE_VULKAN preprocessor directive to control whether the gui-game classes build with Vulkan support
|
-
Property mode
set to
100644
|
File size:
664 bytes
|
Line | |
---|
1 | #ifndef _GAME_GUI_GLFW_H
|
---|
2 | #define _GAME_GUI_GLFW_H
|
---|
3 |
|
---|
4 | #include "game-gui.hpp"
|
---|
5 |
|
---|
6 | #ifdef GAMEGUI_INCLUDE_VULKAN
|
---|
7 | #define GLFW_INCLUDE_VULKAN
|
---|
8 | #endif
|
---|
9 |
|
---|
10 | #include <GLFW/glfw3.h>
|
---|
11 |
|
---|
12 | class GameGui_GLFW : public GameGui {
|
---|
13 | public:
|
---|
14 | bool Init();
|
---|
15 | void Shutdown();
|
---|
16 |
|
---|
17 | void* CreateWindow(const string& title, unsigned int width, unsigned int height);
|
---|
18 | void DestroyWindow();
|
---|
19 |
|
---|
20 | #ifdef GAMEGUI_INCLUDE_VULKAN
|
---|
21 | bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
|
---|
22 | #endif
|
---|
23 |
|
---|
24 | vector<const char*> GetRequiredExtensions();
|
---|
25 | void GetWindowSize(int* width, int* height);
|
---|
26 |
|
---|
27 | private:
|
---|
28 | GLFWwindow* window;
|
---|
29 | };
|
---|
30 |
|
---|
31 | #endif // _GAME_GUI_GLFW_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.