QBuffer Class▲
-
Header: Qt3DCore/QBuffer
-
Since: Qt 5.7
-
CMake:
find_package(Qt6 REQUIRED COMPONENTS 3dcore)
target_link_libraries(mytarget PRIVATE Qt6::3dcore)
-
qmake: QT += 3dcore
-
Inherited By:
-
Instantiated By: qml-qt3d-core-buffer.xml
-
Inherits: Qt3DCore::QNode
-
Inherited By:
Detailed Description▲
Data can be provided directly using QBuffer::setData().
Member Type Documentation▲
enum QBuffer::AccessType▲
enum QBuffer::UsageType▲
The type of the usage.
Constant |
Value |
Description |
---|---|---|
0x88E0 |
GL_STREAM_DRAW |
|
0x88E1 |
GL_STREAM_READ |
|
0x88E2 |
GL_STREAM_COPY |
|
0x88E4 |
GL_STATIC_DRAW |
|
0x88E5 |
GL_STATIC_READ |
|
0x88E6 |
GL_STATIC_COPY |
|
0x88E8 |
GL_DYNAMIC_DRAW |
|
0x88E9 |
GL_DYNAMIC_READ |
|
0x88EA |
GL_DYNAMIC_COPY |
Property Documentation▲
accessType : AccessType▲
Returns the AccessType of the buffer.
Access functions:
-
accessType() const
-
void setAccessType( access)
Notifier signal:
-
void accessTypeChanged( access)
See Also▲
See also QBuffer::AccessType
usage : UsageType▲
Holds the buffer usage.
Access functions:
-
usage() const
-
void setUsage( usage)
Notifier signal:
-
void usageChanged( usage)
Member Function Documentation▲
[explicit] QBuffer::QBuffer(Qt3DCore::QNode *parent = nullptr)▲
Constructs a new QBuffer with parent.
QByteArray QBuffer::data() const▲
void QBuffer::dataAvailable()▲
This signal is emitted when data becomes available.
void QBuffer::dataChanged(const QByteArray &bytes)▲
This signal is emitted with bytes when data changes.
void QBuffer::setData(const QByteArray &bytes)▲
void QBuffer::updateData(int offset, const QByteArray &bytes)▲
Updates the data by replacing it with bytes at offset.