sdl2 :: SDLSurface
sdl2 :: SDLSurface :: defaultinit
sdl2 :: SDLSurface :: load
Load the image atpath inferring its type from the file extension
			sdl2 $ SDLSurface :: SELF
Type of this instance, automatically specialized in every classcore :: Pointer :: address_is_null
Is the address behind this Object at NULL?core :: Object :: class_factory
Implementation used byget_class to create the specific class.
			sdl2 :: SDLSurface :: defaultinit
core :: Object :: defaultinit
core :: Pointer :: defaultinit
core :: Object :: is_same_instance
Return true ifself and other are the same instance (i.e. same identity).
			core :: Object :: is_same_serialized
Isself the same as other in a serialization context?
			core :: Object :: is_same_type
Return true ifself and other have the same dynamic type.
			sdl2 :: SDLSurface :: load
Load the image atpath inferring its type from the file extension
			core :: Object :: output_class_name
Display class name on stdout (debug only).
# A bitmap surface
extern class SDLSurface `{ SDL_Surface * `}
	# Load the BMP file at `path`
	new load_bmp(path: CString) `{ return SDL_LoadBMP(path); `}
	redef fun free `{ SDL_FreeSurface(self); `}
	# Save this texture to a BMP file
	fun save_bmp(path: CString) `{ SDL_SaveBMP(self, path); `}
	# Format of the pixels
	fun format: SDL_PixelFormat `{ return self->format; `}
	# Width in pixels
	fun w: Int `{ return self->w; `}
	# Height in pixels
	fun h: Int `{ return self->h; `}
	# Bytes in a row of pixels
	fun pitch: Int `{ return self->pitch; `}
	# Pointer to pixel data
	fun pixels: Pointer `{ return self->pixels; `}
end
					lib/sdl2/sdl2_base.nit:397,1--422,3
				
redef extern class SDLSurface
	# Load the image at `path` inferring its type from the file extension
	new load(path: CString) `{ return IMG_Load(path); `}
end
					lib/sdl2/image.nit:57,1--60,3