many graphics performance tweaks

* use hardware vertex buffers (video memory)
* cache text drawing with vertex buffers instead of framebuffers
* avoid recalculating texture transformation matrix
This commit is contained in:
Eduardo Bart
2012-03-20 16:10:04 -03:00
parent b4261a8c7b
commit 5c35938a92
20 changed files with 180 additions and 155 deletions

View File

@@ -54,7 +54,7 @@ public:
void setOpacity(float opacity);
void setTexture(const TexturePtr& texture);
void setUniformTexture(int location, const TexturePtr& texture, int index);
void draw(const CoordsBuffer& coordsBuffer, DrawMode drawMode = Triangles);
void draw(CoordsBuffer& coordsBuffer, DrawMode drawMode = Triangles);
private:
DrawMode m_drawMode;