[preventing multiple loading of textures] * Erik Hofman -- Friday 21 April 2006 10:55: > I didn't take a real close look but I think it could be done without the > need to define our own texture loader. The ssgTexture class allows one > to fetch the texture-id after it is being loaded.
Yes, there's ssgTexture::getHandle(). I just fail to see how this could be used to convince the 3D model loaders to not load a texture again. I agree, though, that incorporating ssgLoadSGI isn't the best thing. Better would be to get a patch committed that changes ssgLoadTexture() to not stop searching for possible loaders after the first one was executed. This doesn't have any performance implications -- it would only take effect if one loader was deemed responsible, but failed. This should be the absolute exception in any plib-using project. This would allow us to add some proxy loaders via ssgAddTextureFormat(). These would check the cache and return the cached sggTexturedInfo, or otherwise call the regular loader and push its result into the queue. The weak spot is that such a proxy would have to be registered for each supported format. Well, and that we'd have to wake up the plib devs from hibernation and to convince them ... m. ------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel