QBuffer露

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

Inheritance diagram of PySide2.Qt3DRender.Qt3DRender.QBuffer

Synopsis露

Functions露

Slots露

Signals露

Detailed Description露

Data can either be provided directly using setData() or by specifying a generator with setDataGenerator() and providing a QBufferDataGeneratorPtr .

When using a generator the data will be loaded asynchronously in a job. The loaded data can be read back if the syncData flag is set to true.

class PySide2.Qt3DRender.Qt3DRender.QBuffer([parent=None])露

PySide2.Qt3DRender.Qt3DRender.QBuffer(ty[, parent=None])

Note

This constructor is deprecated.

param parent:

PySide2.Qt3DCore.Qt3DCore.QNode

param ty:

BufferType

Constructs a new QBuffer with parent .

Constructs a new QBuffer of buffer type ty with parent .

PySide2.Qt3DRender.Qt3DRender.QBuffer.BufferType露

The type of the buffer.

Constant

Description

Qt3DRender.QBuffer.VertexBuffer

GL_ARRAY_BUFFER

Qt3DRender.QBuffer.IndexBuffer

GL_ELEMENT_ARRAY_BUFFER

Qt3DRender.QBuffer.PixelPackBuffer

GL_PIXEL_PACK_BUFFER

Qt3DRender.QBuffer.PixelUnpackBuffer

GL_PIXEL_UNPACK_BUFFER

Qt3DRender.QBuffer.UniformBuffer

GL_UNIFORM_BUFFER

Qt3DRender.QBuffer.ShaderStorageBuffer

GL_SHADER_STORAGE_BUFFER

Qt3DRender.QBuffer.DrawIndirectBuffer

GL_DRAW_INDIRECT_BUFFER

PySide2.Qt3DRender.Qt3DRender.QBuffer.UsageType露

The type of the usage.

Constant

Description

Qt3DRender.QBuffer.StreamDraw

GL_STREAM_DRAW

Qt3DRender.QBuffer.StreamRead

GL_STREAM_READ

Qt3DRender.QBuffer.StreamCopy

GL_STREAM_COPY

Qt3DRender.QBuffer.StaticDraw

GL_STATIC_DRAW

Qt3DRender.QBuffer.StaticRead

GL_STATIC_READ

Qt3DRender.QBuffer.StaticCopy

GL_STATIC_COPY

Qt3DRender.QBuffer.DynamicDraw

GL_DYNAMIC_DRAW

Qt3DRender.QBuffer.DynamicRead

GL_DYNAMIC_READ

Qt3DRender.QBuffer.DynamicCopy

GL_DYNAMIC_COPY

PySide2.Qt3DRender.Qt3DRender.QBuffer.AccessType露

Constant

Description

Qt3DRender.QBuffer.Write

Write access

Qt3DRender.QBuffer.Read

Read access

Qt3DRender.QBuffer.ReadWrite

Write|Read

PySide2.Qt3DRender.Qt3DRender.QBuffer.accessType()露
Return type:

AccessType

Returns the AccessType of the buffer.

See also

AccessType

PySide2.Qt3DRender.Qt3DRender.QBuffer.accessTypeChanged(access)露
Parameters:

access 鈥� AccessType

PySide2.Qt3DRender.Qt3DRender.QBuffer.data()露
Return type:

PySide2.QtCore.QByteArray

Returns the data.

See also

setData()

PySide2.Qt3DRender.Qt3DRender.QBuffer.dataAvailable()露
PySide2.Qt3DRender.Qt3DRender.QBuffer.dataChanged(bytes)露
Parameters:

bytes 鈥� PySide2.QtCore.QByteArray

PySide2.Qt3DRender.Qt3DRender.QBuffer.dataGenerator()露
Return type:

QSharedPointer

Note

This function is deprecated.

Returns the buffer functor.

PySide2.Qt3DRender.Qt3DRender.QBuffer.isSyncData()露
Return type:

bool

Holds the flag. When is true, this will force data created by a QBufferDataGenerator to also be updated on the frontend QBuffer node. By default is false.

Note

: This has no effect if the buffer鈥檚 data was set directly using the data property.

PySide2.Qt3DRender.Qt3DRender.QBuffer.setAccessType(access)露
Parameters:

access 鈥� AccessType

Returns the AccessType of the buffer.

See also

AccessType

PySide2.Qt3DRender.Qt3DRender.QBuffer.setData(bytes)露
Parameters:

bytes 鈥� PySide2.QtCore.QByteArray

Sets bytes as data.

See also

data()

PySide2.Qt3DRender.Qt3DRender.QBuffer.setDataGenerator(functor)露
Parameters:

functor 鈥� QSharedPointer

Note

This function is deprecated.

Sets the buffer functor .

See also

dataGenerator()

PySide2.Qt3DRender.Qt3DRender.QBuffer.setSyncData(syncData)露
Parameters:

syncData 鈥� bool

Holds the flag. When is true, this will force data created by a QBufferDataGenerator to also be updated on the frontend QBuffer node. By default is false.

Note

: This has no effect if the buffer鈥檚 data was set directly using the data property.

PySide2.Qt3DRender.Qt3DRender.QBuffer.setType(type)露
Parameters:

type 鈥� BufferType

Note

This function is deprecated.

Holds the buffer type.

PySide2.Qt3DRender.Qt3DRender.QBuffer.setUsage(usage)露
Parameters:

usage 鈥� UsageType

Holds the buffer usage.

PySide2.Qt3DRender.Qt3DRender.QBuffer.syncDataChanged(syncData)露
Parameters:

syncData 鈥� bool

PySide2.Qt3DRender.Qt3DRender.QBuffer.type()露
Return type:

BufferType

Note

This function is deprecated.

Holds the buffer type.

PySide2.Qt3DRender.Qt3DRender.QBuffer.typeChanged(type)露
Parameters:

type 鈥� BufferType

PySide2.Qt3DRender.Qt3DRender.QBuffer.updateData(offset, bytes)露
Parameters:

Updates the data by replacing it with bytes at offset .

PySide2.Qt3DRender.Qt3DRender.QBuffer.usage()露
Return type:

UsageType

Holds the buffer usage.

PySide2.Qt3DRender.Qt3DRender.QBuffer.usageChanged(usage)露
Parameters:

usage 鈥� UsageType