QBuffer

Provides a data store for raw data to later be used as vertices or uniforms. More

Inheritance diagram of PySide6.Qt3DCore.Qt3DCore.QBuffer

New in version 6.0.

Synopsis

Functions

Slots

Signals

Detailed Description

Data can be provided directly using setData() .

class PySide6.Qt3DCore.Qt3DCore.QBuffer([parent=None])
Parameters

parentPySide6.Qt3DCore.Qt3DCore.QNode

Constructs a new QBuffer with parent.

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

AccessType

Returns the AccessType of the buffer.

See also

AccessType

PySide6.Qt3DCore.Qt3DCore.QBuffer.accessTypeChanged(access)
Parameters

accessAccessType

PySide6.Qt3DCore.Qt3DCore.QBuffer.data()
Return type

PySide6.QtCore.QByteArray

Returns the data.

See also

setData()

PySide6.Qt3DCore.Qt3DCore.QBuffer.dataAvailable()
PySide6.Qt3DCore.Qt3DCore.QBuffer.dataChanged(bytes)
Parameters

bytesPySide6.QtCore.QByteArray

PySide6.Qt3DCore.Qt3DCore.QBuffer.setAccessType(access)
Parameters

accessAccessType

Returns the AccessType of the buffer.

See also

AccessType

PySide6.Qt3DCore.Qt3DCore.QBuffer.setData(bytes)
Parameters

bytesPySide6.QtCore.QByteArray

Sets bytes as data.

See also

data()

PySide6.Qt3DCore.Qt3DCore.QBuffer.setUsage(usage)
Parameters

usageUsageType

Holds the buffer usage.

PySide6.Qt3DCore.Qt3DCore.QBuffer.updateData(offset, bytes)
Parameters

Updates the data by replacing it with bytes at offset.

PySide6.Qt3DCore.Qt3DCore.QBuffer.usage()
Return type

UsageType

Holds the buffer usage.

PySide6.Qt3DCore.Qt3DCore.QBuffer.usageChanged(usage)
Parameters

usageUsageType