add TextLayout,RenderableCreater.cpp/.h
This commit is contained in:
32
inc/hgl/graph/font/TextLayout.h
Normal file
32
inc/hgl/graph/font/TextLayout.h
Normal 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
|
Reference in New Issue
Block a user