

void QGLBuffer:: destroy()ĭestroys this buffer object, including the storage being used in the GL server. See also isCreated(), allocate(), write(), and destroy(). This function will return false if the GL implementation does not support buffers, or there is no current QGLContext. The buffer will be bound to and can only be used in that context (or any other context that is shared with it). This function must be called with a current QGLContext.

Returns true if the object was created false otherwise. bool QGLBuffer:: create()Ĭreates the buffer object in the GL server. Returns the GL identifier associated with this buffer zero if the buffer has not been created. Otherwise, false will be returned from this function. The buffer must be bound to the same QGLContext current when create() was called, or to another QGLContext that is sharing with it. Returns false if binding was not possible, usually because type() is not supported on this GL implementation. bool QGLBuffer:: bind()īinds the buffer associated with this object to the current GL context. void QGLBuffer:: allocate( int count)Īllocates count bytes of space to the buffer. It is assumed that create() has been called on this buffer and that it has been bound to the current context. void QGLBuffer:: allocate(const void * data, int count)Īllocates count bytes of space to the buffer, initialized to the contents of data. QGLBuffer:: ~QGLBuffer()ĭestroys this buffer object, including the storage being used in the GL server. Note: QGLBuffer does not implement copy-on-write semantics, so other will be affected whenever the copy is modified. QGLBuffer &QGLBuffer:: operator=(const QGLBuffer & other)Īssigns a shallow copy of other to this object. QGLBuffer:: QGLBuffer()Ĭonstructs a new buffer object of type QGLBuffer::VertexBuffer. The actual buffer object in the GL server is not created until create() is called. Note: this constructor just creates the QGLBuffer instance. QGLBuffer:: QGLBuffer( QGLBuffer::Type type) Member Function Documentation QGLBuffer:: QGLBuffer(const QGLBuffer & other) The data will be modified repeatedly and used many times for reading data back from the GL server for use in further drawing operations. The data will be modified repeatedly and used many times for reading data back from the GL server. The data will be modified repeatedly and used many times for drawing operations. The data will be set once and used many times for reading data back from the GL server for use in further drawing operations. The data will be set once and used many times for reading data back from the GL server. The data will be set once and used many times for drawing operations. The data will be set once and used a few times for reading data back from the GL server for use in further drawing operations. The data will be set once and used a few times for reading data back from the GL server. Under OpenGL/ES 1.1 this is identical to StaticDraw. The data will be set once and used a few times for drawing operations.
