Code: Select all
IAnimatedMesh *arrX = smgr->addArrowMesh("arrowX", SColor(255, 100, 0, 0), SColor(255, 100, 0, 0),4,8,1.0f,0.6f,0.05f,0.2f);
Now, I would like to change its color, but I cannot find any API to do that.
What should I do?
Code: Select all
IAnimatedMesh *arrX = smgr->addArrowMesh("arrowX", SColor(255, 100, 0, 0), SColor(255, 100, 0, 0),4,8,1.0f,0.6f,0.05f,0.2f);
Code: Select all
smgr->getMeshManipulator()->setVertexColors(cube->getMesh(), SColor(255,red,green,blue));