Hi ,
Iam new to OSG.
I was trying to create a subclass of Drawable and use it in a program.

so my code goes something like

class xyz:public Drawable {
//FUnctions and variables here

};

And in the main I try to create a object of xyz and attach it to the geode.
Now I get a compilation error like ...

/usr/X11R6/include/X11/Xlib.h:711: error: 'Drawable' does not name a type
/usr/X11R6/include/X11/Xlib.h:724: error: 'Drawable' does not name a type
/usr/X11R6/include/X11/Xlib.h:1462: error: 'Drawable' has not been declared
/usr/X11R6/include/X11/Xlib.h:1472: error: 'Drawable' has not been declared
/usr/X11R6/include/X11/Xlib.h:1590: error: 'Drawable' has not been declared
and many more similar errors ...

Can I know what is the issue ? And I have to derive from Drawable directly
as I hope to make some classes for Shapes like Sphere etc.

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

Reply via email to