#include <sdlmm_color.h>
Inheritance diagram for SDLmm::ColorRGB::

Public Methods | |
| ColorRGB () | |
| Default constructor which creates an empty ColorRGB (rgb variables set to zero). More... | |
| ColorRGB (const ColorRGB &color) | |
| This is the copy constructor. Simply initializes the value of an ColorRGB to that of another ColorRGB. More... | |
| ColorRGB (Uint8 nr, Uint8 ng, Uint8 nb) | |
| Constructor which initializes the class from integer values. More... | |
| ColorRGB& | operator= (const ColorRGB &color) |
| Set the value of an ColorRGB to that of an existing ColorRGB. More... | |
| bool | operator== (const ColorRGB &color) const |
| Compare two colors for equality. More... | |
Public Attributes | |
| Uint8 | r |
| Uint8 | g |
| Uint8 | b |
Definition at line 32 of file sdlmm_color.h.
|
|
Default constructor which creates an empty ColorRGB (rgb variables set to zero).
Definition at line 36 of file sdlmm_color.h. |
|
|
This is the copy constructor. Simply initializes the value of an ColorRGB to that of another ColorRGB.
Definition at line 42 of file sdlmm_color.h. |
|
|
Constructor which initializes the class from integer values.
Definition at line 51 of file sdlmm_color.h. |
|
|
Set the value of an ColorRGB to that of an existing ColorRGB.
Definition at line 55 of file sdlmm_color.h. |
|
|
Compare two colors for equality.
Definition at line 69 of file sdlmm_color.h. |
|
|
Definition at line 75 of file sdlmm_color.h. |
|
|
Definition at line 74 of file sdlmm_color.h. |
|
|
Definition at line 73 of file sdlmm_color.h. |
Documentation automatically generated by written by Dimitri van Heesch. |
Project hosted at |