Window
#include "Core/Window.h"
Public Functions
| Name | |
|---|---|
| ~Window() =default | |
| void | finalize() |
| GLFWwindow * | get() |
| const std::string & | getTitle() |
| void | getWindowPosAndSize(int & posX, int & posY, int & sizeX, int & sizeY, bool & maximized) const |
| void | init(const int oglVersionMajor, const int oglVersionMinor, bool oglDebug, bool oglForwardCompat)<br>Initialize GLFW window. |
| void | setTitle(const char * title) |
| void | setVSync(bool enable) |
| void | setWindowPosAndSize(int posX, int posY, int sizeX, int sizeY, bool maximized) |
| void | show() const |
| void | swapBuffers() |
Public Functions Documentation
function ~Window
cpp
~Window() =default~Window() =defaultfunction finalize
cpp
void finalize()void finalize()function get
cpp
GLFWwindow * get()GLFWwindow * get()function getTitle
cpp
const std::string & getTitle()const std::string & getTitle()function getWindowPosAndSize
cpp
void getWindowPosAndSize(
int & posX,
int & posY,
int & sizeX,
int & sizeY,
bool & maximized
) constvoid getWindowPosAndSize(
int & posX,
int & posY,
int & sizeX,
int & sizeY,
bool & maximized
) constfunction init
cpp
void init(
const int oglVersionMajor,
const int oglVersionMinor,
bool oglDebug,
bool oglForwardCompat
)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
)void setTitle(
const char * title
)function setVSync
cpp
void setVSync(
bool enable
)void setVSync(
bool enable
)function setWindowPosAndSize
cpp
void setWindowPosAndSize(
int posX,
int posY,
int sizeX,
int sizeY,
bool maximized
)void setWindowPosAndSize(
int posX,
int posY,
int sizeX,
int sizeY,
bool maximized
)function show
cpp
void show() constvoid show() constfunction swapBuffers
cpp
void swapBuffers()void swapBuffers()Updated on 2026-05-21 at 15:39:35 +0000