MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / getCEGUIColorFromOgreColourValue

Function getCEGUIColorFromOgreColourValue

source/utils/Helper.cpp:217–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215 }
216
217 std::string getCEGUIColorFromOgreColourValue(const Ogre::ColourValue& color)
218 {
219 std::string colourStr = Helper::intTo2Hex(static_cast<int>(color.a * 255.0f))
220 + Helper::intTo2Hex(static_cast<int>(color.r * 255.0f))
221 + Helper::intTo2Hex(static_cast<int>(color.g * 255.0f))
222 + Helper::intTo2Hex(static_cast<int>(color.b * 255.0f));
223 return colourStr;
224 }
225
226 std::string getImageColoursStringFromColourValue(const Ogre::ColourValue& color)
227 {

Callers 4

getMessageAsStringMethod · 0.85
activateMethod · 0.85

Calls 1

intTo2HexFunction · 0.85

Tested by

no test coverage detected