SceneWorld文件改名为Scene
This commit is contained in:
parent
839e187cb2
commit
520b7cae9e
@ -11,14 +11,14 @@
|
|||||||
*
|
*
|
||||||
* AMD FidelityFX中,Component存放于Entity下,而我方中与其类似的定义为SceneNode。
|
* AMD FidelityFX中,Component存放于Entity下,而我方中与其类似的定义为SceneNode。
|
||||||
* 不管是Entity还是SceneNode,它们都提供空间变换,以及子节点、Component的管理。
|
* 不管是Entity还是SceneNode,它们都提供空间变换,以及子节点、Component的管理。
|
||||||
* 而AMD FidelityFX中的Scene,类似于我方的SceneWorld,用于储存一个场景世界的根节点及其它世界唯一数据。
|
* 而AMD FidelityFX中的Scene,类似于我方的Scene,用于储存一个场景世界的根节点及其它世界唯一数据。
|
||||||
*
|
*
|
||||||
* ComponentData是每个Component的数据,用于向Component或是其它模块提供数据。
|
* ComponentData是每个Component的数据,用于向Component或是其它模块提供数据。
|
||||||
* ComponentManager是Component的管理器,用于管理Component的创建、销毁、更新等。
|
* ComponentManager是Component的管理器,用于管理Component的创建、销毁、更新等。
|
||||||
*
|
*
|
||||||
* 需要注意的是:同AMD FidelityFX一样,大部分ComponentManager与SceneWorld基本无关。
|
* 需要注意的是:同AMD FidelityFX一样,大部分ComponentManager与Scene基本无关。
|
||||||
* 因为同样的数据可能出现在多个World之中。
|
* 因为同样的数据可能出现在多个World之中。
|
||||||
* 仅有那些与SceneWorld密切相关的Component它对应的Manager才会出现在SceneWorld中,比如CameraManager/LightManager。
|
* 仅有那些与Scene密切相关的Component它对应的Manager才会出现在Scene中,比如CameraManager/LightManager。
|
||||||
* 而如StaticMeshComponent之类的纯资源型就会是独立存在的。
|
* 而如StaticMeshComponent之类的纯资源型就会是独立存在的。
|
||||||
*
|
*
|
||||||
* Component是组件的基类,所有组件都从这里派生。
|
* Component是组件的基类,所有组件都从这里派生。
|
||||||
|
@ -71,7 +71,7 @@ SET(GRAPH_FRAMEWORK_FILES ${SG_INCLUDE_PATH}/RenderFramework.h
|
|||||||
|
|
||||||
source_group("Framework" FILES ${GRAPH_FRAMEWORK_FILES})
|
source_group("Framework" FILES ${GRAPH_FRAMEWORK_FILES})
|
||||||
|
|
||||||
SET(SG_SCENE_SOURCE ${SG_INCLUDE_PATH}/SceneWorld.h
|
SET(SG_SCENE_SOURCE ${SG_INCLUDE_PATH}/Scene.h
|
||||||
${SG_INCLUDE_PATH}/SceneNodeAttributes.h
|
${SG_INCLUDE_PATH}/SceneNodeAttributes.h
|
||||||
${SG_INCLUDE_PATH}/SceneNode.h
|
${SG_INCLUDE_PATH}/SceneNode.h
|
||||||
${SG_INCLUDE_PATH}/SceneMatrix.h
|
${SG_INCLUDE_PATH}/SceneMatrix.h
|
||||||
@ -79,7 +79,7 @@ SET(SG_SCENE_SOURCE ${SG_INCLUDE_PATH}/SceneWorld.h
|
|||||||
Scene/SceneNode.cpp
|
Scene/SceneNode.cpp
|
||||||
Scene/SceneOrient.cpp
|
Scene/SceneOrient.cpp
|
||||||
Scene/SceneMatrix.cpp
|
Scene/SceneMatrix.cpp
|
||||||
Scene/SceneWorld.cpp
|
Scene/Scene.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
SET(SG_RENDER_SOURCE ${SG_INCLUDE_PATH}/RenderNode.h
|
SET(SG_RENDER_SOURCE ${SG_INCLUDE_PATH}/RenderNode.h
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#include<hgl/graph/Renderer.h>
|
#include<hgl/graph/Renderer.h>
|
||||||
#include<hgl/graph/SceneWorld.h>
|
#include<hgl/graph/Scene.h>
|
||||||
#include<hgl/graph/VKCommandBuffer.h>
|
#include<hgl/graph/VKCommandBuffer.h>
|
||||||
|
|
||||||
namespace hgl::graph
|
namespace hgl::graph
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
#include<hgl/graph/SceneWorld.h>
|
#include<hgl/graph/Scene.h>
|
||||||
#include<hgl/type/Map.h>
|
#include<hgl/type/Map.h>
|
||||||
|
|
||||||
namespace hgl::graph
|
namespace hgl::graph
|
||||||
{
|
{
|
||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
Map<U8String,Scene *> scene_world_map;///<场景世界列表
|
Map<U8String,Scene *> scene_world_map;///<场景列表
|
||||||
}//namespace
|
}//namespace
|
||||||
|
|
||||||
bool RegistryScene(Scene *sw)
|
bool RegistryScene(Scene *sw)
|
Loading…
x
Reference in New Issue
Block a user