picogl.backend.gl.api.buffer.check_is
gl bind buffer wrapper
Functions
|
Return a GL buffer name as a Python int. |
|
Return whether handle is a buffer object in the current context. |
Module Contents
- picogl.backend.gl.api.buffer.check_is.buffer_name(handle: Any) int[source]
Return a GL buffer name as a Python int.
glGenBuffers(1)returns a length-1 array. Passing that array through toglIsBufferdoes not name the buffer, so a later unbind reports the handle as invalid.- Parameters:
handle – Buffer name, or
None- Returns:
Name, or
0when handle is empty