Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
frame.h File Reference

Frame management. More...

Go to the source code of this file.

Functions

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_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_quit (ecs_world_t *world)
 Signal exit.
 
FLECS_API bool ecs_should_quit (const ecs_world_t *world)
 Return whether a quit has been requested.
 
FLECS_API void ecs_measure_frame_time (ecs_world_t *world, bool enable)
 Measure frame time.
 
FLECS_API void ecs_measure_system_time (ecs_world_t *world, bool enable)
 Measure system time.
 
FLECS_API void ecs_set_target_fps (ecs_world_t *world, ecs_ftime_t fps)
 Set target frames per second (FPS) for an application.
 
FLECS_API void ecs_set_time_scale (ecs_world_t *world, ecs_ftime_t scale)
 Set time scale.
 
FLECS_API void ecs_reset_clock (ecs_world_t *world)
 Reset world clock.
 

Detailed Description

Frame management.

Definition in file frame.h.

Macro Definition Documentation

◆ FLECS_FRAME_H

#define FLECS_FRAME_H

Definition at line 13 of file frame.h.