Vulkan Schnee 0.0.1
High-performance rendering engine
Loading...
Searching...
No Matches
Window.h
Go to the documentation of this file.
1#pragma once
2#include <memory>
3#include <GLFW/glfw3.h>
4#include <vulkan/vulkan_core.h>
5
6namespace EngineCore {
7 class InputHandler;
8}
9
10namespace EngineCore{
11 class Window {
12 public:
13 Window(std::weak_ptr<InputHandler> inputHandler, GLFWframebuffersizefun windowResizeCallback);
14 void setupInputHandler(const std::weak_ptr<InputHandler> &inputHandler);
15
16 void createSurface(VkInstance instance, VkSurfaceKHR &surface);
17
18 GLFWwindow * getWindowInstance() const;
19
20 void cleanup();
21
22 private:
23 GLFWwindow* window;
24 };
25}
GLFWwindow * getWindowInstance() const
Definition Window.cpp:49
Window(std::weak_ptr< InputHandler > inputHandler, GLFWframebuffersizefun windowResizeCallback)
Definition Window.cpp:10
void createSurface(VkInstance instance, VkSurfaceKHR &surface)
Definition Window.cpp:43
GLFWwindow * window
Definition Window.h:23
void setupInputHandler(const std::weak_ptr< InputHandler > &inputHandler)
Definition Window.cpp:36
Log category system implementation.