***************************
void slCurColor((Uint16)Palette)
***************************
************************** Changes
Function:
Specifies the palette number for the text displayed by "slPrint???()" and
"slDisp???()".
Specify a number from 1 to 15 for the palette.
****************** End of Changes
Yes, a tile is the 8*8 pixel basic building block of backgrounds in non-bitmap modes
static Uint16 palette[32] = {
0x0000, // background color slCurColor(1);
0x1111, // text color slCurcolor(1);
0x0000,
0x2222,
0x0000,
0x3333,
0x0000,
0x4444,
0x0000,
0x5555,
0x0000,
0x6666,
0x0000,
0x7777,
0x0000,
0x8888,
0x0000,
0x9999,
0x0000,
0xAAAA,
0x0000,
0xBBBB,
0x0000,
0xCCCC,
0x0000,
0xDDDD,
0x0000,
0xEEEE,
0x0000, // background color slCurColor(15);
0xFFFF, // background color slCurColor(15);
0x0000, // Not sure yet??
0x0000, // Not sure yet??
};
slDMACopy( (void*)palette, (void*)0x25f00000, sizeof(palette) );
slCurColor(5);
#include <sgl.h> // get the vram/palette defines.
int replace1color(Uin16 *color){
Uint32 *palette1=COL_RAM;
palette+location_of_color_white=color;
// i'm guessing 1 color is 2 bits?
return(0);
}