ScummVM API documentation
Palette Class Reference

#include <display_client.h>

Public Member Functions

bool allocate ()
 
void deallocate ()
 
void clear ()
 
void setPixelFormats (PSPPixelFormat::Type paletteType, PSPPixelFormat::Type bufferType, bool swapRedBlue=false)
 
void setNumOfEntries (uint32 num)
 
uint32 getNumOfEntries () const
 
uint32 getSizeInBytes () const
 
void set (byte *values)
 
void setPartial (const byte *colors, uint start, uint num, bool supportsAlpha=false)
 
void getPartial (byte *colors, uint start, uint num) const
 
uint32 getRawColorAt (uint32 position) const
 
uint32 getRGBAColorAt (uint32 position) const
 
void setSingleColorRGBA (uint32 num, byte r, byte g, byte b, byte a)
 
void setColorPositionAlpha (uint32 position, bool alpha)
 
const byte * getRawValues () const
 
byte * getRawValues ()
 
bool isAllocated () const
 
PSPPixelFormat::Type getPixelFormat () const
 
void print (uint32 numToPrint=0)
 

Protected Attributes

byte * _values
 array of palette data
 
uint32 _numOfEntries
 number of palette entries
 
PSPPixelFormat _pixelFormat
 pixel format of the palette data
 

Detailed Description

Universal PSP Palette class Use this in any class that wishes to draw to the PSP screen. Use together with GuRenderer


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