20void QQuickShapeCurveNode::updateMaterial()
31 m_uncookedVertexes.size(),
32 m_uncookedIndexes.size(),
36 g->allocate(m_uncookedVertexes.size(), m_uncookedIndexes.size());
40 memcpy(
g->vertexData(),
41 m_uncookedVertexes.constData(),
42 g->vertexCount() *
g->sizeOfVertex());
43 memcpy(
g->indexData(),
44 m_uncookedIndexes.constData(),
45 g->indexCount() *
g->sizeOfIndex());
47 m_uncookedIndexes.clear();
48 m_uncookedVertexes.clear();
const QSGGeometry * geometry() const
Returns this node's geometry.
void setGeometry(QSGGeometry *geometry)
Sets the geometry of this node to geometry.
void setMaterial(QSGMaterial *material)
Sets the material of this geometry node to material.
The QSGGeometry class provides low-level storage for graphics primitives in the \l{Qt Quick Scene Gra...
void setFlag(Flag, bool=true)
Sets the flag f on this node if enabled is true; otherwise clears the flag.
T * data() const noexcept
Returns the value of the pointer referenced by this object.
void reset(T *other=nullptr) noexcept(noexcept(Cleanup::cleanup(std::declval< T * >())))
Deletes the existing object it is pointing to (if any), and sets its pointer to other.
Combined button and popup list for selecting options.
static struct AttrInfo attrs[]
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
The QSGGeometry::AttributeSet describes how the vertices in a QSGGeometry are built up.
The QSGGeometry::Attribute describes a single vertex attribute in a QSGGeometry.
static Attribute createWithAttributeType(int pos, int tupleSize, int primitiveType, AttributeType attributeType)
Creates a new QSGGeometry::Attribute for attribute register pos with tupleSize.