diff options
Diffstat (limited to 'src/render/io/qbuffer.h')
-rw-r--r-- | src/render/io/qbuffer.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/render/io/qbuffer.h b/src/render/io/qbuffer.h index 5e99a1a80..aad1ebcaa 100644 --- a/src/render/io/qbuffer.h +++ b/src/render/io/qbuffer.h @@ -51,6 +51,8 @@ GLint tupleSizeFromType(GLint type); GLuint byteSizeFromType(GLint type); class QBufferPrivate; +class QBufferFunctor; +typedef QSharedPointer<QBufferFunctor> QBufferFunctorPtr; class QT3DRENDERERSHARED_EXPORT QBuffer : public QAbstractBuffer { @@ -91,6 +93,9 @@ public: void setType(BufferType type); BufferType type() const; + void setBufferFunctor(const QBufferFunctorPtr &functor); + QBufferFunctorPtr bufferFunctor() const; + protected: QBuffer(QBufferPrivate &dd, QBuffer::BufferType ty, QNode *parent = 0); void copy(const QNode *ref) Q_DECL_OVERRIDE; |