Refactored ShapeDrawable so that it is subclassed from osg::Geometry rather than osg::Drawable.
Created a BuildShapeGeometryVisitor visitor that can create osg::Geometry for osg::Shape objects
This commit is contained in:
@@ -185,7 +185,7 @@ class OSG_EXPORT Drawable : public Node
|
||||
* geometry generation.
|
||||
* @see osg::Shape.
|
||||
*/
|
||||
inline void setShape(Shape* shape) { _shape = shape; }
|
||||
virtual void setShape(Shape* shape) { _shape = shape; }
|
||||
|
||||
template<class T> void setShape(const ref_ptr<T>& shape) { setShape(shape.get()); }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user