Hi Tim, On Sun, Aug 23, 2009 at 8:47 PM, Tim Allen<[email protected]> wrote: > What is the function of osg::Drawable::AttributeFunctor class in osg.What > does it do??
It's a mechanism for getting access to drawable vertex attributes in a generic way, i.e. decoupled from the actual Drawable subclass. You write your subclass of AttributeFunctor, and then pass an object of this subclass to the drawable to call the appropriate virtual methods using double dispatch a bit like the visitor pattern. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

