picogl.buffers.attributes

Attribute and layout specification handling module.

This module defines data structures for specifying attributes and layout descriptors in a graphical or geometrical context. These structures are used to describe how data is stored, accessed, and organized for rendering or processing purposes.

Classes

AttributeSpec

Attribute specification.

LayoutDescriptor

Layout descriptor.

Module Contents

class picogl.buffers.attributes.AttributeSpec[source]

Attribute specification.

name: str[source]
index: int[source]
size: int[source]
type: int[source]
normalized: bool[source]
stride: int[source]
offset: int[source]
vbo_type: picogl.buffers.vertex.vbo.vbo_class.VBOType[source]
class picogl.buffers.attributes.LayoutDescriptor[source]

Layout descriptor.

attributes: List[AttributeSpec][source]
_cache: dict[picogl.buffers.vertex.vbo.vbo_class.VBOType, AttributeSpec] | None = None[source]
__getitem__(vbo_type: picogl.buffers.vertex.vbo.vbo_class.VBOType) AttributeSpec[source]
get_attr(vbo_type: picogl.buffers.vertex.vbo.vbo_class.VBOType) AttributeSpec[source]
has_attr(vbo_type: picogl.buffers.vertex.vbo.vbo_class.VBOType) bool[source]
as_dict() dict[picogl.buffers.vertex.vbo.vbo_class.VBOType, AttributeSpec][source]
property attr_dict: dict[picogl.buffers.vertex.vbo.vbo_class.VBOType, AttributeSpec][source]

dict