准备定义PrimitiveComponent用于取代原本SceneNode中的Renderable数据

This commit is contained in:
2025-03-25 02:19:32 +08:00
parent ab3f771455
commit f0512edb5a
4 changed files with 38 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
#pragma once
#include<hgl/component/RenderComponent.h>
#include<hgl/graph/VKRenderable.h>
COMPONENT_NAMESPACE_BEGIN
class PrimitiveComponent:public RenderComponent
{
public:
PrimitiveComponent()=default;
virtual ~PrimitiveComponent()=default;
Renderable *GetRenderable();
};//class PrimitiveComponent
COMPONENT_NAMESPACE_END