|
The Game Engine
1
|
Provides common color related data. More...
#include <Color.h>
Collaboration diagram for Color:Public Member Functions | |
| SDL_Color | toSDLColor () |
| Converts to SDL_Color. More... | |
| GLfloat | getRed () |
| Returns Red insensity as a number between 0 and 1. More... | |
| GLfloat | getGreen () |
| Returns Green insensity as a number between 0 and 1. More... | |
| GLfloat | getBlue () |
| Returns Blue insensity as a number between 0 and 1. More... | |
| GLfloat | getAlpha () |
| Returns Alpha insensity as a number between 0 and 1. More... | |
Public Attributes | |
| Uint8 | R |
| Uint8 | G |
| Uint8 | B |
| Uint8 | A |
Static Public Attributes | |
| static const Color | WHITE = {0xFF, 0xFF, 0xFF, 0xFF} |
Provides common color related data.
This class is tasked with the following:
| GLfloat Color::getAlpha | ( | ) |
| GLfloat Color::getBlue | ( | ) |
| GLfloat Color::getGreen | ( | ) |
| GLfloat Color::getRed | ( | ) |
| SDL_Color Color::toSDLColor | ( | ) |