picogl.backend.glut.init
GLUT initialization helpers.
Functions
|
Initialize GLUT. |
|
Set the initial display mode (e.g. RGBA | DOUBLE | DEPTH). |
|
Set the initial window size in pixels. |
|
Create a GLUT window and return its window id. |
|
Enter the GLUT event processing loop (does not return). |
Module Contents
- picogl.backend.glut.init.glut_init(argv: Sequence[str] | None = None) None[source]
Initialize GLUT.
- Parameters:
argv – Program arguments; defaults to
sys.argv.
- picogl.backend.glut.init.glut_init_display_mode(mode: picogl.backend.glut.enums.GLUTDisplayMode | int) None[source]
Set the initial display mode (e.g. RGBA | DOUBLE | DEPTH).
- picogl.backend.glut.init.glut_init_window_size(width: int, height: int) None[source]
Set the initial window size in pixels.