VOX
A little voxel engine
Loading...
Searching...
No Matches
Window Class Reference

#include <window.hpp>

Collaboration diagram for Window:
Collaboration graph

Public Member Functions

 Window (const std::string &title, uint32_t width, uint32_t height)
 Construct a new Window object. More...
 
 ~Window ()
 Destroy the Window object. More...
 
GLFWwindow * getGLFWwindow ()
 Get the GLFWwindow window pointer. More...
 
bool shouldClose ()
 Check if the window should close. More...
 
Inputinput ()
 Get the Input object for the window. More...
 

Constructor & Destructor Documentation

◆ Window()

Window::Window ( const std::string &  title,
uint32_t  width,
uint32_t  height 
)

Construct a new Window object.

Parameters
titleThe title of the window
widthThe width of the window
heightThe height of the window

◆ ~Window()

Window::~Window ( )

Destroy the Window object.

Member Function Documentation

◆ getGLFWwindow()

GLFWwindow * Window::getGLFWwindow ( )

Get the GLFWwindow window pointer.

Returns
GLFWwindow* The GLFWwindow window pointer

◆ input()

Input & Window::input ( )
inline

Get the Input object for the window.

Returns
Input The Input object for the window

◆ shouldClose()

bool Window::shouldClose ( )

Check if the window should close.


The documentation for this class was generated from the following files: