picogl.gpu.buffers.factory.layout

Provides utility functions to create layout descriptors and attribute specifications for vertex buffers using the picogl library.

The module includes functions to assist in defining layout descriptions and generating vertex attribute configurations, such as element attributes and common attributes with position and color specifications. These configurations are primarily intended for use with OpenGL-based rendering.

Functions: - create_layout: Generates a layout descriptor using the provided attributes. - create_element_attributes: Returns a predefined set of element attribute specifications

with position data.

  • create_common_attributes: Returns a predefined set of vertex attribute specifications with both position and color data.

Functions

create_layout(attributes)

create_element_attributes()

create_common_attributes()

Module Contents

picogl.gpu.buffers.factory.layout.create_layout(attributes)[source]
picogl.gpu.buffers.factory.layout.create_element_attributes()[source]
picogl.gpu.buffers.factory.layout.create_common_attributes()[source]