Skip to content

Commit

Permalink
fixed exported names in __all__
Browse files Browse the repository at this point in the history
  • Loading branch information
Jorge A. Gomes committed Nov 11, 2022
1 parent e8406f7 commit d5e38c1
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 deletions src/raylibpy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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"""
Expand Down

0 comments on commit d5e38c1

Please sign in to comment.