Basic VBO Functions
The following functions form the core of VBO access and manipulation:
- In OpenGL 2.1:
- GenBuffersARB(sizei n, uint *buffers)
- Generates a new VBO and returns its ID number as an unsigned integer. Id 0 is reserved.
-
- BindBufferARB(enum target, uint buffer)
- Use a previously created buffer as the active VBO.
-
- BufferDataARB(enum target, sizeiptrARB size, const void *data, enum usage)
- Upload data to the active VBO.
-
- DeleteBuffersARB(sizei n, const uint *buffers)
- Deletes the specified number of VBOs from the supplied array or VBO id.
- In OpenGL 3.x and OpenGL 4.x:
- GenBuffers(sizei n, uint *buffers)
- Generates a new VBO and returns its ID number as an unsigned integer. Id 0 is reserved.
-
- BindBuffer(enum target, uint buffer)
- Use a previously created buffer as the active VBO.
-
- BufferData(enum target, sizeiptrARB size, const void *data, enum usage)
- Upload data to the active VBO.
-
- DeleteBuffers(sizei n, const uint *buffers)
- Deletes the specified number of VBOs from the supplied array or VBO id.
Read more about this topic: Vertex Buffer Object
Famous quotes containing the words basic and/or functions:
“We cant nourish our children if we dont nourish ourselves.... Parents who manage to stay married, sane, and connected to each other share one basic characteristic: The ability to protect even small amounts of time together no matter what else is going on in their lives.”
—Ron Taffel (20th century)
“Mark the babe
Not long accustomed to this breathing world;
One that hath barely learned to shape a smile,
Though yet irrational of soul, to grasp
With tiny fingerto let fall a tear;
And, as the heavy cloud of sleep dissolves,
To stretch his limbs, bemocking, as might seem,
The outward functions of intelligent man.”
—William Wordsworth (17701850)