Expand/Shrink

glCreateBuffer

Definition: include pGUI.e
include opengl.e

integer res = glCreateBuffer()
Description: generate a buffer object name
pwa/p2js: Supported.
Notes: glCreateBuffer() wraps the glGenBuffers C api to match the WebGL api, but one at a time.

Buffer object names are not returned by subsequent calls, unless they are first deleted with glDeleteBuffers.

No buffer objects are associated with the returned buffer object names until they are first bound by calling glBindBuffer().

If data is NULL, a data store of the specified size is still created, but its contents remain uninitialized and thus undefined.

Clients must align data elements consistent with the requirements of the client platform, with an additional base-level requirement that an offset within a buffer to a datum comprising N bytes be a multiple of N.
Errors: GL_INVALID_VALUE is generated if n is negative.
Associated Gets: glIsBuffer
See Also: glBindBuffer, Y, glGet
DEV See Also //glBindBuffer, glDeleteBuffers, //glGet