csRGBcolor Struct Reference
[Graphics]
An RGB color.
More...
#include <csgfx/rgbpixel.h>
Public Member Functions | |
csRGBcolor () | |
Constructor (initialize to zero). | |
csRGBcolor (unsigned char r, unsigned char g, unsigned char b) | |
Initialize the color with some R/G/B value. | |
void | Set (unsigned char r, unsigned char g, unsigned char b) |
Assign given red/green/blue values to this pixel. | |
bool | operator== (const csRGBcolor &c) const |
Compare with an csRGBcolor. | |
bool | operator!= (const csRGBcolor &c) const |
Compare with an csRGBcolor. | |
csRGBcolor | operator+ (const csRGBcolor &c) const |
add two csRGBcolors | |
Public Attributes | |
unsigned char | red |
The red, green, blue components. | |
unsigned char | green |
The red, green, blue components. | |
unsigned char | blue |
The red, green, blue components. |
Detailed Description
An RGB color.This class is used whenever we need just R, G and B information, such as when defining a color palette.
Definition at line 67 of file rgbpixel.h.
Constructor & Destructor Documentation
|
Constructor (initialize to zero).
Definition at line 72 of file rgbpixel.h. |
|
Initialize the color with some R/G/B value.
Definition at line 74 of file rgbpixel.h. |
Member Function Documentation
|
Compare with an csRGBcolor.
Definition at line 83 of file rgbpixel.h. |
|
add two csRGBcolors
Definition at line 86 of file rgbpixel.h. |
|
Compare with an csRGBcolor.
Definition at line 80 of file rgbpixel.h. |
|
Assign given red/green/blue values to this pixel.
Definition at line 77 of file rgbpixel.h. |
Member Data Documentation
|
The red, green, blue components.
Definition at line 70 of file rgbpixel.h. Referenced by csRGBVector::Compare(), operator+(), csRGBpixel::operator+=(), csRGBpixel::operator==(), operator==(), csPackRGB::PackRGBcolorToRGBBuffer(), csPackRGBA::UnpackRGBAtoRGBcolor(), and csPackRGB::UnpackRGBtoRGBcolor(). |
|
The red, green, blue components.
Definition at line 70 of file rgbpixel.h. Referenced by csRGBVector::Compare(), operator+(), csRGBpixel::operator+=(), csRGBpixel::operator==(), operator==(), csPackRGB::PackRGBcolorToRGBBuffer(), csPackRGBA::UnpackRGBAtoRGBcolor(), and csPackRGB::UnpackRGBtoRGBcolor(). |
|
The red, green, blue components.
Definition at line 70 of file rgbpixel.h. Referenced by csRGBVector::Compare(), operator+(), csRGBpixel::operator+=(), csRGBpixel::operator==(), operator==(), csPackRGB::PackRGBcolorToRGBBuffer(), csPackRGBA::UnpackRGBAtoRGBcolor(), and csPackRGB::UnpackRGBtoRGBcolor(). |
The documentation for this struct was generated from the following file:
- csgfx/rgbpixel.h
Generated for Crystal Space by doxygen 1.3.9.1