Skip to content

Window ​

#include "Core/Window.h"

Public Functions ​

Name
~Window() =default
voidfinalize()
GLFWwindow *get()
const std::string &getTitle()
voidgetWindowPosAndSize(int & posX, int & posY, int & sizeX, int & sizeY, bool & maximized) const
voidinit(const int oglVersionMajor, const int oglVersionMinor, bool oglDebug, bool oglForwardCompat)<br>Initialize GLFW window.
voidsetTitle(const char * title)
voidsetVSync(bool enable)
voidsetWindowPosAndSize(int posX, int posY, int sizeX, int sizeY, bool maximized)
voidshow() const
voidswapBuffers()

Public Functions Documentation ​

function ~Window ​

cpp
~Window() =default

function finalize ​

cpp
void finalize()

function get ​

cpp
GLFWwindow * get()

function getTitle ​

cpp
const std::string & getTitle()

function getWindowPosAndSize ​

cpp
void getWindowPosAndSize(
    int & posX,
    int & posY,
    int & sizeX,
    int & sizeY,
    bool & maximized
) const

function init ​

cpp
void init(
    const int oglVersionMajor,
    const int oglVersionMinor,
    bool oglDebug,
    bool oglForwardCompat
)

Initialize GLFW window.

Exit the program if a window cannot be created.

function setTitle ​

cpp
void setTitle(
    const char * title
)

function setVSync ​

cpp
void setVSync(
    bool enable
)

function setWindowPosAndSize ​

cpp
void setWindowPosAndSize(
    int posX,
    int posY,
    int sizeX,
    int sizeY,
    bool maximized
)

function show ​

cpp
void show() const

function swapBuffers ​

cpp
void swapBuffers()

Updated on 2026-09-11 at 21:24:24 +0000