Skip to content

OpenGLWindow

A edited this page Aug 31, 2022 · 1 revision

AGE::OpenGLWindow (class)

header: "Platform/OpenGL/OpenGLWindow.h"

Window implementation for OpenGL Platform. Under the hood operates on base of GLFW.

Constructors

Name Description
OpenGLWindow(const WindowProps &props)

Variables

Name Description
private GLFWwindow *window_ pointer to the GLFWwindow
private WindowData data_ OpenGL Window's data
private static bool s_GLFWInitialized states if GLFW has already been initialized

Methods

For base class check Window

Name Description
private void Init(const WindowProps &props) Initializes OpenGL Window and GLFW if it hadn't been initialized beforehand
private void Destroy() Terminates window instance

AGE::OpenGLWindow::WindowData (struct)

Name Description
age_string_t title
unsigned int width
unsigned int height
bool vSync
EventCallbackFn EventCallback A callback for event binding

Clone this wiki locally