picogl.backend.glut.init

GLUT initialization helpers.

Functions

glut_init([argv]) → None

Initialize GLUT.

glut_init_display_mode(mode) → None

Set the initial display mode (e.g. RGBA | DOUBLE | DEPTH).

glut_init_window_size(width, height) → None

Set the initial window size in pixels.

glut_create_window(title) → int

Create a GLUT window and return its window id.

glut_main_loop() → None

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.

picogl.backend.glut.init.glut_create_window(title: str | bytes) → int[source]

Create a GLUT window and return its window id.

String titles are encoded as UTF-8.

picogl.backend.glut.init.glut_main_loop() → None[source]

Enter the GLUT event processing loop (does not return).