52 static AttributeSet attrs = { 1,
sizeof(float) * 2, data };
63 static AttributeSet attrs = { 2,
sizeof(float) * 4, data };
74 static AttributeSet attrs = { 2, 2 *
sizeof(float) + 4 *
sizeof(
char), data };
140 if (canUsePrealloc && vertexByteSize <= (
int)
sizeof(
m_prealloc)) {
157 v[0].
x = rect.
left();
163 v[2].
x = rect.
left();
173 v[0].
x = rect.
left();
175 v[0].
tx = textureRect.
left();
176 v[0].
ty = textureRect.
top();
181 v[1].
ty = textureRect.
top();
183 v[2].
x = rect.
left();
185 v[2].
tx = textureRect.
left();
qreal right() const
Returns the x-coordinate of the rectangle's right edge.
TexturedPoint2D * vertexDataAsTexturedPoint2D()
#define QT_END_NAMESPACE
This macro expands to.
static const AttributeSet & defaultAttributes_TexturedPoint2D()
static const AttributeSet & defaultAttributes_Point2D()
Q_CORE_EXPORT void qFree(void *ptr)
static void updateTexturedRectGeometry(QSGGeometry *g, const QRectF &rect, const QRectF &sourceRect)
qreal left() const
Returns the x-coordinate of the rectangle's left edge.
Q_CORE_EXPORT void * qMalloc(size_t size)
QSGGeometry(const QSGGeometry::AttributeSet &attribs, int vertexCount, int indexCount=0, int indexType=GL_UNSIGNED_SHORT)
const AttributeSet & m_attributes
#define QT_BEGIN_NAMESPACE
This macro expands to.
The QRectF class defines a rectangle in the plane using floating point precision. ...
#define GL_TRIANGLE_STRIP
static const AttributeSet & defaultAttributes_ColoredPoint2D()
#define GL_UNSIGNED_SHORT
static const char * data(const QByteArray &arr)
static void updateRectGeometry(QSGGeometry *g, const QRectF &rect)
void setDrawingMode(GLenum mode)
Point2D * vertexDataAsPoint2D()
qreal top() const
Returns the y-coordinate of the rectangle's top edge.
const Attribute * attributes() const
qreal bottom() const
Returns the y-coordinate of the rectangle's bottom edge.
void allocate(int vertexCount, int indexCount=0)