legacy_cube_minimal
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
Functions
main() → None
|
Main function. |
Module Contents
-
legacy_cube_minimal._ROOT[source]
-
class legacy_cube_minimal.MinimalCubeRenderer(width: int = 800, height: int = 600, title: str = 'Minimal Legacy Cube')[source]
Bases: picogl.backend.legacy.core.renderer.LegacyRenderer
Minimal cube renderer using immediate-mode OpenGL.
-
wireframe_mode = False[source]
-
show_normals = False[source]
-
auto_rotate = False[source]
-
vertices[source]
-
colors[source]
-
draw_scene() → None[source]
Draw renderer-specific geometry.
-
draw_cube() → None[source]
Draw the cube using immediate mode via PicoGL wrappers.
-
_emit_triangles(*, colored: bool) → None[source]
-
get_color(vertex_idx: int) → Sequence[source]
get color
-
draw_normals() → None[source]
Draw simplified triangle normal vectors.
-
handle_key(key: bytes) → None[source]
Handle renderer-specific keyboard input.
-
idle() → None[source]
Idle callback; override for animation.
-
startup_message() → None[source]
Print application startup information.
-
legacy_cube_minimal.main() → None[source]
Main function.