diff options
author | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-05-28 07:40:08 (GMT) |
---|---|---|
committer | Rhys Weatherley <rhys.weatherley@nokia.com> | 2010-05-28 07:40:08 (GMT) |
commit | aaf3e8013d21b7f9247da7751a340b75d1deedc2 (patch) | |
tree | 5f493bb2c6ef1eecb113f47e9bce09fdb1728c08 /src/opengl/qglbuffer.h | |
parent | 4d848478706e1a32eb0d85e222ba029f68a768d7 (diff) | |
download | Qt-aaf3e8013d21b7f9247da7751a340b75d1deedc2.zip Qt-aaf3e8013d21b7f9247da7751a340b75d1deedc2.tar.gz Qt-aaf3e8013d21b7f9247da7751a340b75d1deedc2.tar.bz2 |
Make QGLBuffer copiable
Reviewed-by: Gunnar
Diffstat (limited to 'src/opengl/qglbuffer.h')
-rw-r--r-- | src/opengl/qglbuffer.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/opengl/qglbuffer.h b/src/opengl/qglbuffer.h index 2fe1f1f..a1b45ff 100644 --- a/src/opengl/qglbuffer.h +++ b/src/opengl/qglbuffer.h @@ -64,9 +64,13 @@ public: PixelUnpackBuffer = 0x88EC // GL_PIXEL_UNPACK_BUFFER }; + QGLBuffer(); explicit QGLBuffer(QGLBuffer::Type type); + QGLBuffer(const QGLBuffer &other); ~QGLBuffer(); + QGLBuffer &operator=(const QGLBuffer &other); + enum UsagePattern { StreamDraw = 0x88E0, // GL_STREAM_DRAW @@ -95,6 +99,8 @@ public: bool create(); bool isCreated() const; + void destroy(); + bool bind() const; void release() const; @@ -114,9 +120,8 @@ public: bool unmap(); private: - QScopedPointer<QGLBufferPrivate> d_ptr; + QGLBufferPrivate *d_ptr; - Q_DISABLE_COPY(QGLBuffer) Q_DECLARE_PRIVATE(QGLBuffer) }; |