|
std::string | m_title |
|
bool | m_resizable |
|
bool | m_shouldClose |
|
GLFWwindow * | m_window |
|
SwapchainHandle | m_swapchainHandle |
|
event_handle< int, int > | m_resizeHandle |
|
|
class | WindowManager |
|
class | SwapchainManager |
|
◆ Window() [1/3]
creates an uninitialized Window
◆ Window() [2/3]
vkcv::Window::Window |
( |
const char * |
title, |
|
|
int |
width = -1 , |
|
|
int |
height = -1 , |
|
|
bool |
resizable = false |
|
) |
| |
|
explicit |
creates a Window with the parameters
- Parameters
-
[in] | title | title of the window |
[in] | width | width of the window (optional) |
[in] | height | height of the window (optional) |
[in] | resizable | resize ability of the window (optional) |
◆ Window() [3/3]
vkcv::Window::Window |
( |
const Window & |
other | ) |
|
|
delete |
Copy-constructor of Window
- Parameters
-
◆ ~Window()
vkcv::Window::~Window |
( |
| ) |
|
|
virtual |
◆ getExtensions()
const std::vector< std::string > & vkcv::Window::getExtensions |
( |
| ) |
|
|
static |
◆ getFocusedWindow()
Window & vkcv::Window::getFocusedWindow |
( |
| ) |
|
|
static |
gets the currently focused window and returns it only accessible to WindowManager
- Returns
◆ getFramebufferSize()
void vkcv::Window::getFramebufferSize |
( |
int & |
width, |
|
|
int & |
height |
|
) |
| const |
destroys the window gets the windows framebuffer size
- Parameters
-
◆ getHeight()
int vkcv::Window::getHeight |
( |
| ) |
const |
◆ getSwapchainHandle()
gets the SwapchainHandle corresponding to the swapchain of the window
- Returns
◆ getTitle()
const std::string & vkcv::Window::getTitle |
( |
| ) |
const |
gets the window title
- Returns
- string with window title
◆ getWidth()
int vkcv::Window::getWidth |
( |
| ) |
const |
◆ getWindow()
GLFWwindow * vkcv::Window::getWindow |
( |
| ) |
const |
◆ hasOpenWindow()
bool vkcv::Window::hasOpenWindow |
( |
| ) |
|
|
static |
checks if any GLFWWindows are open
- Returns
- bool if a window is open
◆ isOpen()
bool vkcv::Window::isOpen |
( |
| ) |
const |
checks if the window is still open, or the close event was called This function should be changed/removed later on
- Returns
- bool if the window is still open
◆ isResizable()
bool vkcv::Window::isResizable |
( |
| ) |
const |
is the window resizable
- Returns
- bool with window resizable
◆ operator=()
Copy-operator of Window
- Parameters
-
- Returns
- Reference to itself
◆ pollEvents()
void vkcv::Window::pollEvents |
( |
| ) |
|
|
static |
◆ e_mouseButton
event< int, int, int> vkcv::Window::e_mouseButton |
The documentation for this class was generated from the following files: