Flecs v4.1
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
flecs::app_builder Struct Reference

App builder interface. More...

#include <builder.hpp>

Public Member Functions

 app_builder (flecs::world_t *world)
 
app_buildertarget_fps (ecs_ftime_t value)
 Set the target frames per second.
 
app_builderdelta_time (ecs_ftime_t value)
 Set the fixed delta time for each frame.
 
app_builderthreads (int32_t value)
 Set the number of threads.
 
app_builderframes (int32_t value)
 Set the number of frames to run.
 
app_builderenable_rest (uint16_t port=0)
 Enable the REST API.
 
app_builderenable_stats (bool value=true)
 Enable statistics collection.
 
app_builderinit (ecs_app_init_action_t value)
 Set the init callback.
 
app_builderctx (void *value)
 Set the application context.
 
int run ()
 Run the application.
 

Detailed Description

App builder interface.

Definition at line 19 of file builder.hpp.

Constructor & Destructor Documentation

◆ app_builder()

flecs::app_builder::app_builder ( flecs::world_t * world)
inline

Definition at line 20 of file builder.hpp.

Member Function Documentation

◆ ctx()

app_builder & flecs::app_builder::ctx ( void * value)
inline

Set the application context.

Definition at line 76 of file builder.hpp.

◆ delta_time()

app_builder & flecs::app_builder::delta_time ( ecs_ftime_t value)
inline

Set the fixed delta time for each frame.

Definition at line 39 of file builder.hpp.

◆ enable_rest()

app_builder & flecs::app_builder::enable_rest ( uint16_t port = 0)
inline

Enable the REST API.

Definition at line 57 of file builder.hpp.

◆ enable_stats()

app_builder & flecs::app_builder::enable_stats ( bool value = true)
inline

Enable statistics collection.

Definition at line 64 of file builder.hpp.

◆ frames()

app_builder & flecs::app_builder::frames ( int32_t value)
inline

Set the number of frames to run.

Definition at line 51 of file builder.hpp.

◆ init()

app_builder & flecs::app_builder::init ( ecs_app_init_action_t value)
inline

Set the init callback.

Definition at line 70 of file builder.hpp.

◆ run()

int flecs::app_builder::run ( )
inline

Run the application.

Definition at line 82 of file builder.hpp.

◆ target_fps()

app_builder & flecs::app_builder::target_fps ( ecs_ftime_t value)
inline

Set the target frames per second.

Definition at line 33 of file builder.hpp.

◆ threads()

app_builder & flecs::app_builder::threads ( int32_t value)
inline

Set the number of threads.

Definition at line 45 of file builder.hpp.


The documentation for this struct was generated from the following file: