picogl.backend.gl.api.buffer.data ================================= .. py:module:: picogl.backend.gl.api.buffer.data .. autoapi-nested-parse:: 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 --------- .. autoapisummary:: picogl.backend.gl.api.buffer.data.gl_buffer_data Module Contents --------------- .. py:function:: 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) gl bind buffer