Hi everybody,
I am trying to reducing the overhead of dynmically creating 10000
osg::AutoTransforms that have osgText::Text objects as their
individual children. Turns out the object creation is too slow and
memory intensive.
So I've tried to embed 10000 osg::AutoTransforms and osgText::Text
objects into another object by means of aggregation, as a quick fix to
this - rather than refactoring the entire application.
osg::AutoTransform m_MovingMobilesTransform[10000];
osgText::Text m_MovingMobilesText[10000];
Problem is:
1>gui\osg_gui.cpp(4836): error C2248:
'osg::AutoTransform::~AutoTransform' : cannot access protected member
declared in class 'osg::AutoTransform'
1> C:\Users\Christian Buchner\Documents\Visual Studio
2010\Projects\SON\deps\OSG\include\osg/AutoTransform(99) : see
declaration of 'osg::AutoTransform::~AutoTransform'
1> C:\Users\Christian Buchner\Documents\Visual Studio
2010\Projects\SON\deps\OSG\include\osg/AutoTransform(27) : see
declaration of 'osg::AutoTransform'
Apparently the AutoTransform destructor is declared virtual and protected.
Was that done on purpose to prevent object aggregation here? Could I
just create a child of osg::AutoTransform (e.g. MyAutoTransform) and
declare its destructor public to work around this?
Christian
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org