How does PocketQuake map a 24bit RGB colour to the video buffer?
(vid_ppc.c)
The value stored in *vid.buffer is the index value used by vid_curpal. Where vid_curpal contains the re-mapped RGB number or a palette index (if HP525). So vid_curpal[*vid.buffer] returns either RGB565 or RGB555 or PaletteIndex.
Where, when, how is vid.buffer set to the index value?
(vid_ppc.c)
The value stored in *vid.buffer is the index value used by vid_curpal. Where vid_curpal contains the re-mapped RGB number or a palette index (if HP525). So vid_curpal[*vid.buffer] returns either RGB565 or RGB555 or PaletteIndex.
Where, when, how is vid.buffer set to the index value?