66 attr.
offset = mattr.offset;
87 qWarning(
"Maximum number (%d) of vertex attributes in custom geometry has been reached; ignoring extra attributes",
116 qWarning(
"Maximum number (%d) of morph target attributes in custom geometry has been reached; ignoring extra attributes",
Class representing 3D range or axis aligned bounding box.
Q_ALWAYS_INLINE void setEmpty()
Sets empty to true.
Attribute attribute(int idx) const
virtual ~QSSGRenderGeometry()
void setBounds(const QVector3D &min, const QVector3D &max)
void setStride(int stride)
void addAttribute(QSSGMesh::RuntimeMeshData::Attribute::Semantic semantic, int offset, QSSGMesh::Mesh::ComponentType componentType)
const QSSGMesh::RuntimeMeshData & meshData() const
void setVertexData(const QByteArray &data)
void setPrimitiveType(QSSGMesh::Mesh::DrawMode type)
void addSubset(quint32 offset, quint32 count, const QVector3D &boundsMin, const QVector3D &boundsMax, const QString &name={})
void setIndexData(const QByteArray &data)
uint32_t generationId() const
int attributeCount() const
QVector3D boundsMin() const
void setTargetData(const QByteArray &data)
const QByteArray & indexBuffer() const
void addTargetAttribute(quint32 targetId, QSSGMesh::RuntimeMeshData::Attribute::Semantic semantic, int offset, int stride=0)
const QByteArray & vertexBuffer() const
QSSGMesh::RuntimeMeshData m_meshData
QVector3D boundsMax() const
QSSGMesh::Mesh::DrawMode primitiveType() const
void clearVertexAndIndex()
\macro QT_RESTRICTED_CAST_FROM_ASCII
The QVector3D class represents a vector or vertex in 3D space.
GLenum GLenum GLsizei count
const void GLsizei GLsizei stride
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
GLenum GLuint GLintptr offset
QVector< Mesh::Subset > m_subsets
QByteArray m_targetBuffer
TargetAttribute m_targetAttributes[MAX_TARGET_ATTRIBUTES]
Mesh::DrawMode m_primitiveType
void clearVertexAndIndex()
Attribute m_attributes[MAX_ATTRIBUTES]
int m_targetAttributeCount
QByteArray m_vertexBuffer
static const int MAX_TARGET_ATTRIBUTES
static const int MAX_ATTRIBUTES
QSSGMesh::RuntimeMeshData::Attribute::Semantic semantic
QSSGMesh::Mesh::ComponentType componentType