The small3d library
Tiny C++ 3D game development library for Win/MacOS/Linux/FreeBSD
Loading...
Searching...
No Matches
small3d::Windowing Class Reference

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.
 

Static Public Attributes

static int realWindowWidth
 Real window width. It is exposed as public for speed, but it should be treated as read-only.
 
static int realWindowHeight
 Real window height. It is exposed as public for speed, but it should be treated as read-only.
 

Detailed Description

Window management class.

Member Function Documentation

◆ getWindow()

GLFWwindow * small3d::Windowing::getWindow ( )

Get the GLFW window used.

Returns
The GLFW window

◆ initWindow()

void small3d::Windowing::initWindow ( int & width,
int & height,
const std::string & windowTitle = "" )

Initialise the application window.

Parameters
widthWindow width. Set to 0 for full screen and the full screen width will be returned here.
heightWindow height. Set to 0 for full screen and the full screen height will be returned here.
windowTitleThe title of the window

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