Download Tutorial C Files H Files

dg_scene_add_sys

This function is used to add a system to a scene.

Usage

void dg_scene_add_sys(dg_scene_t *scene, dg_system_t *system);

Example

dg_scene_add_sys(scene, &dg_sys_render);

Source code

void dg_scene_add_sys(dg_scene_t *scene, dg_system_t *system)
{
    if (!scene || !system)
        return;
    dg_arr_add_begin(&(scene->systems), system);
}