Class hierarchy Compound list File list Compound Members File Members
RVColor Class Reference
re-volt basic type for colors. More...
List of all members.
Public Members
- inline void setRed (rvulong val)
- inline void setGreen (rvulong val)
- inline void setBlue (rvulong val)
- inline void setAlpha (rvulong val)
- inline rvulong red (void)
- inline rvulong green (void)
- inline rvulong blue (void)
- inline rvulong alpha (void)
- void shadeAdd (int r, int g, int b)
- rvulong channel (int ch)
- void setChannel (int ch, rvulong val)
- void setRGB (rvulong r, rvulong g, rvulong b)
- inline void setRGBf (rvfloat r, rvfloat g, rvfloat b)
- rvfloat brightness (void)
- void shade (float sr, float sg, float sb)
- inline void shade (float s)
- rvulong value
Detailed Description
re-volt basic type for colors.
frontend to the 32-bit field used for color definitions.
Member Function Documentation
inline void RVColor::setRed(rvulong val)
sets Red channel value to val
inline void RVColor::setGreen(rvulong val)
sets Green channel value to val
inline void RVColor::setBlue(rvulong val)
sets Blue channel value to val
inline void RVColor::setAlpha(rvulong val)
sets Alpha channel value to val
inline rvulong RVColor::red(void)
returns Red channel value
inline rvulong RVColor::green(void)
returns Green channel value
inline rvulong RVColor::blue(void)
returns Blue channel value
inline rvulong RVColor::alpha(void)
returns Alpha channel value
void RVColor::shadeAdd(int r, int g, int b)
shades by adding or substracting values
rvulong RVColor::channel(int ch)
return the value for the channel ch, where
- 0 is Alpha
- 1 is Red
- 2 is Green
- 3 is Blue
void RVColor::setChannel(int ch, rvulong val)
sets the value for the channel ch to val, where
- 0 is Alpha
- 1 is Red
- 2 is Green
- 3 is Blue
sets the R, G and B channels, leaving the Alpha channel untouched
sets the R, G and B channels, leaving the Alpha channel untouched
rvfloat RVColor::brightness(void)
-
Returns:
-
the brightness. Always between 0.0 and 1.0
void RVColor::shade(float sr, float sg, float sb)
brightens or darkens the color by multiplying with the
given factors
inline void RVColor::shade(float s)
Member Data Documentation
rvulong RVColor::value
value as found in re-volt files
The documentation for this class was generated from the following files:
Generated at Wed May 31 21:08:20 2000 for Rvtmod/rvglue by
written by Dimitri van Heesch, © 1997-1998