|
Clutter Engine 0.0.1
|
Represents a window in the Clutter engine. More...
#include <Window.h>
Public Member Functions | |
| Window (const Window &)=delete | |
| void | operator= (const Window &)=delete |
| ~Window () | |
| Destructor. Cleans up window resources. | |
| Vector2 | GetDimensions () const |
| Gets the current dimensions of the window. | |
| GLFWwindow * | GetGLFWWindow () const |
| Gets the underlying GLFW window pointer. | |
| void | ResizeViewport (unsigned int startWidth, unsigned int startHeight, unsigned int width, unsigned int height) |
| Resizes the viewport of the window. | |
| void | RenameViewport (const char *name) |
| Renames the window viewport. | |
| bool | ShouldClose () const |
| Checks if the window should close. | |
| void | SwapBuffers () const |
| Swaps the front and back buffers of the window. | |
| void | Close () |
| Closes the window. | |
Static Public Member Functions | |
| static Window & | Get () |
| Gets the singleton instance of the Window. | |
Friends | |
| class | CEngine |
Represents a window in the Clutter engine.
Handles window creation, resizing, renaming, and buffer swapping.
|
static |
|
inline |
Gets the current dimensions of the window.
|
inline |
Gets the underlying GLFW window pointer.
| void Window::RenameViewport | ( | const char * | name | ) |
Renames the window viewport.
| name | The new name for the window. |
| void Window::ResizeViewport | ( | unsigned int | startWidth, |
| unsigned int | startHeight, | ||
| unsigned int | width, | ||
| unsigned int | height ) |
Resizes the viewport of the window.
| startWidth | The starting width of the viewport. |
| startHeight | The starting height of the viewport. |
| width | The new width of the viewport. |
| height | The new height of the viewport. |
| bool Window::ShouldClose | ( | ) | const |
Checks if the window should close.