|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--sdl.video.SDLColor
A class to conveniently hold a color :)
| Field Summary | |
byte |
m_Blue
Blue component |
byte |
m_Green
Green component |
byte |
m_Red
Red component |
byte |
m_Unused
Unused, sometimes Alpha component? |
| Constructor Summary | |
SDLColor()
Defaults to black. |
|
SDLColor(int color)
Creates a color from a 32bit representation (0x--RRGGBB). |
|
| Method Summary | |
void |
freeColor()
Frees the low level color buffer. |
int |
toInt()
Converts this color to a 32bit integer representation (0x--RRGGBB). |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public byte m_Red
public byte m_Green
public byte m_Blue
public byte m_Unused
| Constructor Detail |
public SDLColor()
public SDLColor(int color)
| Method Detail |
public void freeColor()
public java.lang.String toString()
toString in class java.lang.Objectpublic int toInt()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||