#include <Syndicate/Data/Palette.h>
Inheritance diagram for Syndicate::Data::Palette:

Public Types | |
| enum | HPAL02 { HPAL02_DARK_BLACK, HPAL02_DARK_FOO, HPAL02_DARK_GREY, HPAL02_GREEN, HPAL02_DARK_WHITE, HPAL02_DARK_BROWN, HPAL02_RED, HPAL02_DARK_BLUE, HPAL02_BLACK, HPAL02_FOO, HPAL02_GREY, HPAL02_YELLOW, HPAL02_WHITE, HPAL02_BROWN, HPAL02_ORANGE, HPAL02_BLUE, HPAL02_WINE } |
Public Member Functions | |
| Palette (void) | |
| ~Palette (void) | |
| void | get (uint8_t index, uint8_t &r, uint8_t &g, uint8_t &b) const |
| void | get (uint8_t index, uint8_t &r, uint8_t &g, uint8_t &b, uint8_t &a) const |
| unsigned | size (void) const |
| virtual void | info (void) |
| bool | load (char const *filename) |
| unsigned | getLength (void) |
Protected Attributes | |
| unsigned | _data_length |
Private Attributes | |
| Color * | _colors |
Classes | |
| struct | Color |
| Syndicate::Data::Palette::Palette | ( | void | ) | [inline] |
| Syndicate::Data::Palette::~Palette | ( | void | ) | [inline] |
| void Syndicate::Data::Palette::get | ( | uint8_t | index, | |
| uint8_t & | r, | |||
| uint8_t & | g, | |||
| uint8_t & | b | |||
| ) | const |
| void Syndicate::Data::Palette::get | ( | uint8_t | index, | |
| uint8_t & | r, | |||
| uint8_t & | g, | |||
| uint8_t & | b, | |||
| uint8_t & | a | |||
| ) | const |
| unsigned Syndicate::Data::Palette::size | ( | void | ) | const [inline] |
Return the number of colors
| virtual void Syndicate::Data::File::info | ( | void | ) | [virtual, inherited] |
In debug mode it display the informations.
| bool Syndicate::Data::File::load | ( | char const * | filename | ) | [inherited] |
This method load the content (unpacked) of the file at the adress pointed by _data.
| [in] | filename | the name of the file. |
| true | if success. | |
| false | if fails. If previous file is loaded, the data keep unaffected. |
| unsigned Syndicate::Data::File::getLength | ( | void | ) | [inline, inherited] |
Color* Syndicate::Data::Palette::_colors [private] |
unsigned Syndicate::Data::File::_data_length [protected, inherited] |
1.5.2