|
LibGame
v0.4.0
The LG Game Engine - Copyright (C) 2024 ETMSoftware
|
6 #ifndef LG_SCENE_GRAPH_H
7 #define LG_SCENE_GRAPH_H
9 #define SCENENODE_NAME_MAX_LEN (64 - 1)
10 #define SCENENODE_CHILD_MAX_NUM 256
12 #define SCENE_GRAPH_MAX_DEPTH 32
13 #define SCENEGRAPH_PRINTOUT_MAX_DEPTH 8
31 char name[SCENENODE_NAME_MAX_LEN + 1];
32 lg_scenenode_type type;
67 #define lg_scenenode_free2(s_node) {lg_scenenode_free(s_node); s_node = NULL;}
Definition: lg_gr_func.h:54
Definition: lg_quaternions.h:29
Definition: lg_shader_progs.h:11
LG_SceneNode * lg_scenenode_new(int id, const char *name, lg_scenenode_type type)
Definition: lg_scene_graph.c:31
Definition: lg_shader_progs.h:16
void lg_scenenode_remove_and_free_all(LG_SceneNode *node)
Definition: lg_scene_graph.c:206
Definition: lg_scene_graph.h:29
Definition: lg_scene_graph.h:48
LG_SceneNode * lg_scenenode_find_by_name(LG_SceneNode *node, const char *name)
Definition: lg_scene_graph.c:339
int lg_scenenode_clone_worldm_l3dvb(LG_SceneNode *dest_node, LG_SceneNode *src_node)
Definition: lg_scene_graph.c:515
Definition: lg_light.h:26
int lg_scenenode_info2(LG_SceneNode *node)
Definition: lg_scene_graph.c:668
Definition: lg_3d_primitives.h:53
void lg_scenenode_remove_child(LG_SceneNode *node, LG_SceneNode *child)
Definition: lg_scene_graph.c:112
void lg_scenenode_add_child(LG_SceneNode *node, LG_SceneNode *child)
Definition: lg_scene_graph.c:91
void lg_scenenode_reset_local_matrix(LG_SceneNode *node)
Definition: lg_scene_graph.c:356
void lg_traverse_scene_graph(LG_SceneNode *node, int(*func)(LG_SceneNode *))
Definition: lg_scene_graph.c:249
Definition: math_3d.h:111
void lg_scenenode_update_world_matrix_tree(LG_SceneNode *node, mat4_t *parent_world_matrix)
Definition: lg_scene_graph.c:423
Definition: lg_camera.h:19
void lg_traverse_printout_scene_graph(LG_SceneNode *node, zboolean extra_info)
Definition: lg_scene_graph.c:590
void lg_scenenode_set_world_matrix(LG_SceneNode *node, vec3_t scaling, vec3_t transl, LG_Quat rot)
Definition: lg_scene_graph.c:454
const char * lg_scenenode_type_string(int type)
Definition: lg_scene_graph.c:680
void lg_scenenode_info(LG_SceneNode *node)
Definition: lg_scene_graph.c:601
LG_SceneNode * lg_scenenode_get_root(LG_SceneNode *node)
Definition: lg_scene_graph.c:159
void lg_scenenode_free(LG_SceneNode *node)
Definition: lg_scene_graph.c:144
void lg_scenenode_update_local_matrix(LG_SceneNode *node, vec3_t scaling, vec3_t transl, LG_Quat rot)
Definition: lg_scene_graph.c:403
Definition: lg_textures.h:42
void lg_traverse_scene_graph_2(LG_SceneNode *node, int(*func)(LG_SceneNode *, LG_Scene *), LG_Scene *scene)
Definition: lg_scene_graph.c:283
void lg_scenenode_attach_to_camera(LG_SceneNode *node, const LG_Camera *cam, vec3_t transl)
Definition: lg_scene_graph.c:483
Definition: lg_vertex.h:60
void lg_scenenode_set_local_matrix(LG_SceneNode *node, vec3_t scaling, vec3_t transl, LG_Quat rot)
Definition: lg_scene_graph.c:379
LG_SceneNode * lg_scenenode_find_by_id(LG_SceneNode *node, int id)
Definition: lg_scene_graph.c:322
Definition: math_3d.h:167