aboutsummaryrefslogtreecommitdiff
path: root/elymas/lib
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
parent64419a3ffee442e831dc3d54a64fe382baf7c297 (diff)
Now drawing (blue)
Diffstat (limited to 'elymas/lib')
-rw-r--r--elymas/lib/ffi/sdl.ey20
-rw-r--r--elymas/lib/sys/so.ey2
2 files changed, 16 insertions, 6 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
diff --git a/elymas/lib/sys/so.ey b/elymas/lib/sys/so.ey
index 4a0632f..274a4e3 100644
--- a/elymas/lib/sys/so.ey
+++ b/elymas/lib/sys/so.ey
@@ -262,7 +262,7 @@
{
[
- { rets "v" streq }' { }
+ { rets "" streq }' { }
{ rets "s" streq }' {
/rax :pushqReg
/rcx /rcx :xorqRegReg