mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-27 06:34:11 +00:00
ab91d73635
This will reduce the memory churn when creating hierarchies as transforms switch between being root and child.
19 lines
509 B
C
19 lines
509 B
C
#ifndef __scn_internal_h
|
|
#define __scn_internal_h
|
|
|
|
#include "QF/progs.h"
|
|
#include "QF/scene/entity.h"
|
|
#include "QF/scene/hierarchy.h"
|
|
#include "QF/scene/scene.h"
|
|
#include "QF/scene/transform.h"
|
|
|
|
typedef struct scene_resources_s {
|
|
PR_RESMAP (entity_t) entities;
|
|
PR_RESMAP (hierarchy_t) hierarchies;
|
|
PR_RESMAP (transform_t) transforms;
|
|
} scene_resources_t;
|
|
|
|
void scene_add_root (scene_t *scene, transform_t *transform);
|
|
void scene_del_root (scene_t *scene, transform_t *transform);
|
|
|
|
#endif//__scn_internal_h
|