-
Notifications
You must be signed in to change notification settings - Fork 1
Application
A edited this page Aug 30, 2022
·
1 revision
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.
| Name | Description | |
|---|---|---|
| Application() |
| Name | Description | |
|---|---|---|
| Window* window_ | Pointer to the Window | |
| bool running_ | if true engine will run its game loop |
| 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 |
| Name | Description | |
|---|---|---|
| Application* CreateApplication() | Application factory. Must be defined on the client side and return extended Application. |