ULRE/inc/hgl/component/SceneComponent.h

32 lines
723 B
C
Raw Normal View History

2025-06-14 21:05:36 +08:00
#pragma once
#include<hgl/component/Component.h>
#include<hgl/graph/SceneOrient.h>
2025-06-14 21:05:36 +08:00
COMPONENT_NAMESPACE_BEGIN
/**
* <br>
*
*/
class SceneComponent:public Component,public SceneOrient
2025-06-14 21:05:36 +08:00
{
public:
using Component::Component;
virtual ~SceneComponent()=default;
virtual Component *Duplication() override
{
SceneComponent *sc=(SceneComponent *)Component::Duplication();
if(!sc)
return(sc);
sc->SetLocalMatrix(GetLocalMatrix());
return sc;
}
2025-06-14 21:05:36 +08:00
};//class SceneComponent
COMPONENT_NAMESPACE_END