53 #ifndef QGL2PEXVERTEXARRAY_P_H 54 #define QGL2PEXVERTEXARRAY_P_H 58 #include <private/qdatabuffer_p.h> 59 #include <private/qvectorpath_p.h> 60 #include <private/qgl_p.h> 68 x(new_x),
y(new_y) {};
71 x(p.
x()),
y(p.
y()) {};
88 QGLRect(GLfloat
l, GLfloat t, GLfloat r, GLfloat b)
96 operator QRectF()
const {
return QRectF(left, top, right-left, bottom-top);}
103 vertexArray(0), vertexArrayStops(0),
104 maxX(-2e10), maxY(-2e10), minX(2e10), minY(2e10),
105 boundingRectDirty(true)
142 void addPath(
const QVectorPath &path, GLfloat curveInverseScale,
bool outline =
true);
146 int *
stops()
const {
return vertexArrayStops.data(); }
147 int stopCount()
const {
return vertexArrayStops.size(); }
152 void lineToArray(
const GLfloat
x,
const GLfloat
y);
163 void addClosingLine(
int index);
164 void addCentroid(
const QVectorPath &path,
int subPathIndex);
void addVertex(const GLfloat x, const GLfloat y)
qreal right() const
Returns the x-coordinate of the rectangle's right edge.
#define QT_END_NAMESPACE
This macro expands to.
QGLRect(GLfloat l, GLfloat t, GLfloat r, GLfloat b)
QGLPoint(GLfloat new_x, GLfloat new_y)
The QPointF class defines a point in the plane using floating point precision.
void addRect(const QRectF &rect)
qreal left() const
Returns the x-coordinate of the rectangle's left edge.
static void clear(QVariant::Private *d)
Q_CORE_EXPORT QTextStream & right(QTextStream &s)
static const QRectF boundingRect(const QPointF *points, int pointCount)
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
QGLPoint(const QPointF *p)
QGLPoint(const QPointF &p)
QDataBuffer< QGLPoint > vertexArray
qreal top() const
Returns the y-coordinate of the rectangle's top edge.
qreal bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
QDataBuffer< int > vertexArrayStops
Q_CORE_EXPORT QTextStream & left(QTextStream &s)
void addQuad(const QRectF &rect)