add TextRenderable

This commit is contained in:
2020-08-07 22:34:07 +08:00
parent d26b59cb1d
commit a6f1657cac
3 changed files with 68 additions and 6 deletions

View File

@@ -11,21 +11,23 @@ namespace hgl
*/
class TextRenderable:public vulkan::Renderable
{
vulkan::Renderable * render_obj;
vulkan::Device *device;
vulkan::Renderable *render_obj;
uint32 max_count; ///<缓冲区最大容量
uint32 cur_count; ///<当前容量
vulkan::VertexAttribBuffer *vertex_buffer;
vulkan::VertexAttribBuffer *tex_coord_buffer;
vulkan::VAB *vab_vertex;
vulkan::VAB *vab_tex_coord;
public:
TextRenderable();
TextRenderable(vulkan::Device *,int mc=1024);
virtual ~TextRenderable();
void SetMaxCount(int);
};//class TextRenderable:public vulkan::Renderable
}//namespace graph
}//namespace hgl
#endif//HGL_GRAPH_TEXT_RENDERABLE_INCLUDE