Optional addon for running the main application loop.
More...
Optional addon for running the main application loop.
◆ ecs_app_frame_action_t
Callback type for frame action.
Definition at line 58 of file app.h.
◆ ecs_app_init_action_t
typedef int(* ecs_app_init_action_t) (ecs_world_t *world) |
Callback type for init action.
Definition at line 33 of file app.h.
◆ ecs_app_run_action_t
Callback type for run action.
Definition at line 53 of file app.h.
◆ ecs_app_run()
Run application.
This will run the application with the parameters specified in desc. After the application quits (ecs_quit() is called) the world will be cleaned up.
If a custom run action is set, it will be invoked by this operation. The default run action calls the frame action in a loop until it returns a non-zero value.
- Parameters
-
world | The world. |
desc | Application parameters. |
◆ ecs_app_run_frame()
Default frame callback.
This operation will run a single frame. By default this operation will invoke ecs_progress() directly, unless a custom frame action is set.
- Parameters
-
- Returns
- value returned by ecs_progress()
◆ ecs_app_set_frame_action()
◆ ecs_app_set_run_action()