Flecs v3.2
A fast entity component system (ECS) for C & C++
Loading...
Searching...
No Matches
app.h File Reference

App addon. More...

Go to the source code of this file.

Classes

struct  ecs_app_desc_t
 Used with ecs_app_run(). More...
 

Typedefs

typedef int(* ecs_app_init_action_t) (ecs_world_t *world)
 Callback type for init action.
 
typedef struct ecs_app_desc_t ecs_app_desc_t
 Used with ecs_app_run().
 
typedef int(* ecs_app_run_action_t) (ecs_world_t *world, ecs_app_desc_t *desc)
 Callback type for run action.
 
typedef int(* ecs_app_frame_action_t) (ecs_world_t *world, const ecs_app_desc_t *desc)
 Callback type for frame action.
 

Functions

FLECS_API int ecs_app_run (ecs_world_t *world, ecs_app_desc_t *desc)
 Run application.
 
FLECS_API int ecs_app_run_frame (ecs_world_t *world, const ecs_app_desc_t *desc)
 Default frame callback.
 
FLECS_API int ecs_app_set_run_action (ecs_app_run_action_t callback)
 Set custom run action.
 
FLECS_API int ecs_app_set_frame_action (ecs_app_frame_action_t callback)
 Set custom frame action.
 

Detailed Description

App addon.

The app addon is a wrapper around the application's main loop. Its main purpose is to provide a hook to modules that need to take control of the main loop, as is for example the case with native applications that use emscripten with webGL.

Definition in file app.h.

Macro Definition Documentation

◆ FLECS_APP_H

#define FLECS_APP_H

Definition at line 18 of file app.h.