colours.hpp
Go to the documentation of this file.
00001 
00004 /*****************************************************************************
00005 ** Ifdefs
00006 *****************************************************************************/
00007 
00008 #ifndef qglv_GL_COLOUR_HPP_
00009 #define qglv_GL_COLOUR_HPP_
00010 
00011 /*****************************************************************************
00012 ** Includes
00013 *****************************************************************************/
00014 
00015 /*****************************************************************************
00016 ** Namespace
00017 *****************************************************************************/
00018 
00019 namespace qglv {
00020 
00021 enum Colour {
00022   Blue,
00023   DimGray,     // http://www.color-hex.com/color/696969
00024   Gray19,      // http://www.color-hex.com/color/303030
00025   GoldenBrown, // http://www.rapidtables.com/web/color/Gold_Color.htm
00026   Green,
00027   Magenta,
00028   Maroon,
00029   Orange,
00030   Pink,
00031   Red,
00032   White,
00033   Yellow
00034 };
00035 
00036 enum AxisColourScheme {
00037   AxisColourRGB,
00038   AxisColourFadedBlue,
00039   AxisColourGolden,
00040   AxisColourGreen,
00041   AxisColourBlue,
00042   AxisColourRed,
00043   AxisColourMagenta,
00044   AxisColourGray,
00045   AxisColourWhite,
00046 };
00047 
00053 void colour(enum Colour colour, const float& alpha=1.0f);
00054 
00066 void normalisedValueToRGB(const float& value, float& r, float& g, float& b);
00067 
00068 } // namespace qglv
00069 
00070 #endif /* qglv_GL_COLOUR_HPP_ */


qglv_opengl
Author(s): Daniel Stonier
autogenerated on Sat Jun 18 2016 08:19:28