Definition at line 56 of file qglbuffer.h.
#include <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 |
Definition at line 59 of file qglbuffer.h.
{
VertexBuffer = 0x8892, // GL_ARRAY_BUFFER
IndexBuffer = 0x8893, // GL_ELEMENT_ARRAY_BUFFER
PixelPackBuffer = 0x88EB, // GL_PIXEL_PACK_BUFFER
PixelUnpackBuffer = 0x88EC // GL_PIXEL_UNPACK_BUFFER
};
| enum UsagePattern |
| StreamDraw | |
| StreamRead | |
| StreamCopy | |
| StaticDraw | |
| StaticRead | |
| StaticCopy | |
| DynamicDraw | |
| DynamicRead | |
| DynamicCopy |
Definition at line 74 of file qglbuffer.h.
{
StreamDraw = 0x88E0, // GL_STREAM_DRAW
StreamRead = 0x88E1, // GL_STREAM_READ
StreamCopy = 0x88E2, // GL_STREAM_COPY
StaticDraw = 0x88E4, // GL_STATIC_DRAW
StaticRead = 0x88E5, // GL_STATIC_READ
StaticCopy = 0x88E6, // GL_STATIC_COPY
DynamicDraw = 0x88E8, // GL_DYNAMIC_DRAW
DynamicRead = 0x88E9, // GL_DYNAMIC_READ
DynamicCopy = 0x88EA // GL_DYNAMIC_COPY
};
| enum Access |
Definition at line 87 of file qglbuffer.h.
| QGLBuffer | ( | ) |
| QGLBuffer | ( | QGLBuffer::Type | type | ) | [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 void release | ( | QGLBuffer::Type | type | ) | [static] |
| 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 | ) | [inline] |
| void* map | ( | QGLBuffer::Access | access | ) |
| bool unmap | ( | ) |