57 #ifndef ACG_COLORTRANSLATOR_HH
58 #define ACG_COLORTRANSLATOR_HH
65 #include <ACG/Config/ACGDefines.hh>
66 #include <ACG/Math/VectorT.hh>
88 red_bits_(0), green_bits_(0), blue_bits_(0), alpha_bits_(0),
89 red_mask_(0), green_mask_(0), blue_mask_(0), alpha_mask_(0),
90 red_shift_(0), green_shift_(0), blue_shift_(0), alpha_shift_(0),
91 red_round_(0), green_round_(0), blue_round_(0), alpha_round_(0)
105 Vec4uc index2color(
unsigned int _idx)
const;
107 int color2index(
Vec4uc _rgba)
const;
111 unsigned int max_index()
const;
117 GLint red_bits_, green_bits_, blue_bits_, alpha_bits_;
118 GLuint red_mask_, green_mask_, blue_mask_, alpha_mask_;
119 GLuint red_shift_, green_shift_, blue_shift_, alpha_shift_;
120 GLuint red_round_, green_round_, blue_round_, alpha_round_;
127 #endif // ACG_COLORTRANSLATOR_HH defined
Namespace providing different geometric functions concerning angles.
bool initialized() const
has it been initialized?
~ColorTranslator()
Destructor.
ColorTranslator()
Default constructor.