- class Attribute¶
Synopsis¶
Static functions¶
def
create()
Note
This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE
Detailed Description¶
- PySide6.QtQuick.QSGGeometry.Attribute.position¶
- PySide6.QtQuick.QSGGeometry.Attribute.tupleSize¶
- PySide6.QtQuick.QSGGeometry.Attribute.type¶
- PySide6.QtQuick.QSGGeometry.Attribute.isVertexCoordinate¶
- PySide6.QtQuick.QSGGeometry.Attribute.attributeType¶
- PySide6.QtQuick.QSGGeometry.Attribute.reserved¶
- static create(pos, tupleSize, primitiveType[, isPosition=false])¶
- Parameters:
pos – int
tupleSize – int
primitiveType – int
isPosition – bool
- Return type:
Attribute
Creates a new
Attribute
for attribute registerpos
withtupleSize
. TheprimitiveType
can be any of the supported types fromType
, such asFloatType
orUnsignedByteType
.If the attribute describes the position for the vertex, the
isPosition
hint should be set totrue
. The scene graph renderer may use this information to perform optimizations.Use the create function to construct the attribute, rather than an initialization list, to ensure that all fields are initialized.
- static createWithAttributeType(pos, tupleSize, primitiveType, attributeType)¶
- Parameters:
pos – int
tupleSize – int
primitiveType – int
attributeType –
AttributeType
- Return type:
Attribute
Creates a new
Attribute
for attribute registerpos
withtupleSize
. TheprimitiveType
can be any of the supported types fromType
, such asFloatType
orUnsignedByteType
.attributeType
describes the intended use of the attribute.Use the create function to construct the attribute, rather than an initialization list, to ensure that all fields are initialized.