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


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

void RVColor::setChannel(int ch, rvulong val)

sets the value for the channel ch to val, where

void RVColor::setRGB(rvulong r, rvulong g, rvulong b)

sets the R, G and B channels, leaving the Alpha channel untouched

inline void RVColor::setRGBf(rvfloat r, rvfloat g, rvfloat b)

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 doxygen  written by Dimitri van Heesch, © 1997-1998