Torque2D Reference
Loading...
Searching...
No Matches
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]

Member Enumeration Documentation

◆ PaletteType

Enumerator
RGB 
RGBA 

Constructor & Destructor Documentation

◆ GPalette()

GPalette ( )

◆ ~GPalette()

~GPalette ( )
virtual

Member Function Documentation

◆ getColor() [1/2]

ColorI & getColor ( const U32 in_index)
inline

◆ getColor() [2/2]

const ColorI & getColor ( const U32 in_index) const
inline

◆ getColors() [1/2]

ColorI * getColors ( )
inline

◆ getColors() [2/2]

const ColorI * getColors ( ) const
inline

◆ getPaletteType()

GPalette::PaletteType getPaletteType ( ) const
inline

◆ read()

bool read ( Stream & io_rStream)

◆ readMSPalette() [1/2]

bool readMSPalette ( const char * in_pFileName)

◆ readMSPalette() [2/2]

bool readMSPalette ( Stream & io_rStream)

◆ setPaletteType()

void setPaletteType ( const PaletteType pt)
inline

◆ write()

bool write ( Stream & io_rStream) const

◆ writeMSPalette() [1/2]

bool writeMSPalette ( const char * in_pFileName) const

◆ writeMSPalette() [2/2]

bool writeMSPalette ( Stream & io_rStream) const

Member Data Documentation

◆ m_paletteType

PaletteType m_paletteType
protected

◆ m_pColors

ColorI m_pColors[256]
protected

The documentation for this class was generated from the following files: