16bit Routines Issue


Alessandro

Member
Joined
Apr 2, 2004
Messages
127
Age
46
Location
Liguria, Italy
Website
Visit site
Yo
I'm using the devkitadv and the minigp32 SDKs and everything works right..

I've seen, reading the GP32SDK Api Reference, that there are routines specific for 16bit modes (like GpRectFill16, GpBitBlt16,... ) but I can't get them to work, since there's no gpgraphic16.h and no gpgraphic16.a in the devkits.. :huh:

Can somebody please helpme?!

Best regards
Alessandro
 
http://www.gp32x.de/board/index.php?showtopic=1727&hl=

from what i remember...

edit C:\devkitadv\gp32.mk (this is for Rico's devkitadvance!)

where its says:

GPLIBS=-lgpsdk -lgpgraphic -lgpmem -lgpos -lgpstdlib -lgpstdio -lgpsound -lgpfont -lgpg_ex01

add -lgpgraphic16 and -lgpfont16 to the list

then extract the .a to:

C:\devkitadv\arm-agb-elf\lib

and yes, extract the .h and .c to:

C:\devkitadv\arm-agb-elf\include\gp32

the last bit if i remember correctly, you have to 'make' the MakeFile:

C:\devkitadv\arm-agb-elf\lib\gpsdk\MakeFile

good luck!
 
Last edited by a moderator:
Thanks Ksmiler
Now I got it to work.. but as the other guys reported, I have issues with GpPointSet16.. It's working right with GpRectFill16, (i see the reft filled on the screen, but if I use the GpPointSet16 i have nothing) :blink:

Hope you can help.

Thanks again.

Later
Alessandro
 
GpPointSet16 indeed has issues. Just use your own routine like this one:

Code:
void PutPixel16(int x, int y, int c)
{
	unsigned short *p_buf;
	p_buf = (unsigned short *)(gpDraw[nflip].ptbuffer);
	*(p_buf + x*240 + (239-y)) = c;
}

I can not take credit for this routine, but I took it from someones GP32 site so long ago I can't remember who it was. Sorry for this :unsure:
 
Back
Top