#include <Window.hpp>
◆ Window()
| Utility::Window::Window |
( |
unsigned int |
width, |
|
|
unsigned int |
height, |
|
|
bool |
fullscreen = false, |
|
|
bool |
borderless = false, |
|
|
const char * |
title = "", |
|
|
bool |
noAPI = false |
|
) |
| |
Create new window.
- Parameters
-
| width | Width of the window in pixels. |
| height | Height of the window in pixels. |
| fullscreen | Whether to start in fullscreen mode. |
| borderless | Whether to use a borderless window. |
| title | Window title. |
| noAPI | Create window without any specific API. |
- Todo:
- Print error to log.
◆ ~Window()
| Utility::Window::~Window |
( |
| ) |
|
◆ CancelClose()
| void Utility::Window::CancelClose |
( |
| ) |
|
Cancel the closing of the window.
◆ GetGLFWWindow()
| GLFWwindow * Utility::Window::GetGLFWWindow |
( |
| ) |
|
Get the GLFW window.
- Returns
- The GLFW window.
◆ GetSize()
| const glm::uvec2 & Utility::Window::GetSize |
( |
| ) |
const |
Get the size of the window.
- Returns
- The size of the window in pixels.
◆ GetWindowMode()
| void Utility::Window::GetWindowMode |
( |
bool & |
fullscreen, |
|
|
bool & |
borderless |
|
) |
| const |
Get window mode.
- Parameters
-
| fullscreen | Get whether window is fullscreen. |
| borderless | Get whether window is borderless. |
◆ SetSize()
| void Utility::Window::SetSize |
( |
const glm::uvec2 & |
size | ) |
|
Set the size of the window.
Note that this function does not resize the window. It merely updates the stored size value.
- Parameters
-
| size | The new size of the window. |
◆ SetWindowMode()
| void Utility::Window::SetWindowMode |
( |
bool |
fullscreen, |
|
|
bool |
borderless |
|
) |
| const |
Set window mode.
- Parameters
-
| fullscreen | Whether window should be fullscreen. |
| borderless | Whether window should be borderless. |
◆ ShouldClose()
| bool Utility::Window::ShouldClose |
( |
| ) |
const |
Get whether the window should close.
- Returns
- Whether the window should close
◆ Update()
| void Utility::Window::Update |
( |
| ) |
|
The documentation for this class was generated from the following files: