int(* ecs_app_init_action_t)(ecs_world_t *world)
Callback type for init action.
int(* ecs_app_frame_action_t)(ecs_world_t *world, const ecs_app_desc_t *desc)
Callback type for frame action.
struct ecs_app_desc_t ecs_app_desc_t
Used with ecs_app_run().
int(* ecs_app_run_action_t)(ecs_world_t *world, ecs_app_desc_t *desc)
Callback type for run action.
FLECS_API int ecs_app_run(ecs_world_t *world, ecs_app_desc_t *desc)
Run application.
FLECS_API int ecs_app_run_frame(ecs_world_t *world, const ecs_app_desc_t *desc)
Default frame callback.
FLECS_API int ecs_app_set_run_action(ecs_app_run_action_t callback)
Set custom run action.
FLECS_API int ecs_app_set_frame_action(ecs_app_frame_action_t callback)
Set custom frame action.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
#define ecs_ftime_t
Customizable precision for scalar time values.
uint16_t port
HTTP port used by REST API.
bool enable_stats
Periodically collect statistics.
ecs_ftime_t target_fps
Target FPS.
ecs_ftime_t delta_time
Frame time increment (0 for measured values)
ecs_app_init_action_t init
If set, function is ran before starting the main loop.
int32_t frames
Number of frames to run (0 for infinite)
void * ctx
Reserved for custom run/frame actions.
bool enable_rest
Enables ECS access over HTTP, necessary for explorer.
int32_t threads
Number of threads.