source: opengl-game/game-gui-glfw.hpp@ adcd252

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: 585 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
9class 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 vector<const char*> GetRequiredExtensions();
19 void GetWindowSize(int* width, int* height);
20
21 private:
22 GLFWwindow* window;
23};
24
25#endif // _GAME_GUI_GLFW_H
Note: See TracBrowser for help on using the repository browser.