EAGL.Window (eagl v0.1.0)

View Source

Utility module for OpenGL window management. Handles window creation, OpenGL context setup, and event loop management.

Summary

Functions

Creates and runs an OpenGL window using the given callback module. The callback module must implement the GLWindowBehaviour.

Functions

run(callback_module, title)

@spec run(module(), String.t()) :: :ok | {:error, term()}

Creates and runs an OpenGL window using the given callback module. The callback module must implement the GLWindowBehaviour.

run(callback_module, title, size)

@spec run(module(), String.t(), {integer(), integer()}) :: :ok | {:error, term()}