-
Notifications
You must be signed in to change notification settings - Fork 1
Window
A edited this page Aug 30, 2022
·
1 revision
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.
| 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 |
header: Age/Window.h
Contains window props and is used in Window::Init()
WindowProps(const age_string_t &title = "AGEngine", unsigned int width = 1280, unsigned int height = 720);| Name | Description |
|---|---|
| age_string_t title | |
| unsigned int width | |
| unsigned int height |