Basically Iam deriving a class called osgCubic from osgDrawable . This class
will use shaders to render a cubic equation (any genera cubic equation) . So
can I know what all functions should I be implementing in the class.

Actually Iam trying to implement only the drawImplementation function in
which Iam trying to use the osgShader. Is it a right method to go about
doing it ?

Amal.

---------- Forwarded message ----------
From: Paul Martz <[EMAIL PROTECTED]>
Date: Jul 15, 2007 6:11 PM
Subject: RE: [osg-users] Deriving from OSG:Drawable.
To: osg users <[email protected]>




If i derive a class from osg:drawable ( say like osg::Text ) what are the
functions that I should surely overload ?. One is DrawImplementation
function. Are ther any other Functions that i should surely overload .


You only need override pure virtual methods, and drawImplementation() is
the only pure virtual method in the Drawable class.

Depending on what you're doing, you might also want to override the
destructor, or computeBound(), but this isn't strictly required and, as I
said, depends on what you're doing.

Paul Martz
*Skew Matrix Software LLC*
http://www.skew-matrix.com
303 859 9466

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to