[osg-users] Global draw callback

Robert Osfield robert.osfield at gmail.com
Wed May 27 00:07:58 PDT 2015


Hi Farshid,

On 26 May 2015 at 23:16, Farshid Lashkari <flashk at gmail.com> wrote:

> I understand not wanting to add extra overhead. I'll look into the custom
> RenderBin approach. Also, I noticed the "RenderLeaf::render" method is
> virtual, but I don't see any way to provide a custom RenderLeaf class. The
> creation seems to be hard-coded within CullVisitor. Was this class
> originally designed to allow custom implementations?
>

I don't recall the exact details, but don't recall a plan to allow for
custom RenderLead implementations.    We a talking parts of the OSG were
written over a decade ago and haven't actually been touched much since -
they've just worked.

My guess is that it was originally made non virtual and then made virtual
by request. from the community.  If CullVisitor is hardwired then having it
cloning a prototype RenderLeaf would work.

Robert.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150527/ef2b6764/attachment-0003.htm>


More information about the osg-users mailing list