79 if (!flecs_poly_release(world_)) {
87 flecs::world_t *world_;
int(* ecs_app_init_action_t)(ecs_world_t *world)
Callback type for init action.
FLECS_API int ecs_app_run(ecs_world_t *world, ecs_app_desc_t *desc)
Run application.
#define ecs_ftime_t
Customizable precision for scalar time values.
int ecs_fini(ecs_world_t *world)
Delete a world.
bool ecs_should_quit(const ecs_world_t *world)
Return whether a quit has been requested.
const ecs_world_info_t * ecs_get_world_info(const ecs_world_t *world)
Get world info.
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.
Type that contains information about the world.