SceneComponent增加了SceneOrient父类,所有SceneComponent增加变换属性
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/component/Component.h>
|
||||
#include<hgl/graph/SceneOrient.h>
|
||||
|
||||
COMPONENT_NAMESPACE_BEGIN
|
||||
|
||||
@@ -8,12 +9,11 @@ COMPONENT_NAMESPACE_BEGIN
|
||||
* 场景组件<br>
|
||||
* 场景组件中的元素必须是针对场景起作用的,并不一定需要自己绘出来,但也对场景产生影响。比如太阳光、全局风场
|
||||
*/
|
||||
class SceneComponent:public Component
|
||||
class SceneComponent:public Component,public SceneOrient
|
||||
{
|
||||
public:
|
||||
|
||||
using Component::Component;
|
||||
|
||||
virtual ~SceneComponent()=default;
|
||||
};//class SceneComponent
|
||||
|
||||
|
Reference in New Issue
Block a user