Syndicate::Data::Palette Class Reference

#include <Syndicate/Data/Palette.h>

Inheritance diagram for Syndicate::Data::Palette:

Syndicate::Data::File List of all members.

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

Member Enumeration Documentation

enum Syndicate::Data::Palette::HPAL02

Enumerator:
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 


Constructor & Destructor Documentation

Syndicate::Data::Palette::Palette ( void   )  [inline]

Syndicate::Data::Palette::~Palette ( void   )  [inline]


Member Function Documentation

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.

Parameters:
[in] filename the name of the file.
Return values:
true if success.
false if fails. If previous file is loaded, the data keep unaffected.

unsigned Syndicate::Data::File::getLength ( void   )  [inline, inherited]


Member Data Documentation

Color* Syndicate::Data::Palette::_colors [private]

unsigned Syndicate::Data::File::_data_length [protected, inherited]


The documentation for this class was generated from the following file:
Generated on Sun Sep 30 13:08:36 2007 for libSyndicate by  doxygen 1.5.2