|
| | CBofPalette () |
| |
| | CBofPalette (const char *pszFileName) |
| |
| | CBofPalette (const HPALETTE &hPalette) |
| |
| ErrorCode | loadPalette (const char *pszFileName, uint16 nFlags=0x0000) |
| |
|
ErrorCode | createDefault (uint16 nFlags=0x0000) |
| |
|
byte | getNearestIndex (RGBCOLOR cColor) |
| |
|
RGBCOLOR | getColor (byte nIndex) |
| |
| void | setPalette (const HPALETTE &hPalette) |
| |
|
const HPALETTE & | getPalette () const |
| |
|
const byte * | getData () const |
| |
|
void | setData (const byte *colors) |
| |
| CBofPalette * | copyPalette () |
| |
| void | reportError (ErrorCode errCode, const char *format,...) |
| |
|
bool | errorOccurred () const |
| |
|
ErrorCode | getErrorCode () const |
| |
|
void | clearError () |
| |
|
|
static CBofPalette * | _pSharedPalette |
| |
|
static char | _szSharedPalFile [MAX_FNAME] |
| |
|
static int | _count |
| |
◆ CBofPalette() [1/3]
| Bagel::CBofPalette::CBofPalette |
( |
| ) |
|
◆ CBofPalette() [2/3]
| Bagel::CBofPalette::CBofPalette |
( |
const char * |
pszFileName | ) |
|
Constructor that loads a palette from a file
- Parameters
-
◆ CBofPalette() [3/3]
| Bagel::CBofPalette::CBofPalette |
( |
const HPALETTE & |
hPalette | ) |
|
Constructor that takes in an existing palette
◆ ReleasePalette()
| void Bagel::CBofPalette::ReleasePalette |
( |
| ) |
|
|
protected |
Deletes internal palette info
◆ loadPalette()
| ErrorCode Bagel::CBofPalette::loadPalette |
( |
const char * |
pszFileName, |
|
|
uint16 |
nFlags = 0x0000 |
|
) |
| |
Loads palette from specified bitmap-file
- Parameters
-
| pszFileName | Name of file to load palette from |
| nFlags | Flags for animation, etc... |
- Returns
- Error return Code
◆ setPalette()
| void Bagel::CBofPalette::setPalette |
( |
const HPALETTE & |
hPalette | ) |
|
Assigns specified palette to this CBofPalette
- Parameters
-
| hPalette | Handle to windows palette |
◆ copyPalette()
Create a new palette based on current palette
◆ initialize()
| static void Bagel::CBofPalette::initialize |
( |
| ) |
|
|
static |
initialize static class fields
◆ setSharedPalette()
| static ErrorCode Bagel::CBofPalette::setSharedPalette |
( |
const char * |
pszFileName | ) |
|
|
static |
Called only in response to "SHAREDPAL=filename" in a script file
- Parameters
-
◆ getSharedPalette()
| static CBofPalette* Bagel::CBofPalette::getSharedPalette |
( |
| ) |
|
|
static |
Returns the current shared palette
- Returns
- Pointer to shared palette
The documentation for this class was generated from the following file: