SPARK
0.1.0
A general purpose game engine written in C++.
|
An interface representing any window of any platform. More...
#include <Window.h>
Classes | |
struct | Settings |
A struct containing the settings used to create a window. More... | |
Public Member Functions | |
Window (const Settings &settings) | |
Creates a window with the given settings . | |
Window (const Window &other)=delete | |
Window (Window &&other) noexcept=default | |
Window & | operator= (const Window &other)=delete |
Window & | operator= (Window &&other) noexcept=default |
void | close () |
Closes the window. | |
void | onUpdate () |
Method called every frame to update the window. | |
bool | isMinimized () const |
Checks if the window is minimized. | |
math::Vector2< unsigned int > | size () const |
Gets the size of the window. | |
Renderer2D< render::vk::VulkanBackend > & | renderer () const |
Gets the renderer of the window. | |
void * | nativeWindow () const |
Gets a handle to the native platform window. | |
Public Attributes | |
spark::patterns::Signal< spark::math::Vector2< unsigned int > > | onResize |
Event triggered when the window is resized. | |
An interface representing any window of any platform.
|
explicit |
Creates a window with the given settings
.
settings | The Settings used to create and manage the window. |
bool spark::core::Window::isMinimized | ( | ) | const |
Checks if the window is minimized.
true
if the window is minimized, false
otherwise.
|
nodiscard |
Gets a handle to the native platform window.
|
nodiscard |
Gets the renderer of the window.
|
nodiscard |
Gets the size of the window.