增加新的StaticMeshComponent,并添加关于各Component关系的注释
This commit is contained in:
@@ -1,18 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/component/RenderComponent.h>
|
||||
#include<hgl/graph/VKRenderable.h>
|
||||
|
||||
COMPONENT_NAMESPACE_BEGIN
|
||||
|
||||
/**
|
||||
* 图元组件<br>
|
||||
* 组件中的元素必须是一个可以明确描述的几何体,可以被明确标记尺寸、参与空间、物理计算等。
|
||||
*/
|
||||
class PrimitiveComponent:public RenderComponent
|
||||
{
|
||||
public:
|
||||
|
||||
PrimitiveComponent()=default;
|
||||
virtual ~PrimitiveComponent()=default;
|
||||
|
||||
Renderable *GetRenderable();
|
||||
};//class PrimitiveComponent
|
||||
|
||||
COMPONENT_NAMESPACE_END
|
||||
|
Reference in New Issue
Block a user