aboutsummaryrefslogtreecommitdiff
path: root/elymas/lib/ffi
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-10-15 11:04:12 +0200
committerDrahflow <drahflow@gmx.de>2013-10-15 11:04:12 +0200
commit596a42abc73e5d3cb12538248ce1ebc90f42ec24 (patch)
tree83dfec063dd078e78e7535d4f4ebc8ebf3725e1a /elymas/lib/ffi
parent64419a3ffee442e831dc3d54a64fe382baf7c297 (diff)
Now drawing (blue)
Diffstat (limited to 'elymas/lib/ffi')
-rw-r--r--elymas/lib/ffi/sdl.ey20
1 files changed, 15 insertions, 5 deletions
diff --git a/elymas/lib/ffi/sdl.ey b/elymas/lib/ffi/sdl.ey
index 605e6e3..96f43fe 100644
--- a/elymas/lib/ffi/sdl.ey
+++ b/elymas/lib/ffi/sdl.ey
@@ -3,13 +3,23 @@
"/usr/lib/x86_64-linux-gnu/libSDL2.so" :dlopen --
- 32 ==:SDL_INIT_VIDEO
+ 32 ==:INIT_VIDEO
- { -0021 :resolveFunction -01 deffd }' "->" deffd
+ { _ "SDL_" -01 cat -1032 :resolveFunction -01 deffd }' "->" deffd
- "i" "i32" ->SDL_Init
- "" "s" ->SDL_GetError
- "siiiii" "p" ->SDL_CreateWindow
+ "" "" ->SetMainReady
+ "i" "i32" ->Init
+ "" "" ->Quit
+ "" "s" ->GetError
+
+ "siiiii" "p" ->CreateWindow
+ "p" "" ->DestroyWindow
+ "p" "i32" ->UpdateWindowSurface
+ "p" "p" ->GetWindowSurface
+ "pbi" "i32" ->FillRect
+ { 0 -201 } /SDL_FillRect "pii" "i32" :resolveFunction ; /Fill deffd
+
+ SetMainReady
> /sdl ffi .defv
# vim: syn=elymas