Re: HL1 For other platforms? -
05-09-2005
I think it means 256 entries of 3 bytes, but thats working now I have a pointer to the palette.
The only problem now is converting it to a bitmap, I have next to no experience with images so this will take me a bit longer to figure out.
I think its something like...
u32 Pixel = SDL_MapRGB( format, palette[ pixel_data[ i ] ], palette[ pixel_data[ i + 1 ] ], palette[ pixel_data[ i + 2 ] ] );
Btw, this is in a seperate app now as I want to make sure it works before trying it in quake.
Unfortunately I get nothing but garbage in the screen.
|