csgfx/rgbpixel.h File Reference (Crystal Space 2.0 Public API Reference)

| ## Public API Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

Classes
csgfx/rgbpixel.h File Reference

RGB colors. More...

`#include "csextern.h"`
`#include "csutil/comparator.h"`

Go to the source code of this file.

## Classes
class | csComparator< csRGBcolor *, csRGBcolor * >
| csComparator<> specialization for csColor*. More...
class | csComparator< csRGBcolor, csRGBcolor >
| csComparator<> specialization for csRGBcolor. More...
struct | csRGBcolor
| An RGB color. More...
struct | csRGBpixel
| An RGB pixel. More...
## Defines
Eye sensivity to different color components
Eye sensivity to different color components, from NTSC grayscale equation. The coefficients are multiplied by 100 and rounded towards nearest integer, to facilitate integer math. The squared coefficients are also multiplied by 100 and rounded to nearest integer (thus 173 == 1.73, 242 == 2.42 etc).
#define | R_COEF 173
| Red component sensivity.
#define | G_COEF 242
| Green component sensivity.
#define | B_COEF 107
| Blue component sensivity.
Eye sensivity to different color components, squared
#define | R_COEF_SQ 299
| Red component sensivity, squared.
#define | G_COEF_SQ 587
| Green component sensivity, squared.
#define | B_COEF_SQ 114
| Blue component sensivity, squared.

## Detailed Description

RGB colors.

Definition in file rgbpixel.h.