used VBO instead of VAB

This commit is contained in:
2021-11-29 15:58:48 +08:00
parent 4281839e4d
commit af72c68ebe
31 changed files with 92 additions and 86 deletions

View File

@@ -141,7 +141,7 @@ namespace hgl
protected:
TextRenderable *text_render_obj;
MemBlock<float> vertex;
MemBlock<int16> vertex;
MemBlock<float> tex_coord;
public:

View File

@@ -11,13 +11,13 @@ namespace hgl
*/
class TextRenderable:public Renderable
{
GPUDevice * device;
GPUDevice * device;
Material * mtl;
uint max_count; ///<缓冲区最大容量
VAB * vab_position;
VAB * vab_tex_coord;
VBO * vbo_position;
VBO * vbo_tex_coord;
public:
@@ -28,7 +28,7 @@ namespace hgl
void SetCharCount (const uint);
bool WriteVertex (const float *fp);
bool WriteVertex (const int16 *fp);
bool WriteTexCoord (const float *fp);
};//class TextRenderable:public Renderable
}//namespace graph