Vivid
|
A class that represents a window and is wrapper of GLFWwindow. More...
#include <Window.h>
Public Member Functions | |
void | Clear () const |
void | Update () |
int | GetWidth () const |
int | GetHeight () const |
GLFWwindow * | GetGLFWWindow () const |
float | GetAspectRatio () const |
void | SetRenderingInterface (RenderingInterface *renderingInterface) |
Sets the rendering interface. | |
Vivid::Maths::Vec2 | GetViewportPosition () |
float | GetViewportWidth () |
float | GetViewportHeight () |
Static Public Member Functions | |
static Window * | Init (int width, int height, const char *title) |
Initializes the window. | |
A class that represents a window and is wrapper of GLFWwindow.
This class contains functions to clear the window, update the window, get the width of the window, get the height of the window, get the GLFW window, get the aspect ratio of the window, set the rendering interface, get the viewport position, get the viewport width, and get the viewport height.
void Window::Clear | ( | ) | const |
Definition at line 72 of file Window.cpp.
|
inline |
|
static |
Initializes the window.
Initializes the window with the width, height, and title. Only one window exists at a time.
Definition at line 64 of file Window.cpp.
void Window::SetRenderingInterface | ( | RenderingInterface * | renderingInterface | ) |
Sets the rendering interface.
Sets the rendering interface to the rendering interface passed in.
renderingInterface | The rendering interface to set. |
Definition at line 77 of file Window.cpp.
void Window::Update | ( | ) |
Definition at line 86 of file Window.cpp.