#include <Window.hpp>
Public Member Functions | |
Window (const uint32_t width, const uint32_t height, const std::string &title) | |
~Window () | |
GLFWwindow * | createWindow (uint32_t width, uint32_t height, const std::string &title) |
void | createWindowSurface (VkInstance instance, VkSurfaceKHR *surface) const |
GLFWwindow * | getGLFWindow () const |
VkExtent2D | getExtent () const |
bool | wasWindowResized () const |
void | resetWindowResizedFlag () |
Static Private Member Functions | |
static void | framebufferResizeCallback (GLFWwindow *window, int width, int height) |
Private Attributes | |
GLFWwindow * | m_window {nullptr} |
uint32_t | m_width |
uint32_t | m_height |
bool | m_framebufferResized = false |
Definition at line 17 of file Window.hpp.
|
inline |
Definition at line 21 of file Window.hpp.
|
inline |
Definition at line 22 of file Window.hpp.
References m_window.
|
nodiscard |
Definition at line 5 of file window.cpp.
References framebufferResizeCallback().
void ven::Window::createWindowSurface | ( | VkInstance | instance, |
VkSurfaceKHR * | surface ) const |
Definition at line 24 of file window.cpp.
Referenced by ven::Device::createSurface().
|
staticprivate |
Definition at line 31 of file window.cpp.
References m_framebufferResized.
Referenced by createWindow().
|
inlinenodiscard |
Definition at line 29 of file Window.hpp.
|
inlinenodiscard |
Definition at line 27 of file Window.hpp.
References m_window.
Referenced by ven::Engine::createSurface().
|
inline |
Definition at line 31 of file Window.hpp.
References m_framebufferResized.
|
inlinenodiscard |
Definition at line 30 of file Window.hpp.
References m_framebufferResized.
|
private |
Definition at line 41 of file Window.hpp.
Referenced by framebufferResizeCallback(), resetWindowResizedFlag(), and wasWindowResized().
|
private |
Definition at line 39 of file Window.hpp.
Referenced by getExtent().
|
private |
Definition at line 38 of file Window.hpp.
Referenced by getExtent().
|
private |
Definition at line 37 of file Window.hpp.
Referenced by getGLFWindow(), and ~Window().