legacy_cube_minimal =================== .. py:module:: legacy_cube_minimal .. autoapi-nested-parse:: Minimal Legacy PicoGL Cube - Maximum Compatibility. This is the most basic cube renderer that works on any system with basic OpenGL support, including older macOS systems. Features: - Built-in immediate-mode cube (no modern VAO/VBO) - PicoGL wrappers for GLUT, camera, viewport, and GL state - Interactive rotation and zoom - Colored cube data from PicoGL cube_data Attributes ---------- .. autoapisummary:: legacy_cube_minimal._ROOT Classes ------- .. autoapisummary:: legacy_cube_minimal.MinimalCubeRenderer Functions --------- .. autoapisummary:: legacy_cube_minimal.main Module Contents --------------- .. py:data:: _ROOT .. py:class:: MinimalCubeRenderer(width: int = 800, height: int = 600, title: str = 'Minimal Legacy Cube') Bases: :py:obj:`picogl.backend.legacy.core.renderer.LegacyRenderer` Minimal cube renderer using immediate-mode OpenGL. .. py:attribute:: wireframe_mode :value: False .. py:attribute:: show_normals :value: False .. py:attribute:: auto_rotate :value: False .. py:attribute:: vertices .. py:attribute:: colors .. py:method:: draw_scene() -> None Draw renderer-specific geometry. .. py:method:: draw_cube() -> None Draw the cube using immediate mode via PicoGL wrappers. .. py:method:: _emit_triangles(*, colored: bool) -> None .. py:method:: get_color(vertex_idx: int) -> Sequence get color .. py:method:: draw_normals() -> None Draw simplified triangle normal vectors. .. py:method:: handle_key(key: bytes) -> None Handle renderer-specific keyboard input. .. py:method:: idle() -> None Idle callback; override for animation. .. py:method:: startup_message() -> None Print application startup information. .. py:function:: main() -> None Main function.