MCPcopy Create free account
hub / github.com/KhronosGroup/OpenCOLLADA / toMaxColor

Function toMaxColor

COLLADAMax/src/COLLADAMaxMaterialCreator.cpp:32–36  ·  view source on GitHub ↗

Converts @a color to a max color. @a color must be valid.*/

Source from the content-addressed store, hash-verified

30
31 /** Converts @a color to a max color. @a color must be valid.*/
32 Color toMaxColor( const COLLADAFW::Color& color )
33 {
34 assert(color.isValid());
35 return Color(color.getRed(), color.getGreen(), color.getBlue());
36 }
37
38 /** Converts @a colorOrTexture to a max color. @a colorOrTexture must be a valid color.*/
39 Color toMaxColor( const COLLADAFW::ColorOrTexture& colorOrTexture )

Callers 1

Calls 7

ColorClass · 0.50
isValidMethod · 0.45
getRedMethod · 0.45
getGreenMethod · 0.45
getBlueMethod · 0.45
isColorMethod · 0.45
getColorMethod · 0.45

Tested by

no test coverage detected