diff --git a/src/raylibpy/__init__.py b/src/raylibpy/__init__.py index 669c82f..9758432 100644 --- a/src/raylibpy/__init__.py +++ b/src/raylibpy/__init__.py @@ -932,13 +932,14 @@ 'set_audio_stream_callback', 'attach_audio_stream_processor', 'detach_audio_stream_processor', - 'Drawing', - 'ScissorMode', - 'Mode2D', - 'Mode3D', - 'ShaderMode', - 'TextureMode', - 'VrStereoMode', + 'drawing', + 'scissor_mode', + 'blend_mode', + 'mode2d', + 'mode3d', + 'shader_mode', + 'texture_mode', + 'vr_stereo_mode', 'clamp', 'lerp', 'normalize', @@ -12748,6 +12749,13 @@ def scissor_mode(x, y, width, height):# type: (int, int, int, int) -> None yield _EndScissorMode() +@contextmanager +def blend_mode(mode):# type: (int) -> None + """Context manager for blend mode""" + _BeginBlendMode(int(mode)) + yield + _EndBlendMode() + @contextmanager def mode2d(camera):# type: (Camera2D) -> None """Context manager for mode2d"""