aboutsummaryrefslogtreecommitdiffstats
path: root/src/sdl_surface.erl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2018-02-06 00:05:12 +0100
committerLoïc Hoguin <[email protected]>2018-02-06 00:05:12 +0100
commit0e6c291c64e77181851b8a3255a3da8827124080 (patch)
tree825bc984cf63b24ad8437cc0bbc27760ea95dfef /src/sdl_surface.erl
parent251a2457fe10910b357e33609a59545684294bc3 (diff)
downloadesdl2-0e6c291c64e77181851b8a3255a3da8827124080.tar.gz
esdl2-0e6c291c64e77181851b8a3255a3da8827124080.tar.bz2
esdl2-0e6c291c64e77181851b8a3255a3da8827124080.zip
Initial work on the SDL_ttf functions
Diffstat (limited to 'src/sdl_surface.erl')
-rw-r--r--src/sdl_surface.erl5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/sdl_surface.erl b/src/sdl_surface.erl
index a245b64..5740cc5 100644
--- a/src/sdl_surface.erl
+++ b/src/sdl_surface.erl
@@ -14,11 +14,16 @@
-module(sdl_surface).
+-export([get_dimensions/1]).
-export([load/1]).
-opaque surface() :: <<>>.
-export_type([surface/0]).
+-spec get_dimensions(surface()) -> {non_neg_integer(), non_neg_integer()}.
+get_dimensions(Surface) ->
+ esdl2:get_surface_dimensions(Surface).
+
-spec load(string()) -> {ok, surface()} | sdl:error().
load(Filename) ->
esdl2:img_load(Filename),