PySide6.Qt3DCore.Qt3DCore.QBuffer¶
- class QBuffer¶
Provides a data store for raw data to later be used as vertices or uniforms. More…
Synopsis¶
Properties¶
Methods¶
def
__init__()def
accessType()def
data()def
setData()def
updateData()def
usage()
Slots¶
def
setAccessType()def
setUsage()
Signals¶
def
dataAvailable()def
dataChanged()def
usageChanged()
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 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
- class AccessType¶
Constant
Description
Qt3DCore.QBuffer.Write
Write access
Qt3DCore.QBuffer.Read
Read access
Qt3DCore.QBuffer.ReadWrite
Write|Read
Note
Properties can be used directly when
from __feature__ import true_propertyis used or via accessor functions otherwise.- property accessTypeᅟ: Qt3DCore.QBuffer.AccessType¶
Returns the
AccessTypeof the buffer.See also
AccessType- Access functions:
- property usageᅟ: Qt3DCore.QBuffer.UsageType¶
Holds the buffer usage.
- Access functions:
Signal
usageChanged()
- __init__([parent=None])¶
- Parameters:
parent –
QNode
Constructs a new
QBufferwithparent.- accessType()¶
- Return type:
AccessType
See also
setAccessType()
Getter of property
accessTypeᅟ.- accessTypeChanged(access)¶
- Parameters:
access –
AccessType
Notification signal of property
accessTypeᅟ.- data()¶
- Return type:
Returns the data.
See also
- dataAvailable()¶
This signal is emitted when data becomes available.
- dataChanged(bytes)¶
- Parameters:
bytes –
QByteArray
This signal is emitted with
byteswhen data changes.- setAccessType(access)¶
- Parameters:
access –
AccessType
See also
accessType()
Setter of property
accessTypeᅟ.- setData(bytes)¶
- Parameters:
bytes –
QByteArray
Sets
bytesas data.See also
- setUsage(usage)¶
- Parameters:
usage –
UsageType
See also
usage()
Setter of property
usageᅟ.- updateData(offset, bytes)¶
- Parameters:
offset – int
bytes –
QByteArray
Updates the data by replacing it with
bytesatoffset.- usage()¶
- Return type:
UsageType
See also
setUsage()
Getter of property
usageᅟ.- usageChanged(usage)¶
- Parameters:
usage –
UsageType
Notification signal of property
usageᅟ.