#include <qglbuffer.h>
Definition at line 56 of file qglbuffer.h.
Public Types | |
enum | Type { VertexBuffer = 0x8892, IndexBuffer = 0x8893, PixelPackBuffer = 0x88EB, PixelUnpackBuffer = 0x88EC } |
enum | UsagePattern { StreamDraw = 0x88E0, StreamRead = 0x88E1, StreamCopy = 0x88E2, StaticDraw = 0x88E4, StaticRead = 0x88E5, StaticCopy = 0x88E6, DynamicDraw = 0x88E8, DynamicRead = 0x88E9, DynamicCopy = 0x88EA } |
enum | Access { ReadOnly = 0x88B8, WriteOnly = 0x88B9, ReadWrite = 0x88BA } |
Public Member Functions | |
QGLBuffer () | |
QGLBuffer (QGLBuffer::Type type) | |
QGLBuffer (const QGLBuffer &other) | |
~QGLBuffer () | |
QGLBuffer & | operator= (const QGLBuffer &other) |
QGLBuffer::Type | type () const |
QGLBuffer::UsagePattern | usagePattern () const |
void | setUsagePattern (QGLBuffer::UsagePattern value) |
bool | create () |
bool | isCreated () const |
void | destroy () |
bool | bind () |
void | release () |
GLuint | bufferId () const |
int | size () const |
bool | read (int offset, void *data, int count) |
void | write (int offset, const void *data, int count) |
void | allocate (const void *data, int count) |
void | allocate (int count) |
void * | map (QGLBuffer::Access access) |
bool | unmap () |
Static Public Member Functions | |
static void | release (QGLBuffer::Type type) |
enum Type |
Enumerator | |
---|---|
VertexBuffer | |
IndexBuffer | |
PixelPackBuffer | |
PixelUnpackBuffer |
Definition at line 59 of file qglbuffer.h.
enum UsagePattern |
Enumerator | |
---|---|
StreamDraw | |
StreamRead | |
StreamCopy | |
StaticDraw | |
StaticRead | |
StaticCopy | |
DynamicDraw | |
DynamicRead | |
DynamicCopy |
Definition at line 74 of file qglbuffer.h.
enum Access |
Enumerator | |
---|---|
ReadOnly | |
WriteOnly | |
ReadWrite |
Definition at line 87 of file qglbuffer.h.
QGLBuffer | ( | ) |
|
explicit |
~QGLBuffer | ( | ) |
QGLBuffer::Type type | ( | ) | const |
QGLBuffer::UsagePattern usagePattern | ( | ) | const |
void setUsagePattern | ( | QGLBuffer::UsagePattern | value | ) |
bool create | ( | ) |
bool isCreated | ( | ) | const |
void destroy | ( | ) |
bool bind | ( | ) |
void release | ( | ) |
|
static |
GLuint bufferId | ( | ) | const |
Definition at line 117 of file qglbuffer.h.
void* map | ( | QGLBuffer::Access | access | ) |
bool unmap | ( | ) |