picogl.backend.gl.api.vertex.attrib_pointer
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
|
Accept |
|
Issue |
gl enable vertex array attributes. |
Module Contents
- picogl.backend.gl.api.vertex.attrib_pointer._resolve_attrib_pointer(offset: Any) Any[source]
Accept
None, byte offset ints, or an existingc_void_p.
- picogl.backend.gl.api.vertex.attrib_pointer.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: Any | None = None) None[source]
Issue
glVertexAttribPointer.offset may be a byte offset (
int),None, or actypes.c_void_p.
- picogl.backend.gl.api.vertex.attrib_pointer.gl_enable_vertex_array_attributes(attr: picogl.gpu.buffers.attributes.AttributeSpec)[source]
gl enable vertex array attributes.