src/Graphics/Color.hh
author nireco
Sat, 31 Jan 2009 15:21:57 +0200
changeset 445 94dfb47036ef
parent 423 947ab54de4b7
permissions -rw-r--r--
explosion animation
#ifndef GRAPHICS_COLOR_HH
#define GRAPHICS_COLOR_HH

#if GRAPHICS_ENABLED

#include <ClanLib/Display/color.h>

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 */