picogl.backend.gl.task.gl_init ============================== .. py:module:: picogl.backend.gl.task.gl_init .. autoapi-nested-parse:: Module for executing sequences of OpenGL tasks in a specified order. This module provides a utility function to execute a list of OpenGL-related tasks using a provided backend. Each task is represented by a tuple that includes an optional message to log and a callable representing the task to be executed. Classes and Functions: - execute_gl_tasks: Executes a list of OpenGL task tuples, optionally logging the progress or providing step callbacks. Attributes ---------- .. autoapisummary:: picogl.backend.gl.task.gl_init.legacy_init_gl_list picogl.backend.gl.task.gl_init.paint_gl_list picogl.backend.gl.task.gl_init.modern_init_gl_list Classes ------- .. autoapisummary:: picogl.backend.gl.task.gl_init.GLTask Functions --------- .. autoapisummary:: picogl.backend.gl.task.gl_init.set_clear_color_only picogl.backend.gl.task.gl_init.clear_to_color picogl.backend.gl.task.gl_init.execute_gl_tasks Module Contents --------------- .. py:function:: set_clear_color_only(backend: picogl.backend.gl.backend.GLBackend, color: tuple[float, float, float, float]) -> None Set the clear color without clearing (safe before the default FBO is ready). .. py:function:: clear_to_color(backend: picogl.backend.gl.backend.GLBackend, color: tuple[float, float, float, float]) -> None Apply a clear color and clear the color/depth buffers. .. py:class:: GLTask .. py:attribute:: message :type: Optional[str] .. py:attribute:: func :type: Callable[[picogl.backend.gl.backend.GLBackend], None] .. py:function:: execute_gl_tasks(task_list: list[GLTask], backend: picogl.backend.gl.backend.GLBackend, *, on_step: Optional[Callable[[int, int, Optional[str]], None]] = None) .. py:data:: legacy_init_gl_list .. py:data:: paint_gl_list .. py:data:: modern_init_gl_list