From 861d261af24540b4280acef4fbdffd47c0ea927e Mon Sep 17 00:00:00 2001 From: cremno Date: Tue, 21 Jul 2015 07:27:53 +0200 Subject: [PATCH] add Sprite#{bush_opacity,bush_opacity=} --- binding-mri/sprite-binding.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/binding-mri/sprite-binding.cpp b/binding-mri/sprite-binding.cpp index 2404e4a..dc7f902 100644 --- a/binding-mri/sprite-binding.cpp +++ b/binding-mri/sprite-binding.cpp @@ -56,6 +56,7 @@ DEF_PROP_I(Sprite, Y) DEF_PROP_I(Sprite, OX) DEF_PROP_I(Sprite, OY) DEF_PROP_I(Sprite, BushDepth) +DEF_PROP_I(Sprite, BushOpacity) DEF_PROP_I(Sprite, Opacity) DEF_PROP_I(Sprite, BlendType) DEF_PROP_I(Sprite, WaveAmp) @@ -126,6 +127,8 @@ spriteBindingInit() _rb_define_method(klass, "width", spriteWidth); _rb_define_method(klass, "height", spriteHeight); + INIT_PROP_BIND( Sprite, BushOpacity, "bush_opacity" ); + INIT_PROP_BIND( Sprite, WaveAmp, "wave_amp" ); INIT_PROP_BIND( Sprite, WaveLength, "wave_length" ); INIT_PROP_BIND( Sprite, WaveSpeed, "wave_speed" ); -- 2.43.0