Skip to content
A edited this page Aug 30, 2022 · 1 revision

AGE::Window (class)

header: "Age/Window.h"

Window abstraction. Contains window API interface which must be implemented per platform. Also there is a static Create() method which also must be implemented on every supported platform in order for engine to create window.

Methods

Name Description
pure virtual void OnUpdate() Window's update method, gets called every update.
pure virtual unsigned int Width() Window width getter
pure virtual unsigned int Height() Window height getter
pure virtual void EventCallback(const EventCallbackFn& callback)
pure virtual void SetVSync(bool enabled) Window Vertical sync setter
pure virtual bool IsVSync() const Window VSync setter
static Window* Create(WindowProps& props) Window factory. Must be implemented per platform

AGE::WindowProps (struct)

header: Age/Window.h

Contains window props and is used in Window::Init()

Constructors

WindowProps(const age_string_t &title = "AGEngine", unsigned int width = 1280, unsigned int height = 720);

Variables

Name Description
age_string_t title
unsigned int width
unsigned int height

Clone this wiki locally