Source code for picogl.backend.modern.core.shader.bind

"""
Bind the shader program for rendering.
"""

from examples.utils.shader_loader import Shader
from OpenGL.raw.GL.VERSION.GL_2_0 import glUseProgram


[docs] def bind_shader(shader: Shader = None) -> None: """ bind_shader :param shader: :return: None Bind the shader program for rendering. """ glUseProgram(shader.program)