GP32 two screens???


nigelibrown

Member
Joined
Jan 7, 2004
Messages
149
Age
53
Location
Bristol, England
Website
www.nigelibrown.pwp.blueyonder.co.uk
I am using a 16bpp mode and the graphic background I conveted with GP32 Convert, is displayed as two quater size images on the left of the screen?

#include "image.h"

GpGraphicModeSet(GPC_DFLAG_16BPP, NULL);

GpLcdSurfaceGet(&gpDraw[0], 0);
GpLcdSurfaceGet(&gpDraw[1], 1);

GpSurfaceSet(&gpDraw[0]);
GpLcdEnable();

while(1) {

GpBitBlt( NULL, &gpDraw[flip], 0, 0, 320, 240, image, 0, 0, 320, 200 );

GpSurfaceFlip(&gpDraw[flip]);
flip = 1 - flip;

n_tick = GpTickCountGet();
while((GpTickCountGet()-n_tick)<1000);

}
 
you also have to link your prog with -lgpgraphic16

ans if you use gcc, add also an #include <gpgraphic16.h> in your cource ;)
 
I remember having seens that link before on this board. if you search this board I am sure you will find the link.
 
I am confused as to where I may get an answer to the problems I am having? Search returned nothing for gpgraphic16 apart from this post and another on linux, that failed to identify a link either. What development env are people using? where can I get the latest version? Does it include installation instructions?
 
16bits gfx libs for gcc can be downloaded from www.deadcoderssociety.tk
 
Back
Top