![]() |
Flecs v4.1
A fast entity component system (ECS) for C & C++
|
App builder interface. More...
#include <builder.hpp>
Public Member Functions | |
| app_builder (flecs::world_t *world) | |
| app_builder & | target_fps (ecs_ftime_t value) |
| Set the target frames per second. | |
| app_builder & | delta_time (ecs_ftime_t value) |
| Set the fixed delta time for each frame. | |
| app_builder & | threads (int32_t value) |
| Set the number of threads. | |
| app_builder & | frames (int32_t value) |
| Set the number of frames to run. | |
| app_builder & | enable_rest (uint16_t port=0) |
| Enable the REST API. | |
| app_builder & | enable_stats (bool value=true) |
| Enable statistics collection. | |
| app_builder & | init (ecs_app_init_action_t value) |
| Set the init callback. | |
| app_builder & | ctx (void *value) |
| Set the application context. | |
| int | run () |
| Run the application. | |
App builder interface.
Definition at line 19 of file builder.hpp.
|
inline |
Definition at line 20 of file builder.hpp.
|
inline |
Set the application context.
Definition at line 76 of file builder.hpp.
|
inline |
Set the fixed delta time for each frame.
Definition at line 39 of file builder.hpp.
|
inline |
Enable the REST API.
Definition at line 57 of file builder.hpp.
|
inline |
Enable statistics collection.
Definition at line 64 of file builder.hpp.
|
inline |
Set the number of frames to run.
Definition at line 51 of file builder.hpp.
|
inline |
Set the init callback.
Definition at line 70 of file builder.hpp.
|
inline |
Run the application.
Definition at line 82 of file builder.hpp.
|
inline |
Set the target frames per second.
Definition at line 33 of file builder.hpp.
|
inline |
Set the number of threads.
Definition at line 45 of file builder.hpp.