summaryrefslogtreecommitdiffstats
path: root/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
diff options
context:
space:
mode:
authorMartin Smith <msmith@trolltech.com>2009-12-04 14:02:35 (GMT)
committerMartin Smith <msmith@trolltech.com>2009-12-04 14:02:35 (GMT)
commit33441e2a611f07207b0b942368aab9010cdf8ab1 (patch)
tree77a223255bab621549f340c86fe19005f1ebbc62 /src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
parent77f274672480e5980d9f42e4fd94c9770279543b (diff)
parentb6cf9e28c2fef9112789e98ac9d1eda45a407889 (diff)
downloadQt-33441e2a611f07207b0b942368aab9010cdf8ab1.zip
Qt-33441e2a611f07207b0b942368aab9010cdf8ab1.tar.gz
Qt-33441e2a611f07207b0b942368aab9010cdf8ab1.tar.bz2
Merge branch '4.6' of git@scm.dev.nokia.troll.no:qt/oslo-staging-1 into 4.6
Diffstat (limited to 'src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h')
-rw-r--r--src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
index 719904f..98eaa91 100644
--- a/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
+++ b/src/opengl/gl2paintengineex/qgl2pexvertexarray_p.h
@@ -108,23 +108,23 @@ public:
void clear();
QGLPoint* data() {return vertexArray.data();}
- QVector<int>& stops() {return vertexArrayStops;}
+ int *stops() const { return vertexArrayStops.data(); }
+ int stopCount() const { return vertexArrayStops.size(); }
QGLRect boundingRect() const;
+ int vertexCount() const { return vertexArray.size(); }
+
void lineToArray(const GLfloat x, const GLfloat y);
private:
QDataBuffer<QGLPoint> vertexArray;
- QVector<int> vertexArrayStops;
+ QDataBuffer<int> vertexArrayStops;
GLfloat maxX;
GLfloat maxY;
GLfloat minX;
GLfloat minY;
bool boundingRectDirty;
-
- inline void curveToArray(const QGLPoint &cp1, const QGLPoint &cp2, const QGLPoint &ep, GLfloat inverseScale);
-
void addClosingLine(int index);
void addCentroid(const QVectorPath &path, int subPathIndex);
};