picogl.backend.gl.api.buffer.upload =================================== .. py:module:: picogl.backend.gl.api.buffer.upload .. autoapi-nested-parse:: Typed helpers for uploading CPU arrays into the currently bound GL buffer. Functions --------- .. autoapisummary:: picogl.backend.gl.api.buffer.upload._ctypes_array picogl.backend.gl.api.buffer.upload.gl_upload_float_buffer picogl.backend.gl.api.buffer.upload.gl_upload_ushort_buffer Module Contents --------------- .. py:function:: _ctypes_array(ctype, data: Sequence) -> ctypes.Array Build a filled ctypes array instance (not an array type). .. py:function:: gl_upload_float_buffer(data: list[float], buffer_target: picogl.backend.gl.enums.GLBufferTarget = GLBufferTarget.ARRAY) -> None Upload float vertex/attribute data to the bound buffer. .. py:function:: gl_upload_ushort_buffer(data: list[int], buffer_target: picogl.backend.gl.enums.GLBufferTarget = GLBufferTarget.ELEMENT) -> None Upload unsigned-short index data to the bound element buffer.