#66109 - TomschikSimon - Sun Jan 08, 2006 9:12 am
Is there a possibility to change the palette for textures. I've tried to set the palette before selecting the texture, but it seems, that only the first palette that I write is used. Is there a register to set the location from where the palette is read.
Code: |
vramSetBankE( VRAM_E_LCD ); dmaCopy( pTexture->pPalette, VRAM_E, 256 * 2 ); vramSetBankE( VRAM_E_TEX_PALETTE ); // Select the Texture glBindTexture( GL_TEXTURE_2D, pTexture->iTexID ); |