summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
diff options
context:
space:
mode:
authorSamuel Rødal <sroedal@trolltech.com>2009-02-18 08:42:04 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-04-01 14:32:50 (GMT)
commit6513e4b9513dfc591c53744517f05aa3c522ace3 (patch)
treeee8c28657b0f1961d260b9ae22e24308e40200f7 /src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
parenta49ec03834b14063b4130c410d59df6e8c4db8ce (diff)
downloadQt-6513e4b9513dfc591c53744517f05aa3c522ace3.zip
Qt-6513e4b9513dfc591c53744517f05aa3c522ace3.tar.gz
Qt-6513e4b9513dfc591c53744517f05aa3c522ace3.tar.bz2
Fixes: GL 2 paint engine text rendering optimization.
RevBy: Tom Details: Buffer vertex and texture coordinates so that we get away with just a single glDrawArrays call per text item. Also move drawCachedGlyphs() into the private class.
Diffstat (limited to 'src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
index c205022..65f6d42 100644
--- a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
+++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
@@ -98,6 +98,7 @@ public:
maxX(-2e10), maxY(-2e10), minX(2e10), minY(2e10),
boundingRectDirty(true) {}
+ void addRect(const QRectF &rect);
void addPath(const QVectorPath &path, GLfloat curveInverseScale);
void clear();