picogl.examples.textured_specs

Pre-built TexturedRendererSpec values for tutorial examples.

Attributes

_EXAMPLES_DIR

_TEAPOT_MESH

Functions

create_cube_mesh(flip_v) → picogl.utils.mesh.cube_mesh.CubeMesh

create_teapot_mesh(flip_v) → picogl.utils.mesh.object_mesh.MeshObject

obj_mesh_factory(path) → Callable[[bool], picogl.utils.mesh.protocol.MeshProtocol]

Named mesh factory for any indexed OBJ (position + UV, tu02/tu04 shaders).

Module Contents

picogl.examples.textured_specs._EXAMPLES_DIR[source]
picogl.examples.textured_specs._TEAPOT_MESH[source]
picogl.examples.textured_specs.create_cube_mesh(flip_v: bool) → picogl.utils.mesh.cube_mesh.CubeMesh[source]
picogl.examples.textured_specs.create_teapot_mesh(flip_v: bool) → picogl.utils.mesh.object_mesh.MeshObject[source]
picogl.examples.textured_specs.obj_mesh_factory(path: pathlib.Path | str) → Callable[[bool], picogl.utils.mesh.protocol.MeshProtocol][source]

Named mesh factory for any indexed OBJ (position + UV, tu02/tu04 shaders).