Hi Robert --
 
Why is Camera::DrawCallback::operator() declared as const? Is this simply a
result of the draw operation itself being entirely const?
 
I have my own structs derived from Camera::DrawCallback, and in operator()
I'd like to modify some member variables. The fact that operator() is const
is forcing me to make those mutable or cast away constness.
 
I'm using these as PreDraw and PostDrawCallbacks, and from what I can see of
the code, those are always executed sequentially by the same thread, so I
don't see that there's risk of thread collisions if I modify data in my
callbacks. Correct me if I'm wrong on this.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
303 859 9466
 
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to