|
Boost : |
From: Nigel Stewart (ns_at_[hidden])
Date: 2005-09-15 17:43:18
Adam,
For some idea of useful color functionality in the OpenGL
context:
GltColor C++ class for RGB color representation
http://www.nigels.com/glt/doc/class_glt_color.html
Open Scene Graph RGBA color representation
http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/classosg_1_1Vec4d.html
OpenGL pixel image formats and types
http://developer.3dlabs.com/documents/GLmanpages/glreadpixels.htm
Qt QColor class for GUI color representation
http://doc.trolltech.com/3.3/qcolor.html
Wish list:
* Flexible representation RGB, RGBA, YUV, HSV and conversions between
* Machine level-representation RGBA, BGRA, etc
* Conversion to and from HTML std::string #rrggbb
* Interpolating between colors in various color spaces (HSV is cylindrical!)
* Named colors: boost::black, boost::white, etc
* Operations such as brighten, darken, gamma adjustment, etc
Suggestions:
* Leave image processing out of scope, image processing could layer on top.
Cheers,
Nigel Stewart
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk