sdl2::imagesdl2 :: IMG :: defaultinit
sdl2 :: IMG :: initialize
Initialize the image librarycore :: Object :: class_factory
Implementation used byget_class to create the specific class.
			sdl2 :: IMG :: defaultinit
core :: Object :: defaultinit
sdl2 :: IMG :: initialize
Initialize the image librarycore :: 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.
			core :: Object :: output_class_name
Display class name on stdout (debug only).
# Holds the global methods of `sdl2::image`
class IMG
	# Get the `IMG` singleton
	new do return once new IMG.internal
	# TODO make this private and only called through `sys.sdl.img`
	init internal do end
	# Initialize the image library
	fun initialize(flags: SDLImgInitFlags): SDLImgInitFlags `{
		return IMG_Init(flags);
	`}
	# Finalize and clean up the image library
	fun quit `{ IMG_Quit(); `}
	# Get the latest image library error
	fun error: CString `{ return (char*)IMG_GetError(); `}
end
					lib/sdl2/image.nit:37,1--55,3