torque Torque Game Engine Documentation
TGE Version 1.5.2

GPalette Class Reference

#include <gPalette.h>


Public Types

enum  PaletteType {
  RGB,
  RGBA
}

Public Member Functions

 GPalette ()
virtual ~GPalette ()
PaletteType getPaletteType () const
void setPaletteType (const PaletteType pt)
const ColorIgetColors () const
ColorIgetColors ()
const ColorIgetColor (const U32 in_index) const
ColorIgetColor (const U32 in_index)
bool readMSPalette (Stream &io_rStream)
bool readMSPalette (const char *in_pFileName)
bool writeMSPalette (Stream &io_rStream) const
bool writeMSPalette (const char *in_pFileName) const
bool read (Stream &io_rStream)
bool write (Stream &io_rStream) const

Protected Attributes

PaletteType m_paletteType
ColorI m_pColors [256]

Static Private Attributes

static const U32 csm_fileVersion


Member Enumeration Documentation

Enumerator:
RGB 
RGBA 


Constructor & Destructor Documentation

GPalette::GPalette (  ) 

virtual GPalette::~GPalette (  )  [virtual]


Member Function Documentation

GPalette::PaletteType GPalette::getPaletteType (  )  const [inline]

void GPalette::setPaletteType ( const PaletteType  pt  )  [inline]

const ColorI * GPalette::getColors (  )  const [inline]

ColorI * GPalette::getColors (  )  [inline]

const ColorI & GPalette::getColor ( const U32  in_index  )  const [inline]

ColorI & GPalette::getColor ( const U32  in_index  )  [inline]

bool GPalette::readMSPalette ( Stream io_rStream  ) 

bool GPalette::readMSPalette ( const char *  in_pFileName  ) 

bool GPalette::writeMSPalette ( Stream io_rStream  )  const

bool GPalette::writeMSPalette ( const char *  in_pFileName  )  const

bool GPalette::read ( Stream io_rStream  ) 

bool GPalette::write ( Stream io_rStream  )  const


Field Documentation

ColorI GPalette::m_pColors[256] [protected]

const U32 GPalette::csm_fileVersion [static, private]




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen