picogl.gpu.buffers.vbo_types

A module for defining and managing vertex buffer object (VBO) types, mesh data attributes, and their layout configurations.

This module provides enumerations for various VBO types and mesh data attributes. It also includes functionality to compute the stride for attributes based on predefined layouts and the shape of data.

Classes: - VBOType: Enumeration for VBO types such as VBO, CBO, NBO, etc. - MeshDataAttrs: Enumeration for mesh-related data attributes, e.g., vertices,

colors, normals.

Constants: - ATTRIBUTE_LAYOUT: A dictionary mapping VBO types to their associated attribute

layouts, where predefined strides are provided or set to dynamic if specified as None.

Attributes

ATTRIBUTE_LAYOUT

Classes

VBOType

VBO Type

MeshDataAttrs

Mesh Data Attrs

Functions

get_stride(attr, data)

Module Contents

class picogl.gpu.buffers.vbo_types.VBOType[source]

Bases: picogl.utils.strenum.StrEnum

VBO Type

VBO = 'vbo'[source]
CBO = 'cbo'[source]
NBO = 'nbo'[source]
EBO = 'ebo'[source]
UVS = 'uvs'[source]
class picogl.gpu.buffers.vbo_types.MeshDataAttrs[source]

Bases: picogl.utils.strenum.StrEnum

Mesh Data Attrs

VERTICES = 'vertices'[source]
COLORS = 'colors'[source]
NORMALS = 'normals'[source]
INDICES = 'indices'[source]
TEXCOORDS = 'texcoords'[source]
picogl.gpu.buffers.vbo_types.ATTRIBUTE_LAYOUT[source]
picogl.gpu.buffers.vbo_types.get_stride(attr, data)[source]