GP32 Okay - I'm Going Colour Mental


fdave

Final Dave
Joined
Apr 20, 2004
Messages
331
Website
www.finalburn.com
Can someone put a very confused man out of his misery please! :)

What is the 16-bit colour format on the GP32. It doesn't look like a standard 565 or 555, but I can't for the life of me shuffle round the bits to somewhere which looks right

the blue (at least) always seems washed out....

it is RRRR RRGG GGGB BBBB0 or something?

also - does GeePee32 and the real hardware both agree?
 
It's RRRRRGGGGGBBBBBI, where I is an intensity setting.

I've never used GeePee32 that much, so I can't be sure but I think it's pretty good with graphics emulation.
 
Oh and here is a useful color macro. Just give it regular 24bit RGB values.

Code:
#define GP_RGB16(r,g,b) (((((r>>3))&0x1f)<<11)|((((g>>3))&0x1f)<<6)|((((b>>3))&0x1f)<<1))
 
Daz_Genetic posted on Apr 25 2004 at 06:56 AM said:
Oh and here is a useful color macro. Just give it regular 24bit RGB values.

Code:
#define GP_RGB16(r,g,b) (((((r>>3))&0x1f)<<11)|((((g>>3))&0x1f)<<6)|((((b>>3))&0x1f)<<1))


Got it now - I was doing this
b=cram&0xe00>>4;

ARGHHHH! doh!
(should be b=(cram&0xe00)>>4; you see)


Yeah what does the intensity bit do? 1= brighter?
 
Last edited by a moderator:
Back
Top