aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_renderer.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/sdl_renderer.erl')
-rw-r--r--src/sdl_renderer.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdl_renderer.erl b/src/sdl_renderer.erl
index 12ca9bf..e6c6810 100644
--- a/src/sdl_renderer.erl
+++ b/src/sdl_renderer.erl
@@ -39,6 +39,7 @@
-export([get_output_size/1]).
-export([get_scale/1]).
-export([get_viewport/1]).
+-export([is_target_supported/1]).
-export([present/1]).
-export([set_clip_rect/2]).
-export([set_clip_rect/5]).
@@ -153,6 +154,10 @@ get_viewport(Renderer) ->
esdl2:render_get_viewport(Renderer),
receive {'_nif_thread_ret_', Ret} -> Ret end.
+is_target_supported(Renderer) ->
+ esdl2:render_target_supported(Renderer),
+ receive {'_nif_thread_ret_', Ret} -> Ret end.
+
present(Renderer) ->
esdl2:render_present(Renderer).