45 #include <QtCore/qscopedpointer.h> 46 #include <QtOpenGL/qgl.h> 61 VertexBuffer = 0x8892,
63 PixelPackBuffer = 0x88EB,
64 PixelUnpackBuffer = 0x88EC
100 bool isCreated()
const;
109 GLuint bufferId()
const;
113 bool read(
int offset,
void *
data,
int count);
114 void write(
int offset,
const void *
data,
int count);
116 void allocate(
const void *
data,
int count);
#define QT_END_NAMESPACE
This macro expands to.
static Expression::Ptr create(Expression *const expr, const YYLTYPE &sourceLocator, const ParserContext *const parseInfo)
Type
This enum defines the type of GL buffer object to create with QGLBuffer.
QFuture< void > map(Sequence &sequence, MapFunction function)
#define QT_BEGIN_NAMESPACE
This macro expands to.
UsagePattern
This enum defines the usage pattern of a QGLBuffer object.
int access(const char *, int)
static const char * data(const QByteArray &arr)
Access
This enum defines the access mode for QGLBuffer::map().
The QGLBuffer class provides functions for creating and managing GL buffer objects.
#define Q_DECLARE_PRIVATE(Class)
void allocate(int count)
Allocates count bytes of space to the buffer.