整理SceneGraph的相关.CPP文件目录,现阶段分立render/scene两个。接下来准备建立SceneWorld,用于写世界管理

This commit is contained in:
2025-03-18 00:38:43 +08:00
parent a4cc34d03b
commit d43a877be1
13 changed files with 28 additions and 33 deletions

View File

@@ -1,10 +1,10 @@
#ifndef HGL_GRAPH_SCENE_NODE_INCLUDE
#define HGL_GRAPH_SCENE_NODE_INCLUDE
#pragma once
#include<hgl/type/ObjectList.h>
#include<hgl/type/IDName.h>
#include<hgl/graph/SceneOrient.h>
#include<hgl/graph/AABB.h>
namespace hgl
{
namespace graph
@@ -111,4 +111,3 @@ namespace hgl
SceneNode *Duplication(SceneNode *); ///<复制一个场景节点
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_SCENE_NODE_INCLUDE

View File

@@ -1,5 +1,4 @@
#ifndef HGL_GRAPH_SCENE_ORIENT_INCLUDE
#define HGL_GRAPH_SCENE_ORIENT_INCLUDE
#pragma once
#include<hgl/graph/VK.h>
#include<hgl/graph/SceneMatrix.h>
@@ -51,4 +50,3 @@ namespace hgl
};//class SceneOrient
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_SCENE_ORIENT_INCLUDE

View File

@@ -9,23 +9,18 @@ namespace hgl
* <Br>
*
*/
class SceneManager
class SceneWorld
{
SceneNode *root_node;
public:
SceneNode *GetSceneRoot() {return root_node;}
const SceneNode *GetSceneRoot()const{return root_node;}
const uint GetNodeCount()const { return node_list.GetCount(); }
public:
};//class SceneManager
};//class SceneWorld
}//namespace graph
}//namespace hgl