summaryrefslogtreecommitdiffstats
path: root/src/opengl/qglbuffer.h
diff options
context:
space:
mode:
authorRhys Weatherley <rhys.weatherley@nokia.com>2010-03-22 23:07:41 (GMT)
committerRhys Weatherley <rhys.weatherley@nokia.com>2010-03-22 23:21:24 (GMT)
commit9973d39d7eb4461c79774aee420a4996051ffbfc (patch)
tree7438d797025f4cf2bb7457a18556cf3d9d7fcf63 /src/opengl/qglbuffer.h
parent8f6b8c5a9750d49e6b93804d37aa64140460bfa6 (diff)
downloadQt-9973d39d7eb4461c79774aee420a4996051ffbfc.zip
Qt-9973d39d7eb4461c79774aee420a4996051ffbfc.tar.gz
Qt-9973d39d7eb4461c79774aee420a4996051ffbfc.tar.bz2
API fixes to QGLBuffer.
Use GLuint for bufferId(), not uint. Replace the raw bind() function with a raw release(), because that's the only useful case for being able to do a raw glBindBuffer(). Reviewed-by: Daniel Pope
Diffstat (limited to 'src/opengl/qglbuffer.h')
-rw-r--r--src/opengl/qglbuffer.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/opengl/qglbuffer.h b/src/opengl/qglbuffer.h
index a060733..2fe1f1f 100644
--- a/src/opengl/qglbuffer.h
+++ b/src/opengl/qglbuffer.h
@@ -43,6 +43,7 @@
#define QGLBUFFER_H
#include <QtCore/qscopedpointer.h>
+#include <QtOpenGL/qgl.h>
QT_BEGIN_HEADER
@@ -97,9 +98,9 @@ public:
bool bind() const;
void release() const;
- static bool bind(QGLBuffer::Type type, uint bufferId);
+ static void release(QGLBuffer::Type type);
- uint bufferId() const;
+ GLuint bufferId() const;
int size() const;