53#ifndef QOPENGL2PEXVERTEXARRAY_P_H
54#define QOPENGL2PEXVERTEXARRAY_P_H
58#include <private/qdatabuffer_p.h>
59#include <private/qvectorpath_p.h>
60#include <private/qopenglcontext_p.h>
68 x(new_x),
y(new_y) {};
71 x(p.
x()),
y(p.
y()) {};
74 x(p->
x()),
y(p->
y()) {};
79 operator QPointF() {
return QPointF(
x,
y);}
80 operator QPointF()
const {
return QPointF(
x,
y);}
107 vertexArray(0), vertexArrayStops(0),
108 maxX(-2e10), maxY(-2e10), minX(2e10), minY(2e10),
109 boundingRectDirty(true)
114 qreal top = rect.top();
115 qreal left = rect.left();
116 qreal bottom = rect.bottom();
117 qreal right = rect.right();
129 qreal top = rect.top();
130 qreal left = rect.left();
131 qreal bottom = rect.bottom();
132 qreal right = rect.right();
146 void addPath(
const QVectorPath &path, GLfloat curveInverseScale,
bool outline =
true);
150 int *
stops()
const {
return vertexArrayStops.data(); }
151 int stopCount()
const {
return vertexArrayStops.size(); }
159 QDataBuffer<QOpenGLPoint> vertexArray;
160 QDataBuffer<int> vertexArrayStops;
166 bool boundingRectDirty;
167 void addClosingLine(
int index);
168 void addCentroid(
const QVectorPath &path,
int subPathIndex);
void lineToArray(QPointF point)
void addPath(const QVectorPath &path, GLfloat curveInverseScale, bool outline=true)
void addQuad(const QRectF &rect)
void addRect(const QRectF &rect)
QOpenGLRect boundingRect() const
void addVertex(const GLfloat x, const GLfloat y)
QOpenGLPoint(const QPointF *p)
QOpenGLPoint(GLfloat new_x, GLfloat new_y)
Q_DECLARE_TYPEINFO(QOpenGLPoint, Q_PRIMITIVE_TYPE)
QOpenGLRect(GLfloat l, GLfloat t, GLfloat r, GLfloat b)
QOpenGLRect(const QRectF &r)