aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_texture.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl_texture.erl')
-rw-r--r--src/sdl_texture.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdl_texture.erl b/src/sdl_texture.erl
index 4412884..c28c7a9 100644
--- a/src/sdl_texture.erl
+++ b/src/sdl_texture.erl
@@ -19,6 +19,7 @@
-export([get_alpha_mod/1]).
-export([get_blend_mode/1]).
-export([get_color_mod/1]).
+-export([set_alpha_mod/2]).
create_from_file(Renderer, Filename) ->
{ok, Surface} = sdl_surface:load(Filename),
@@ -48,3 +49,7 @@ get_color_mod(Texture) ->
{ok, Alpha} = Ret,
Alpha
end.
+
+set_alpha_mod(Texture, Alpha) ->
+ esdl2:set_texture_alpha_mod(Texture, Alpha),
+ receive {'_nif_thread_ret_', Ret} -> Ret end.