SDL : Comments fixed and added in SDLRectangle class
authorGeoffreyHecht <geoffrey.hecht@gmail.com>
Wed, 29 Jan 2014 20:11:29 +0000 (15:11 -0500)
committerJean 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

index 4b26ae6..f0a7d5e 100644 (file)
@@ -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;