picogl.utils.gl_init

execute gl task lists

Attributes

init_gl_list

paint_gl_list

initialize_gl_list

Functions

execute_gl_tasks(task_list)

Execute a sequence of OpenGL-related tasks.

Module Contents

picogl.utils.gl_init.execute_gl_tasks(task_list: list[tuple[str, Callable]])[source]

Execute a sequence of OpenGL-related tasks.

Each task is a tuple (message, func): - message (str or None): If a string, it is logged before running the task.

If None, no log message is emitted for that step.

  • func (callable): The function to execute.

Parameters:

task_list (list[tuple[str | None, callable]]) – A list of (message, callable) tuples describing the tasks to run.

Raises:
  • TypeError – If task_list is not a list or any element is not a 2-tuple.

  • Exception – Logs and re-raises any exception thrown by a task.

picogl.utils.gl_init.init_gl_list[source]
picogl.utils.gl_init.paint_gl_list[source]
picogl.utils.gl_init.initialize_gl_list[source]