The small3d library
Tiny C++ 3D game development library for Win/MacOS/Linux/FreeBSD
|
Window management class. More...
#include <Windowing.hpp>
Public Member Functions | |
void | initWindow (int &width, int &height, const std::string &windowTitle="") |
Initialise the application window. | |
void | swapBuffers () |
Swap buffers. | |
void | terminate () |
Perform any necessary cleanup actions. | |
GLFWwindow * | getWindow () |
Get the GLFW window used. | |
Window management class.
GLFWwindow * small3d::Windowing::getWindow | ( | ) |
Get the GLFW window used.
void small3d::Windowing::initWindow | ( | int & | width, |
int & | height, | ||
const std::string & | windowTitle = "" ) |
Initialise the application window.
width | Window width. Set to 0 for full screen and the full screen width will be returned here. |
height | Window height. Set to 0 for full screen and the full screen height will be returned here. |
windowTitle | The title of the window |