25 desc_.target_fps =
stats->target_fps;
27 if (ECS_EQ(desc_.target_fps, t_zero)) {
28 desc_.target_fps = 60;
76 app_builder&
ctx(
void *value) {
88 if (!flecs_poly_release(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.
ecs_world_t world_t
World type.
#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 the world info.
Type that contains information about the world.
app_builder & frames(int32_t value)
Set the number of frames to run.
app_builder & init(ecs_app_init_action_t value)
Set the init callback.
int run()
Run the application.
app_builder & enable_stats(bool value=true)
Enable statistics collection.
app_builder & threads(int32_t value)
Set the number of threads.
app_builder & enable_rest(uint16_t port=0)
Enable the REST API.
app_builder & delta_time(ecs_ftime_t value)
Set the fixed delta time for each frame.
app_builder & target_fps(ecs_ftime_t value)
Set the target frames per second.
app_builder & ctx(void *value)
Set the application context.