picogl.backend.gl.api.vertex.attrib_pointer =========================================== .. py:module:: picogl.backend.gl.api.vertex.attrib_pointer .. autoapi-nested-parse:: Provides OpenGL utilities for handling attribute pointers. This module defines utility functions for working with attribute pointers, specifically for managing OpenGL attribute pointers like `glVertexAttribPointer`. It includes internal helper functions for resolving pointer offsets. Functions: - gl_vertex_attrib_pointer: Wraps the OpenGL function `glVertexAttribPointer`. Functions --------- .. autoapisummary:: picogl.backend.gl.api.vertex.attrib_pointer._resolve_attrib_pointer picogl.backend.gl.api.vertex.attrib_pointer.gl_vertex_attrib_pointer picogl.backend.gl.api.vertex.attrib_pointer.gl_enable_vertex_array_attributes Module Contents --------------- .. py:function:: _resolve_attrib_pointer(offset: Any) -> Any Accept ``None``, byte offset ints, or an existing ``c_void_p``. .. py:function:: gl_vertex_attrib_pointer(index: int, size: int, num_type: picogl.backend.gl.enums.GLNumeric = GLNumeric.FLOAT, normalized: picogl.boolean.GLBoolean = GLBoolean.FALSE, stride: int = 0, offset: Optional[Any] = None) -> None Issue ``glVertexAttribPointer``. *offset* may be a byte offset (``int``), ``None``, or a ``ctypes.c_void_p``. .. py:function:: gl_enable_vertex_array_attributes(attr: picogl.gpu.buffers.attributes.AttributeSpec) gl enable vertex array attributes.