Hi Sukender, On Tue, Jan 12, 2010 at 11:40 AM, Sukender <[email protected]> wrote: > I understand. But when I developed it, I found it easier putting everything > in Image than at many places all over the project(s). What about writers > then? Should we modify all writers to call "if (proxy not loaded) load > proxy;"? Moreover, I'm not sure I'll be able to find all places where to put > such a code. And I saw many lines of code assuming "image->data()" was not > NULL... which is the problem when having a proxy image.
I don't yet know of a better solution, I just know that the putting doProxyLoading() doesn't feel appropriate. I will do some searches for usage of osg::Image and see what might be better. In general if current code is assuming that data() is valid then this code should probably be more defensive anyway and should have a valid() or validate() method prior to usage of internal members, this is regardless of the proxy image implementation issues. > There may be a better solution, but I'm not certain it'll be easy to maintain. > What do you think about it? I'm still thinking :-) Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
