建立Component,第一步先将Renderable渲染迁移到这上面来
This commit is contained in:
19
inc/hgl/component/RenderComponent.h
Normal file
19
inc/hgl/component/RenderComponent.h
Normal file
@@ -0,0 +1,19 @@
|
||||
#pragma once
|
||||
|
||||
#include<hgl/component/Component.h>
|
||||
|
||||
namespace hgl::graph
|
||||
{
|
||||
/**
|
||||
* 可渲染组件
|
||||
*/
|
||||
class RenderComponent: public BaseComponent
|
||||
{
|
||||
public:
|
||||
|
||||
RenderComponent()=default;
|
||||
virtual ~RenderComponent()=default;
|
||||
|
||||
virtual void Render()=0;
|
||||
};//class RenderComponent
|
||||
}//namespace hgl::graph
|
Reference in New Issue
Block a user