picogl.renderer.base
RendererBase is a base class for rendering operations, providing foundational
methods for initializing rendering states, managing OpenGL features, and
dispatching rendering tasks.
This module implements essential rendering functionality and acts as a
common base for custom rendering logic. It primarily revolves around
OpenGL-based rendering pipelines and provides interfaces for model draw
and rendering state initialization.
Module Contents
-
class picogl.renderer.base.RendererBase(parent=None)[source]
Bases: picogl.renderer.abstract.AbstractRenderer
Base Renderer Class
-
line_width = 2.0[source]
-
show_model = False[source]
-
parent = None[source]
-
_set_gl_state()[source]
Set the line width and disable depth test.
-
_restore_gl_state()[source]
Restore the original line width and depth test state.
-
property dispatch_list[source]
-
_do_initialize() → None[source]
Initialize OpenGL resources (shaders, atoms_buffers, etc.).
-
property initialized: bool[source]
-
render() → None[source]
render dispatcher
- Returns:
None
-
initialize_rendering_buffers()[source]
For back compatibility
-
_finalize_render()[source]
Finalize the rendering (e.g., flush or swap atoms_buffers).
-
abstract _draw_model()[source]
draw_model
-
abstract _draw_selection()[source]
draw_selection
-
set_visibility(visible: bool) → None[source]
Set the visibility of the object.