picogl.ui.backend.glut.window.textured_mesh
Shared textured-mesh GLUT renderer for tutorial examples (tu02, tu04, …).
Attributes
Classes
GPU state for a textured mesh draw. |
|
Configuration for a textured mesh tutorial window. |
|
GLUT window: textured mesh + tu02/tu04-style interaction. |
Functions
|
Apply x/y drag rotation to model_matrix and return it. |
Module Contents
- picogl.ui.backend.glut.window.textured_mesh.rotate_model(rotation: picogl.ui.backend.glut.mouse.RotationInteraction, model_matrix: pyglm.glm.mat4) pyglm.glm.mat4[source]
Apply x/y drag rotation to model_matrix and return it.
- class picogl.ui.backend.glut.window.textured_mesh.TexturedRendererContext[source]
GPU state for a textured mesh draw.
- model: picogl.utils.mesh.protocol.MeshProtocol | None = None[source]
- class picogl.ui.backend.glut.window.textured_mesh.TexturedRendererSpec[source]
Configuration for a textured mesh tutorial window.
- texture_path: pathlib.Path[source]
- glsl_dir: pathlib.Path[source]
- create_mesh: Callable[[bool], picogl.utils.mesh.protocol.MeshProtocol][source]
- class picogl.ui.backend.glut.window.textured_mesh.TexturedMeshRenderer(spec: TexturedRendererSpec, *args, **kwargs)[source]
Bases:
picogl.ui.backend.glut.window.glut.GlutRendererWindowGLUT window: textured mesh + tu02/tu04-style interaction.
- shader: picogl.backend.modern.core.shader.program.ShaderProgram | None = None[source]