Hello Erik,
Erik Podetti wrote:
> How do I create a dummy node? via makeCoredNode() ? with which argument?
sorry, I just used the term "dummy node" to distinguish it from the real
scene, so its just a regular node with a group core, which you can
create like this:
NodePtr emptyScene = makeCoredNode<Group>();
If present the argument you pass to makeCoredNode (note that is a
NodeCorePtr *), if present, is filled with the core. That is useful if
you need to do some settings on the core, e.g.:
Matrix someMatrix;
TransformPtr xform;
NodePtr xformN = makeCoredNode<Transform>(&xform);
xfrom->setMatrix(someMatrix);
or alternatively:
TransformPtr xform = Transform::create();
NodePtr xformN = makeNodeFor(xform);
Cheers,
Carsten
------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Opensg-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensg-users