# File lib/rubygame/image.rb, line 78 def load( filename ) surf = SDL::Image.Load( filename ) if( surf.pointer.null? ) raise( Rubygame::SDLError, "Couldn't load image \"%s\": %s"%\ [filename, SDL.GetError()] ) end return self.new(surf) end