整理SceneGraph的相关.CPP文件目录,现阶段分立render/scene两个。接下来准备建立SceneWorld,用于写世界管理
This commit is contained in:
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
Reference in New Issue
Block a user