fun quit `{ IMG_Quit(); `}
# Get the latest image library error
- fun error: NativeString `{ return (char*)IMG_GetError(); `}
+ fun error: CString `{ return (char*)IMG_GetError(); `}
end
redef extern class SDLSurface
# Load the image at `path` inferring its type from the file extension
- new load(path: NativeString) `{ return IMG_Load(path); `}
+ new load(path: CString) `{ return IMG_Load(path); `}
end
# Flags from `sys.sdl.img.initialize`