When dealing with buffers for the getParameter, getBufferParameter, and isBuffer functions, new information about the state of the rendering pipeline becomes available to us.
Similar to Chapter 1, Getting Started, we will use getParameter(parameter), where parameter can have the following values:
- ARRAY_BUFFER_BINDING: Retrieves a reference to the currently-bound VBO
- ELEMENT_ARRAY_BUFFER_BINDING: Retrieves a reference to the currently-bound IBO
We can also query the size and the usage of the currently-bound VBO and IBO using getBufferParameter(type, parameter), where type can have the following values:
- ARRAY_BUFFER: To refer to the currently-bound VBO
- ELEMENT_ARRAY_BUFFER: To refer to the currently-bound IBO
And parameter can have the following values:
- BUFFER_SIZE: Returns the size of the requested buffer
- BUFFER_USAGE: Returns...