Well, I rant into a funny problem. No matter what turns i give into the matter, I can't seem to set 2 palletes in 2 layers. Actually, I can't define a color offset at all!
For example...
For example...
Code:
slPageNbg1((void *)NBG1_TILE_N1 ,0x00, PNB_1WORD|CN_12BIT);
and i have these define's
#define NBG1_CRAM ( VDP2_COLRAM + 0x00000 )
#define NBG2_CRAM ( VDP2_COLRAM + 0x00200 )
The second value of slPage is supposed to set the pallete location. Strangely, i tried various values (0x01, NBG1_CRAM, 0xFF, 0x200) and nothing really seems to work. It gives allways the same pattete, the one that starts at VDP2_COLRAM.
I could use direct VDP2 registry access, but as this is for the tutorials, so it would be nice to use SGL calls only.
*Edit, stupid error*
(Edited by TakaIsSilly at 9:48 pm on Sep. 14, 2001)