Skip to content

Application

A edited this page Aug 30, 2022 · 1 revision

Reference

header: "Age/Application.h"

Basic AGE application class. Meant to be extended on client side, although it's absolutely can be executed on its own.

Constructors

Name Description
Application()

Variables

Name Description
Window* window_ Pointer to the Window
bool running_ if true engine will run its game loop

Methods

Name Description
virtual void Run() contains game loop, starts the engine run
void OnEvent(Event& e) Handles all events going to the Application
bool OnWindowClose(WindowCloseEvent& e) Handles WindowCloseEvent dispatched to the Application instance

Related functions

Name Description
Application* CreateApplication() Application factory. Must be defined on the client side and return extended Application.

Clone this wiki locally