nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a709cc
)
SDL : Comments fixed and added in SDLRectangle class
author
GeoffreyHecht
<geoffrey.hecht@gmail.com>
Wed, 29 Jan 2014 20:11:29 +0000
(15:11 -0500)
committer
Jean Privat
<jean@pryen.org>
Wed, 12 Feb 2014 13:50:13 +0000
(08:50 -0500)
signed-off-by: Geoffrey Hecht <geoffrey.hecht@gmail.com>
lib/mnit_linux/sdl.nit
patch
|
blob
|
history
diff --git
a/lib/mnit_linux/sdl.nit
b/lib/mnit_linux/sdl.nit
index
4b26ae6
..
f0a7d5e
100644
(file)
--- a/
lib/mnit_linux/sdl.nit
+++ b/
lib/mnit_linux/sdl.nit
@@
-223,7
+223,9
@@
extern SDLImage in "C" `{SDL_Surface*`} # TODO remove
fun is_ok: Bool do return true # TODO
end
+# A simple rectangle
extern SDLRectangle in "C" `{SDL_Rect*`}
+ # Constructor with x,y positions width and height of the rectangle
new ( x: Int, y: Int, w: Int, h: Int ) is extern `{
SDL_Rect *rect = malloc( sizeof( SDL_Rect ) );
rect->x = (Sint16)x;