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

37 lines
939 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/VKRenderable.h>
2020-07-24 17:51:36 +08:00
namespace hgl
{
namespace graph
{
/**
*
*/
2020-10-21 12:47:06 +08:00
class TextRenderable:public Renderable
2020-07-24 17:51:36 +08:00
{
2020-10-21 12:47:06 +08:00
GPUDevice * device;
Material * mtl;
2020-08-07 22:34:07 +08:00
uint max_count; ///<缓冲区最大容量
2020-10-21 12:47:06 +08:00
VAB * vab_position;
VAB * vab_tex_coord;
public:
2020-10-21 12:47:06 +08:00
TextRenderable(GPUDevice *,Material *,uint mc=1024);
virtual ~TextRenderable();
public:
void SetCharCount (const uint);
bool WriteVertex (const float *fp);
bool WriteTexCoord (const float *fp);
2020-10-21 12:47:06 +08:00
};//class TextRenderable:public Renderable
2020-07-24 17:51:36 +08:00
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_TEXT_RENDERABLE_INCLUDE