picogl.backend.gl.api.buffer.data

Provides a function to bind GPU buffer data using OpenGL.

This module defines a utility function to wrap the OpenGL glBufferData call, which uploads data to a specified buffer object in GPU memory. The function enforces checks to ensure valid arguments and simplifies the usage of OpenGL buffer operations by abstracting certain details.

Functions

gl_buffer_data([target, size, data, usage_hint])

gl bind buffer

Module Contents

picogl.backend.gl.api.buffer.data.gl_buffer_data(target: picogl.backend.gl.enums.GLBufferTarget = GLBufferTarget.ARRAY, size: int = 0, data=None, usage_hint: picogl.backend.gl.enums.GLUsageHint = GLUsageHint.STATIC_DRAW)[source]

gl bind buffer