I've been experimenting with different methods of loading the map on the fly as the player moves (for maps bigger than the VDP limit), and I had the idea of using a 2D array of pointers to palettes PAL0-3, so I could use all palettes on a single plane with VDP_setMapEx() pulling the palette from the array based on the camera tile coordinates. The problem I'm having is creating the pointers, I guess my understanding of the Palette structure is wrong?
I declare the pointer with
Code: Select all
struct Palette *PAL1ptr; // Palette #1 pointer
Code: Select all
PAL1ptr = &PAL1;
Code: Select all
main.c|317|error: lvalue required as unary '&' operand|