}
}
-class sgLoaderOptions : public ssgLoaderOptions {
+class SGLoaderOptions : public ssgLoaderOptions {
public:
+ SGLoaderOptions() { ssgSetCurrentOptions( this ); } // Install our own loader options at startup
void endLoad() {} // Avoid clearing the texture cache after every model load
};
-static sgLoaderOptions loaderOptions;
+static SGLoaderOptions loaderOptions;
\f
////////////////////////////////////////////////////////////////////////
texturepath = texturepath.dir();
ssgTexturePath((char *)texturepath.c_str());
- model = (ssgBranch *)ssgLoad((char *)modelpath.c_str(), &loaderOptions);
+ model = (ssgBranch *)ssgLoad((char *)modelpath.c_str());
if (model == 0)
throw sg_io_exception("Failed to load 3D model",
sg_location(modelpath.str()));