Let's say I create a node in this manner:
Code: Select all
const SColor YELLOW = SColor(255, 255, 255, 0);
ISceneManager *smgr = device->getSceneManager();
IMeshSceneNode* node=NULL;
node = smgr->addCubeSceneNode(2.0, 0, 1000, vector3df(0,0,0), vector3df(0,0,0), vector3df(4.0,1.0,1.0));
Code: Select all
node = smgr->getSceneNodeFromId(1000,0);
smgr->getMeshManipulator()->setVertexColors(node->getMesh(), YELLOW);
Please lend a hand and tell me how to convert the results of getSceneNodeFromId() into the proper form so I can use setVertexColors() on it?
Many thanks in advance!