I think I know how to implement this, but wanted to throw it out there, since having an invert function specific to my own class doesn't really help anybody else (nor does it really fit into my "Text" class..). Would be nice if there was a function Ogre::ColourValue Ogre::ColourValue::invertedColour();
Code: Select all
Ogre::ColourValue c = myColourValue.invertedColour();(I want to use the term "inverse", but not sure if that is correct terminology, or what the correct terminology is.
Haven't tested this, but I think the code would look something like:
Code: Select all
Ogre::ColourValue Text::getInverseColor(const Ogre::ColourValue& c)
{
return Ogre::ColourValue(
1.0 - c.r,
1.0 - c.g,
1.0 - c.b,
c.a);
}

