OEReadSurface

bool OEReadSurface(const std::string& fname, OESurface& surf)
bool OEReadSurface(OEPlatform::oeistream& ifs, OESurface& surf,
                   unsigned int type)

Read the contents of the file named fname into the surface surf. Returns false if fname is not a valid surface file name.

An overload is provided to take any arbitrary oeistream.