Is there any way to modify color of a point.

Problems building or running the engine, queries about how to use features etc.
Post Reply
kisinger
Gnoblar
Posts: 9
Joined: Sat Apr 15, 2017 1:13 pm

Is there any way to modify color of a point.

Post by kisinger »

Is there any way to modify color of a point after create a menuobject?

Code: Select all

	Ogre::ManualObject *mManualObject = graphicsSystem->getSceneManager()->createManualObject(Ogre::SCENE_DYNAMIC);
	mManualObject->begin("Default", Ogre::OT_POINT_LIST);
       mManualObject->position(Ogre::Vector3(0,0 ,0));
mManualObject->colour(Ogre::ColourValue(0.5f, 0.5f, 0.5f));
mManualObject->index(0);
       mManualObject->position(Ogre::Vector3(0,1 ,0));
mManualObject->colour(Ogre::ColourValue(0.5f, 0.5f, 0.5f));
mManualObject->index(1);
       mManualObject->position(Ogre::Vector3(1,0 ,0));
mManualObject->colour(Ogre::ColourValue(0.5f, 0.5f, 0.5f));
mManualObject->index(2);
	mManualObject->end();
	mManualObject->setVisibilityFlags(0x000000002);
After that I get three points.So is there any way to modify color of the point.Or should I have to remove mManualObject and rebuild it?
Post Reply