picogl.renderer.uvrenderer
Module providing the UvRenderer class for rendering 2D UV meshes using OpenGL.
The module implements a specific renderer for meshes defined with UV coordinates and indices. The UvRenderer class is designed for lightweight UV rendering tasks and operates using OpenGL buffers. It provides methods for binding buffers and rendering the defined UV mesh content.
Classes
2D UV Renderer that draws a mesh using UV coordinates and indices. |
Module Contents
- class picogl.renderer.uvrenderer.UvRenderer(parent: object = None, vertex_shader_file: str = 'glsl/utils/uv2d/vertex.glsl', fragment_shader_file: str = 'glsl/utils/uv2d/fragment.glsl')[source]
Bases:
picogl.renderer.initializable.Initializable,picogl.renderer.RendererBase2D UV Renderer that draws a mesh using UV coordinates and indices. Follows the RendererBase interface.