[SOLVED]arrowMesh question

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
wsw1231
Posts: 148
Joined: Fri Oct 01, 2010 7:55 am

[SOLVED]arrowMesh question

Post by wsw1231 »

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);
I use this code to create an arrow mesh.
Now, I would like to change its color, but I cannot find any API to do that.
What should I do?
Last edited by wsw1231 on Sun Feb 06, 2011 10:35 am, edited 1 time in total.
pandoragami
Posts: 226
Joined: Wed Jan 26, 2011 5:37 pm
Contact:

Post by pandoragami »

this is how you would do it for a cube

Code: Select all

smgr->getMeshManipulator()->setVertexColors(cube->getMesh(), SColor(255,red,green,blue));
it might be similar to it.
Post Reply