This class manages everything that is connected with physical Window management, i might add multiwindow support later, but for now, only one Window per application.
More...
#include <Window.hpp>
This class manages everything that is connected with physical Window management, i might add multiwindow support later, but for now, only one Window per application.
Definition at line 43 of file Window.hpp.
◆ ~Window()
| Cori::Core::Window::~Window |
( |
| ) |
|
◆ GetCurrentAPI()
Returns the graphical API used by this window.
- Returns
- API enumerator.
Definition at line 63 of file Window.hpp.
◆ GetCurrentScreenMode()
| uint32_t Cori::Core::Window::GetCurrentScreenMode |
( |
| ) |
const |
|
nodiscard |
Retrieves the current screen mode index.
- Returns
- Index of the current screen mode in the screen modes vector (obtainable via GetScreenModes).
Definition at line 283 of file Window.cpp.
◆ GetHeight()
| int32_t Cori::Core::Window::GetHeight |
( |
| ) |
const |
|
nodiscard |
Give the current window height.
- Returns
- Window height in pixels.
Definition at line 232 of file Window.cpp.
◆ GetScreenModes()
| const std::vector< ScreenMode > & Cori::Core::Window::GetScreenModes |
( |
| ) |
const |
|
nodiscard |
◆ GetWidth()
| int32_t Cori::Core::Window::GetWidth |
( |
| ) |
const |
|
nodiscard |
Give the current window width.
- Returns
- Window width in pixels.
Definition at line 225 of file Window.cpp.
◆ GetWindowMode()
| WindowMode Cori::Core::Window::GetWindowMode |
( |
| ) |
const |
|
nodiscard |
◆ IsVSync()
| bool Cori::Core::Window::IsVSync |
( |
| ) |
const |
|
nodiscard |
Checks is VSynch is currently enabled.
- Returns
- True enabled, false disabled.
Definition at line 257 of file Window.cpp.
◆ SetScreenMode()
| std::expected< void, CoriError<> > Cori::Core::Window::SetScreenMode |
( |
const uint32_t | modeIndex | ) |
|
Changes the current ScreenMode.
- Parameters
-
| modeIndex | Index of the screen mode in the screen modes vector (obtainable via GetScreenModes). |
- Returns
- Expected object with void on success or CoriError<> on failure.
Definition at line 274 of file Window.cpp.
◆ SetVSync()
| void Cori::Core::Window::SetVSync |
( |
const bool | status | ) |
|
Changes the VSync state.
- Parameters
-
| status | True enable, false disable. |
Definition at line 245 of file Window.cpp.
◆ SetWindowMode()
◆ Application
The documentation for this class was generated from the following files: