tbx
0.7.3
|
Class for a sprite colour translation table. More...
#include <sprite.h>
Public Member Functions | |
TranslationTable () | |
Construct an empty translation table. | |
bool | create (int mode, const ColourPalette *pal=0) |
Create a colour translation table for the given screen mode and optional palette. More... | |
bool | create (const UserSprite *s) |
Create a colour translation table for mapping a user sprite to the current screen mode. More... | |
bool | create (UserSprite *source, UserSprite *target) |
Create a colour translation table to map from one sprite to another. More... | |
bool | create (const WimpSprite *s) |
Create a colour translation table for mapping a wimp sprite to the current screen mode. More... | |
unsigned char * | data () const |
Return a pointer to the translation table data. | |
Class for a sprite colour translation table.
The table is used to convert the colours from a sprite to the screen or from one sprite to another
bool TranslationTable::create | ( | int | mode, |
const ColourPalette * | pal = 0 |
||
) |
Create a colour translation table for the given screen mode and optional palette.
mode | screen mode for palette |
pal | colour palette to translate or 0 (the default) for the default palette for the mode |
bool TranslationTable::create | ( | const UserSprite * | s | ) |
Create a colour translation table for mapping a user sprite to the current screen mode.
s | UserSprite to create the table for |
bool TranslationTable::create | ( | UserSprite * | source, |
UserSprite * | target | ||
) |
Create a colour translation table to map from one sprite to another.
source | source user sprite that will be plotted |
target | target user sprite |
bool TranslationTable::create | ( | const WimpSprite * | s | ) |
Create a colour translation table for mapping a wimp sprite to the current screen mode.
s | WimpSprite to create the table for |