Hello,

i'm not such a beginner but i'm currently in front of a stupid problem that seriously annoys me : i want to use a SimpleMaterial and my compiler forbids the setCore() operation : here's my code :

                SimpleMaterialPtr materialCore = SimpleMaterial::create();
                beginEditCP(materialCore);
                        materialCore->setDiffuse(Color3f(0.0, 1.0, 0.0));
                        materialCore->setAmbient(Color3f(0.0, 1.0, 0.0));
                        materialCore->setTransparency(0.5);
                endEditCP(materialCore);

                NodePtr noeudGeometrie = traverseur.getPtrNoeud();
                beginEditCP(noeudGeometrie);
                        noeudGeometrie->setCore(materialCore);
                endEditCP(noeudGeometrie);

and my compiler's message is :
no matching function for call to 'osg::Node::setCore(osg::SimpleMaterialPtr&)' .../OpenSG/OSGNodeImpl.h:116: error: candidates are: void osg::Node::setCore(const osg::NodeCorePtr&)

i don't understand. I included OSGSimpleMaterial.h, and i already did this operation with lots of nodes and cores. But that just doesn't want to compile...

Somebody sees the answer?

Thanks, Jo




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to