add TextLayout,RenderableCreater.cpp/.h

This commit is contained in:
2020-07-11 21:35:14 +08:00
parent 4950a33ae5
commit b7e2cb7018
7 changed files with 179 additions and 2 deletions

View File

@@ -0,0 +1,32 @@
#ifndef HGL_GRAPH_TEXT_LAYOUT_INCLUDE
#define HGL_GRAPH_TEXT_LAYOUT_INCLUDE
#include<hgl/graph/font/FontSource.h>
#include<hgl/graph/RenderableInstance.h>
#include<hgl/graph/VertexBuffer.h>
namespace hgl
{
namespace graph
{
class TextRenderable:public vulkan::Renderable
{
};//class TextRenderable:public vulkan::Renderable
/**
* 文本排版处理
*/
class TextLayout
{
FontSource *source;
public:
TextLayout(FontSource *fs):source(fs){}
virtual ~TextLayout()=default;
};//class TextLayout
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_TEXT_LAYOUT_INCLUDE