mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-14 00:40:55 +00:00
6ec8e29429
The root transform of each hierarchy can be extracted from the first transform of the list in the hierarchy, so no information is lost. The main reason for the change is I discovered (obvious in hindsight) that deleting root transforms was O(n) due to keeping them in an array, thus the use of a linked list (I don't expect a hierarchy to be in more than one such list), and I didn't want the transforms to be in a linked list.
16 lines
384 B
C
16 lines
384 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;
|
|
|
|
#endif//__scn_internal_h
|