QBuffer#
Provides a data store for raw data to later be used as vertices or uniforms. More…
Synopsis#
Properties#
Functions#
def
accessType()def
data()def
setData(bytes)def
updateData(offset, bytes)def
usage()
Slots#
def
setAccessType(access)def
setUsage(usage)
Signals#
def
accessTypeChanged(access)def
dataAvailable()def
dataChanged(bytes)def
usageChanged(usage)
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#
Data can be provided directly using setData() .
- class PySide6.Qt3DCore.Qt3DCore.QBuffer([parent=None])#
- Parameters:
parent –
PySide6.Qt3DCore.Qt3DCore.QNode
Constructs a new QBuffer with parent.
Note
Properties can be used directly when from __feature__ import true_property is used or via accessor functions otherwise.
- property PᅟySide6.Qt3DCore.Qt3DCore.QBuffer.accessType: AccessType#
Returns the AccessType of the buffer.
See also
AccessType
- Access functions:
accessType()setAccessType(access)Signal
accessTypeChanged(access)
- property PᅟySide6.Qt3DCore.Qt3DCore.QBuffer.usage: UsageType#
Holds the buffer usage.
- Access functions:
usage()setUsage(usage)Signal
usageChanged(usage)
- PySide6.Qt3DCore.Qt3DCore.QBuffer.UsageType#
The type of the usage.
Constant
Description
Qt3DCore.QBuffer.StreamDraw
GL_STREAM_DRAW
Qt3DCore.QBuffer.StreamRead
GL_STREAM_READ
Qt3DCore.QBuffer.StreamCopy
GL_STREAM_COPY
Qt3DCore.QBuffer.StaticDraw
GL_STATIC_DRAW
Qt3DCore.QBuffer.StaticRead
GL_STATIC_READ
Qt3DCore.QBuffer.StaticCopy
GL_STATIC_COPY
Qt3DCore.QBuffer.DynamicDraw
GL_DYNAMIC_DRAW
Qt3DCore.QBuffer.DynamicRead
GL_DYNAMIC_READ
Qt3DCore.QBuffer.DynamicCopy
GL_DYNAMIC_COPY
- PySide6.Qt3DCore.Qt3DCore.QBuffer.AccessType#
Constant
Description
Qt3DCore.QBuffer.Write
Write access
Qt3DCore.QBuffer.Read
Read access
Qt3DCore.QBuffer.ReadWrite
Write|Read
- PySide6.Qt3DCore.Qt3DCore.QBuffer.accessType()#
- Return type:
See also
setAccessType()
Getter of property accessType .
- PySide6.Qt3DCore.Qt3DCore.QBuffer.accessTypeChanged(access)#
- Parameters:
access –
AccessType
Notification signal of property accessType .
- PySide6.Qt3DCore.Qt3DCore.QBuffer.data()#
- Return type:
Returns the data.
See also
setData()
- PySide6.Qt3DCore.Qt3DCore.QBuffer.dataAvailable()#
This signal is emitted when data becomes available.
- PySide6.Qt3DCore.Qt3DCore.QBuffer.dataChanged(bytes)#
- Parameters:
bytes –
PySide6.QtCore.QByteArray
This signal is emitted with bytes when data changes.
- PySide6.Qt3DCore.Qt3DCore.QBuffer.setAccessType(access)#
- Parameters:
access –
AccessType
See also
accessType()
Setter of property accessType .
- PySide6.Qt3DCore.Qt3DCore.QBuffer.setData(bytes)#
- Parameters:
bytes –
PySide6.QtCore.QByteArray
Sets bytes as data.
See also
data()
Setter of property usage .
- PySide6.Qt3DCore.Qt3DCore.QBuffer.updateData(offset, bytes)#
- Parameters:
offset – int
bytes –
PySide6.QtCore.QByteArray
Updates the data by replacing it with bytes at offset.
Getter of property usage .
Notification signal of property usage .