The Game Engine
1
Main Page
Related Pages
Classes
Files
File List
File Members
Color.cpp
Go to the documentation of this file.
1
#include "
Color.h
"
2
3
SDL_Color
Color::toSDLColor
(){
4
SDL_Color retval = {
R
,
G
,
B
,
A
};
5
return
retval;
6
}
7
8
GLfloat
Color::getRed
(){
9
return
R
/255.0f;
10
}
11
12
GLfloat
Color::getGreen
(){
13
return
G
/255.0f;
14
}
15
16
GLfloat
Color::getBlue
(){
17
return
B
/255.0f;
18
}
19
20
GLfloat
Color::getAlpha
(){
21
return
A
/255.0f;
22
}
23
24
const
Color
Color::WHITE
= {0xFF, 0xFF, 0xFF, 0xFF};
Color.cpp
Generated on Tue Apr 16 2013 02:32:41 for The Game Engine by
1.8.3.1