picogl.examples.legacy_teapot ============================= .. py:module:: picogl.examples.legacy_teapot .. autoapi-nested-parse:: Legacy PicoGL Teapot - Compatible with systems without modern shader support. This example uses legacy OpenGL rendering (OpenGL 1.x/2.x) that works on: - Older macOS systems - Systems without modern OpenGL 3.3+ support - Systems with limited shader support The renderer uses LegacyGLMesh which bypasses modern VAO/VBO requirements and uses legacy client states and immediate mode rendering. Attributes ---------- .. autoapisummary:: picogl.examples.legacy_teapot._ROOT picogl.examples.legacy_teapot.TEAPOT_PHONG_MATERIAL Classes ------- .. autoapisummary:: picogl.examples.legacy_teapot.LegacyTeapotRenderer Functions --------- .. autoapisummary:: picogl.examples.legacy_teapot.main Module Contents --------------- .. py:data:: _ROOT .. py:data:: TEAPOT_PHONG_MATERIAL .. py:class:: LegacyTeapotRenderer(width: int = 800, height: int = 600, title: str = 'Legacy Teapot Renderer', material: picogl.backend.gl.phong.material.PhongMaterial | None = None) Bases: :py:obj:`picogl.backend.legacy.core.renderer.LegacyRenderer` GLUT teapot renderer with LegacyGLMesh, PhongMaterial, and wireframe fallback. .. py:attribute:: mesh :type: picogl.renderer.legacy_glmesh.LegacyGLMesh | None :value: None .. py:attribute:: material .. py:method:: init_gl() -> None Initialize GL state, apply PhongMaterial, and upload mesh once a context exists. .. py:method:: draw_scene() -> None Draw renderer-specific geometry. .. py:method:: draw_fallback_teapot() -> None Draw a simple wireframe teapot as fallback. .. py:method:: handle_key(key: bytes) -> None Handle renderer-specific keyboard input. .. py:method:: startup_message() -> None Print application startup information. .. py:function:: main() -> None Main function.