[scene] Remove scene_resources_t struct

It was made unnecessary by the ECS changes.
This commit is contained in:
Bill Currie 2023-01-20 15:53:51 +09:00
parent 68c7003991
commit 873d400766
7 changed files with 0 additions and 23 deletions

View file

@ -71,7 +71,6 @@ EXTRA_DIST += \
include/regex.h \
include/rua_internal.h \
include/skin_stencil.h \
include/scn_internal.h \
include/snd_internal.h \
include/sv_console.h \
include/varrays.h \

View file

@ -62,9 +62,6 @@ enum scene_components {
typedef struct scene_s {
struct ecs_registry_s *reg;
struct scene_resources_s *const resources;
struct hierarchy_s *hierarchies;
struct model_s *worldmodel;
int num_models;
struct model_s **models;

View file

@ -1,7 +0,0 @@
#ifndef __scn_internal_h
#define __scn_internal_h
typedef struct scene_resources_s {
} scene_resources_t;
#endif//__scn_internal_h

View file

@ -35,8 +35,6 @@
#include "QF/scene/scene.h"
#include "QF/scene/transform.h"
#include "scn_internal.h"
void
Camera_GetViewMatrix (const camera_t *camera, mat4f_t view)
{

View file

@ -35,8 +35,6 @@
#include "QF/scene/entity.h"
#include "QF/scene/scene.h"
#include "scn_internal.h"
entqueue_t *
EntQueue_New (int num_queues)
{

View file

@ -43,8 +43,6 @@
#include "QF/scene/scene.h"
#include "QF/scene/transform.h"
#include "scn_internal.h"
static void
create_active (void *_active)
{
@ -215,9 +213,6 @@ Scene_NewScene (void)
ECS_RegisterComponents (scene->reg, scene_components, scene_comp_count);
ECS_CreateComponentPools (scene->reg);
scene_resources_t *res = calloc (1, sizeof (scene_resources_t));
*(scene_resources_t **)&scene->resources = res;
scene->worldmodel = &empty_world;
return scene;
@ -228,7 +223,6 @@ Scene_DeleteScene (scene_t *scene)
{
ECS_DelRegistry (scene->reg);
free (scene->resources);
free (scene);
}

View file

@ -40,8 +40,6 @@
#include "QF/scene/scene.h"
#include "QF/scene/transform.h"
#include "scn_internal.h"
static void
transform_mat4f_identity (void *_mat)
{