Lysa  0.0
Lysa 3D Engine
MainLoopEvent Struct Reference

Detailed Description

Global events fired during the main loop

+ Inheritance diagram for MainLoopEvent:

Static Public Attributes

static const event_type PHYSICS_PROCESS {"MAIN_LOOP_PHYSICS_PROCESS"}
 Fired multiple times per frame with the fixed delta time. More...
 
static const event_type PROCESS {"MAIN_LOOP_PROCESS"}
 Fired on time per frame after the physics with the remaining frame time. More...
 
static const event_type QUIT {"MAIN_LOOP_QUIT"}
 Fired just after the main loop exit, but before resources destruction's. More...
 

Additional Inherited Members

- Public Attributes inherited from Event
event_type type
 
std::any payload
 
unique_id id {INVALID_ID}
 
bool consumed {false}
 

Member Data Documentation

const event_type PHYSICS_PROCESS {"MAIN_LOOP_PHYSICS_PROCESS"}
inlinestatic

Fired multiple times per frame with the fixed delta time.

const event_type PROCESS {"MAIN_LOOP_PROCESS"}
inlinestatic

Fired on time per frame after the physics with the remaining frame time.

const event_type QUIT {"MAIN_LOOP_QUIT"}
inlinestatic

Fired just after the main loop exit, but before resources destruction's.