Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
frame.h
Go to the documentation of this file.
1
6#ifdef FLECS_FRAME
7
8#if !defined(FLECS_OS_API_IMPL) && !defined(FLECS_NO_OS_API_IMPL)
9#define FLECS_OS_API_IMPL
10#endif
11
12#ifndef FLECS_FRAME_H
13#define FLECS_FRAME_H
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
45FLECS_API
47 ecs_world_t *world,
48 ecs_ftime_t delta_time);
49
56FLECS_API
58 ecs_world_t *world);
59
68FLECS_API
70 ecs_world_t *world,
71 ecs_fini_action_t action,
72 void *ctx);
73
80FLECS_API
82 ecs_world_t *world);
83
90FLECS_API
92 const ecs_world_t *world);
93
105FLECS_API
107 ecs_world_t *world,
108 bool enable);
109
120FLECS_API
122 ecs_world_t *world,
123 bool enable);
124
139FLECS_API
141 ecs_world_t *world,
142 ecs_ftime_t fps);
143
150FLECS_API
152 ecs_world_t *world,
153 ecs_ftime_t scale);
154
160FLECS_API
162 ecs_world_t *world);
163
166#ifdef __cplusplus
167}
168#endif
169
170#endif
171
172#endif // FLECS_FRAME
FLECS_API void ecs_measure_frame_time(ecs_world_t *world, bool enable)
Measure frame time.
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_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.
struct ecs_world_t ecs_world_t
A world is the container for all ECS data and supporting features.
Definition flecs.h:437
void(* ecs_fini_action_t)(ecs_world_t *world, void *ctx)
Action callback on world exit.
Definition flecs.h:653
#define ecs_ftime_t
Customizable precision for scalar time values.
Definition flecs.h:59