mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 12:52:46 +00:00
1dff24dbd0
It copies an entire hierarchy (minus actual entities, but I'm as yet unsure how to proceed with them), even across scenes as the source scene is irrelevant and the destination scene is used for creating the new transforms.
18 lines
441 B
C
18 lines
441 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;
|
|
|
|
transform_t *__transform_alloc (struct scene_s *scene);
|
|
|
|
#endif//__scn_internal_h
|