picogl.backend.legacy.core.vertex.buffer.position

Legacy Position VBO

Classes

LegacyPositionVBO

OpenGL buffer class specialized for storing and managing position data,

Module Contents

class picogl.backend.legacy.core.vertex.buffer.position.LegacyPositionVBO(handle: int = None, data: numpy.ndarray = None, size: int = 3, target: int = GLBufferTarget.ARRAY, dtype: int = GLNumeric.FLOAT)[source]

Bases: picogl.backend.legacy.core.vertex.buffer.vertex.LegacyVBO

OpenGL buffer class specialized for storing and managing position data, commonly used for rendering ribbons_legacy-like meshdata.

Inherits from LegacyVBO and adds behavior specific to position data, such as setting up the vertex pointer and handling data uploads.

SUPPORTED_GL_TYPES[source]
size = 3[source]
data = None[source]
configure()[source]

Configure the vertex pointer for the position buffer.

LegacyVBO.__enter__ has already bound this buffer; do not unbind here or the vertex array may lose its buffer object binding before glDraw*.