#167535 - SturmxHawke - Tue Mar 17, 2009 5:30 pm
Hello, I've been looking around the interwebs for a while, have found some tutorials, but I'm not sure I've found something that works yet. I'm trying to use extended palettes on sprites, but so far I've only seen it used on BackGrounds, is it even possible to use on sprites and if it is, then can someone either point me in the right direction or explain to me how it's done?
So far I have this:
_________________
Who's that?
It's superdude!
So far I have this:
Code: |
void X_copyExtPal(const unsigned short * pal, int palnr, int size, int screen)
{ if (screen == 1) { vramSetBankG(VRAM_G_LCD); memcpy(VRAM_G, pal, size); vramSetBankG(VRAM_G_SPRITE_EXT_PALETTE); } if(screen == 0) { vramSetBankI(VRAM_I_LCD); memcpy(VRAM_I, pal, size); vramSetBankI(VRAM_I_SUB_SPRITE_EXT_PALETTE); } } |
_________________
Who's that?
It's superdude!