FLECS_API void ecs_set_time_scale(ecs_world_t *world, ecs_ftime_t scale)
Set time scale.
FLECS_API ecs_ftime_t ecs_frame_begin(ecs_world_t *world, ecs_ftime_t delta_time)
Begin frame.
FLECS_API void ecs_frame_end(ecs_world_t *world)
End frame.
FLECS_API void ecs_quit(ecs_world_t *world)
Signal exit.
FLECS_API void ecs_run_post_frame(ecs_world_t *world, ecs_fini_action_t action, void *ctx)
Register an action to be executed once after the frame.
FLECS_API void ecs_reset_clock(ecs_world_t *world)
Reset world clock.
FLECS_API bool ecs_should_quit(const ecs_world_t *world)
Return whether a quit has been requested.
FLECS_API void ecs_set_target_fps(ecs_world_t *world, ecs_ftime_t fps)
Set target frames per second (FPS) for an application.
void set_target_fps(ecs_ftime_t target_fps) const
Set the target FPS.
void frame_end() const
End frame.
void reset_clock() const
Reset the simulation clock.
void quit() const
Signal application should quit.
void set_time_scale(ecs_ftime_t mul) const
Set the time scale.
ecs_ftime_t frame_begin(ecs_ftime_t delta_time=0) const
Begin frame.
void run_post_frame(ecs_fini_action_t action, void *ctx) const
Run callback after completing the frame.
bool should_quit() const
Test if quit() has been called.
void(* ecs_fini_action_t)(ecs_world_t *world, void *ctx)
Action callback on world exit.
#define ecs_ftime_t
Customizable precision for scalar time values.
world_t * world_
Pointer to the underlying C world.
ecs_ftime_t delta_time() const
Get delta_time.