ULRE/inc/hgl/graph/font/TextRenderable.h

34 lines
946 B
C
Raw Normal View History

2020-07-24 17:51:36 +08:00
#ifndef HGL_GRAPH_TEXT_RENDERABLE_INCLUDE
#define HGL_GRAPH_TEXT_RENDERABLE_INCLUDE
#include<hgl/graph/vulkan/VKRenderable.h>
namespace hgl
{
namespace graph
{
/**
*
*/
2020-07-24 17:51:36 +08:00
class TextRenderable:public vulkan::Renderable
{
2020-08-07 22:34:07 +08:00
vulkan::Device *device;
vulkan::Renderable *render_obj;
uint32 max_count; ///<缓冲区最大容量
uint32 cur_count; ///<当前容量
2020-08-07 22:34:07 +08:00
vulkan::VAB *vab_vertex;
vulkan::VAB *vab_tex_coord;
public:
2020-08-07 22:34:07 +08:00
TextRenderable(vulkan::Device *,int mc=1024);
virtual ~TextRenderable();
2020-08-07 22:34:07 +08:00
void SetMaxCount(int);
};//class TextRenderable:public vulkan::Renderable
2020-07-24 17:51:36 +08:00
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_TEXT_RENDERABLE_INCLUDE