Class for window. More...
#include <Window.hpp>
Public Member Functions | |
Window (const uint32_t width=DEFAULT_WIDTH, const uint32_t height=DEFAULT_HEIGHT) | |
~Window () | |
Window (const Window &)=delete | |
Window & | operator= (const Window &)=delete |
Window (Window &&)=delete | |
Window & | operator= (Window &&)=delete |
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 () |
void | setFullscreen (bool fullscreen, uint32_t width, uint32_t height) |
void | setWindowIcon (const std::string &path) |
Static Private Member Functions | |
static void | framebufferResizeCallback (GLFWwindow *window, int width, int height) |
Private Attributes | |
GLFWwindow * | m_window {nullptr} |
uint32_t | m_width {0} |
uint32_t | m_height {0} |
bool | m_framebufferResized = false |
Class for window.
Definition at line 26 of file Window.hpp.
|
inlineexplicit |
Definition at line 30 of file Window.hpp.
References setWindowIcon().
|
inline |
Definition at line 31 of file Window.hpp.
References m_window.
|
delete |
|
delete |
|
nodiscard |
Definition at line 8 of file window.cpp.
References framebufferResizeCallback().
void ven::Window::createWindowSurface | ( | VkInstance | instance, |
VkSurfaceKHR * | surface ) const |
Definition at line 27 of file window.cpp.
Referenced by ven::Device::createSurface().
|
staticprivate |
Definition at line 34 of file window.cpp.
References m_framebufferResized.
Referenced by createWindow().
|
inlinenodiscard |
Definition at line 43 of file Window.hpp.
References m_height, and m_width.
Referenced by ven::Gui::rendererSection().
|
inlinenodiscard |
Definition at line 41 of file Window.hpp.
References m_window.
Referenced by ven::Engine::Engine().
|
inline |
Definition at line 45 of file Window.hpp.
References m_framebufferResized.
void ven::Window::setFullscreen | ( | bool | fullscreen, |
uint32_t | width, | ||
uint32_t | height ) |
Definition at line 42 of file window.cpp.
Referenced by ven::Gui::rendererSection().
void ven::Window::setWindowIcon | ( | const std::string & | path | ) |
Definition at line 62 of file window.cpp.
Referenced by Window().
|
inlinenodiscard |
Definition at line 44 of file Window.hpp.
References m_framebufferResized.
|
private |
Definition at line 58 of file Window.hpp.
Referenced by framebufferResizeCallback(), resetWindowResizedFlag(), and wasWindowResized().
|
private |
Definition at line 56 of file Window.hpp.
Referenced by getExtent().
|
private |
Definition at line 55 of file Window.hpp.
Referenced by getExtent().
|
private |
Definition at line 54 of file Window.hpp.
Referenced by getGLFWindow(), and ~Window().