State
-
WireFrame설정3D Graphics/OSG 2008. 8. 18. 01:58
#include ... osg::Switch* mRoot = new osg::Switch; //Wire Frame Test osg::ref_ptr cow = osgDB::readNodeFile("model/cow.osg");//mesh loading mRoot->addChild(cow, true);//switch node osg::StateSet* state = cow->getOrCreateStateSet();//Get State //Create Attribute osg::PolygonMode* pt = new osg::PolygonMode(osg::PolygonMode::FRONT_AND_BACK, osg::PolygonMode::LINE); //set child Attribute. state->set..