feature/imgui-sdl
points-test
|
Last change
on this file since d02c25f 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
|
| Rev | Line | |
|---|
| [0e6ecf3] | 1 | #ifndef _GAME_GUI_GLFW_H
|
|---|
| 2 | #define _GAME_GUI_GLFW_H
|
|---|
| 3 |
|
|---|
| 4 | #include "game-gui.hpp"
|
|---|
| 5 |
|
|---|
| [4eb4d0a] | 6 | #ifdef GAMEGUI_INCLUDE_VULKAN
|
|---|
| 7 | #define GLFW_INCLUDE_VULKAN
|
|---|
| 8 | #endif
|
|---|
| 9 |
|
|---|
| [0e6ecf3] | 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 |
|
|---|
| [4eb4d0a] | 20 | #ifdef GAMEGUI_INCLUDE_VULKAN
|
|---|
| [0e6ecf3] | 21 | bool CreateVulkanSurface(VkInstance instance, VkSurfaceKHR* surface);
|
|---|
| [4eb4d0a] | 22 | #endif
|
|---|
| 23 |
|
|---|
| [8667f76] | 24 | vector<const char*> GetRequiredExtensions();
|
|---|
| 25 | void GetWindowSize(int* width, int* height);
|
|---|
| [0e6ecf3] | 26 |
|
|---|
| 27 | private:
|
|---|
| 28 | GLFWwindow* window;
|
|---|
| 29 | };
|
|---|
| 30 |
|
|---|
| 31 | #endif // _GAME_GUI_GLFW_H
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.