picogl.backend.gl.state.blending

A context manager for managing OpenGL blend functionality.

This module provides a context manager to temporarily modify and restore OpenGL blend settings. It handles enabling or disabling the blend capability as well as setting the blend function parameters. Upon exiting the context, the original state and settings are restored.

Functions

gl_blend([src, dst])

gl blend context manager

Module Contents

picogl.backend.gl.state.blending.gl_blend(src: picogl.backend.gl.capability.GLBlendFactor = GLBlendFactor.SRC_ALPHA, dst: picogl.backend.gl.capability.GLBlendFactor = GLBlendFactor.ONE_MINUS_SRC_ALPHA)[source]

gl blend context manager