picogl.gpu.buffers.vertex.vbo.vbo_class ======================================= .. py:module:: picogl.gpu.buffers.vertex.vbo.vbo_class .. autoapi-nested-parse:: 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 ---------- .. autoapisummary:: picogl.gpu.buffers.vertex.vbo.vbo_class.ATTRIBUTE_LAYOUT Classes ------- .. autoapisummary:: picogl.gpu.buffers.vertex.vbo.vbo_class.VBOType picogl.gpu.buffers.vertex.vbo.vbo_class.MeshDataAttrs Functions --------- .. autoapisummary:: picogl.gpu.buffers.vertex.vbo.vbo_class.get_stride Module Contents --------------- .. py:class:: VBOType Bases: :py:obj:`picogl.utils.strenum.StrEnum` VBO Type .. py:attribute:: VBO :value: 'vbo' .. py:attribute:: CBO :value: 'cbo' .. py:attribute:: NBO :value: 'nbo' .. py:attribute:: EBO :value: 'ebo' .. py:attribute:: UVS :value: 'uvs' .. py:class:: MeshDataAttrs Bases: :py:obj:`picogl.utils.strenum.StrEnum` Mesh Data Attrs .. py:attribute:: VERTICES :value: 'vertices' .. py:attribute:: COLORS :value: 'colors' .. py:attribute:: NORMALS :value: 'normals' .. py:attribute:: INDICES :value: 'indices' .. py:attribute:: TEXCOORDS :value: 'texcoords' .. py:data:: ATTRIBUTE_LAYOUT .. py:function:: get_stride(attr, data)