diff -r 5e4c8631779e -r 947ab54de4b7 src/Graphics/Color.hh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/Graphics/Color.hh Thu Jan 22 03:53:17 2009 +0200 @@ -0,0 +1,37 @@ +#ifndef GRAPHICS_COLOR_HH +#define GRAPHICS_COLOR_HH + +#if GRAPHICS_ENABLED + +#include + +namespace graphics +{ + +// alias +typedef CL_Color Color; + +} + +# else /* GRAPHICS_ENABLED */ + +namespace graphics +{ + +/** + * XXX: define dummy color type for use when graphics are disabled + */ +class Color { +public: + Color (unsigned red, unsigned green, unsigned blue) + { + (void) red; + (void) green; + (void) blue; + } +}; + +} +#endif /* GRAPHICS_ENABLED */ + +#endif /* GRAPHICS_COLOR_HH */