The App is the base class of the application.
More...
#include <jmApp.h>
The App is the base class of the application.
◆ App()
◆ ~App()
◆ Init()
Initialize the application.
◆ Update()
void Update |
( |
float |
_framePeriod | ) |
|
|
virtual |
Update the application logic. The given *_framePeriod* is a period of one frame in seconds.
◆ Draw()
Execute drawing of the application graphics. This function is available for engines which does not handle drawing automatically as part of the engine update.
◆ SetPhysicsEnabled()
void SetPhysicsEnabled |
( |
bool |
_physicsEnabled | ) |
|
|
inline |
Set the physics enabled flag.
You can use this flag as an indicator if physics are used in this app.
◆ HasPhysicsEnabled()
bool HasPhysicsEnabled |
( |
| ) |
|
|
inline |
Returns the physics enabled flag.
◆ GetEngineApp()
Returns the engine app object of this application.
◆ AddScene()
void AddScene |
( |
Scene * |
_scene | ) |
|
|
inline |
Add the given *_scene* to this application. The application takes over the ownership of the scene!
◆ GetScenes()
std::vector<Scene*>& GetScenes |
( |
| ) |
|
|
inline |
Returns a reference to the vector of stored scenes.
◆ SetActiveScene()
void SetActiveScene |
( |
Scene * |
_scene | ) |
|
|
virtual |
◆ GetActiveScene()
Scene* GetActiveScene |
( |
| ) |
|
|
inline |
Returns the active scene or nullptr if none.
The documentation for this class was generated from the following files:
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmApp.h
- C:/Development/JugiMapProject/JugiMapFRM/framework_c++/jugimap/jmApp.cpp