32 lines
891 B
C++
32 lines
891 B
C++
#ifndef HGL_GRAPH_TEXT_RENDERABLE_INCLUDE
|
|
#define HGL_GRAPH_TEXT_RENDERABLE_INCLUDE
|
|
|
|
#include<hgl/graph/vulkan/VKRenderable.h>
|
|
namespace hgl
|
|
{
|
|
namespace graph
|
|
{
|
|
/**
|
|
* 文本可渲染对象
|
|
*/
|
|
class TextRenderable:public vulkan::Renderable
|
|
{
|
|
vulkan::Renderable * render_obj;
|
|
|
|
uint32 max_count; ///<缓冲区最大容量
|
|
uint32 cur_count; ///<当前容量
|
|
|
|
vulkan::VertexAttribBuffer *vertex_buffer;
|
|
vulkan::VertexAttribBuffer *tex_coord_buffer;
|
|
|
|
public:
|
|
|
|
TextRenderable();
|
|
virtual ~TextRenderable();
|
|
};//class TextRenderable:public vulkan::Renderable
|
|
|
|
|
|
}//namespace graph
|
|
}//namespace hgl
|
|
#endif//HGL_GRAPH_TEXT_RENDERABLE_INCLUDE
|