picogl.backend.gl.api.buffer.check_is ===================================== .. py:module:: picogl.backend.gl.api.buffer.check_is .. autoapi-nested-parse:: gl bind buffer wrapper Functions --------- .. autoapisummary:: picogl.backend.gl.api.buffer.check_is.buffer_name picogl.backend.gl.api.buffer.check_is.gl_is_buffer Module Contents --------------- .. py:function:: buffer_name(handle: Any) -> int Return a GL buffer name as a Python int. ``glGenBuffers(1)`` returns a length-1 array. Passing that array through to ``glIsBuffer`` does not name the buffer, so a later unbind reports the handle as invalid. :param handle: Buffer name, or ``None`` :return: Name, or ``0`` when *handle* is empty .. py:function:: gl_is_buffer(handle: Any) -> Any Return whether *handle* is a buffer object in the current context.