GP32 Mr.mirkos Sdk Replacement


How did you made the "sync" wait?
It seems to waits at 100Hz lcd rate the same time as at 50Hz <_<
 
Here is the complete error:
Code:
$ make
gcc zda_compressor.c -o zda_compressor zlib/zlib.a  -O2 -s
/Temp/ccHlaOEe.o(.text+0x1ce):zda_compressor.c: undefined reference to `_compress'
collect2: ld returned 1 exit status
make: *** [all] Error 1
 
bobintrees posted on Jul 1 2004 at 12:21 AM said:
Here is the complete error:
Code:
$ make
gcc zda_compressor.c -o zda_compressor zlib/zlib.a  -O2 -s
/Temp/ccHlaOEe.o(.text+0x1ce):zda_compressor.c: undefined reference to `_compress'
collect2: ld returned 1 exit status
make: *** [all] Error 1
If youre on windows, you need to compile zlib again. The provided zlib.a in zlib
is compiled under linux.

So go to zlib
type make there too.
 
Last edited by a moderator:
you shoudl note somewhere that you can acces gp32 functions via cpp per

Code:
#include "cpp_prototypes.h"

and i've got a question: how can i use new / delete with your sdk?

and: can i use abstract classes/inheritance with your sdk?
 
if you want to use c++ with mrmirko's sdk you should check this thread.

i'm going to ask mr mirko if he could add a new c++ example to the sdk.

my topic

btw: what about chaning the api to something like this:

you have a new type
Code:
struct gpSurface{
int width;
int height;
u16 *pixeldata}

and let your bmp2bin converter spit out a gpSurface.

and then use functions like:

Code:
//blits the whole surface
void gp_blitFull(gpSurface dest, gpSurface target, int x, int y);
//blits a part of the surface
void gp_blitPart(gpSurface dest, gpSurface target, int x, int y, int sourcestartx, int sourcestarty, int sourceendx, int sourceendy);

//the same with a transparent color
void gp_blitFullTransparentColor(gpSurface dest, gpSurface target, int x, int y, u16 transpcolor);
void gp_blitPartTransparentColor(gpSurface dest, gpSurface target, int x, int y, int sourcestartx, int sourcestarty, int sourceendx, int sourceendy, u16 transpcolor);

//the same with an alpha value
void gp_blitFullAlpha(gpSurface dest, gpSurface target, int x, int y, int Alpha);
void gp_blitPartAlpha(gpSurface dest, gpSurface target, int x, int y, int sourcestartx, int sourcestarty, int sourceendx, int sourceendy, int Alpha);

advantages are:
  • you don't have to remember w,h for every surface
  • you can also blit parts of a surface (eg: for big tilesets where you want to blit a small part)
this is just a suggestions.

i think it would be far more convenient if the converter also stores the height and width of a surface and you're able to only blit a part of it.
 
Last edited by a moderator:
generalnmx posted on Jul 10 2004 at 08:53 PM said:
Hmm, the MOD player included, can that only play Amiga Pro Tracker or also S3M, XM, and IT?
Only 4 channel amiga mod files are supported.
 
Last edited by a moderator:
no_skill posted on Jul 10 2004 at 03:30 PM said:
you shoudl note somewhere that you can acces gp32 functions via cpp per

Code:
#include "cpp_prototypes.h"

and i've got a question: how can i use new / delete with your sdk?

and: can i use abstract classes/inheritance with your sdk?
and i've got a question: how can i use new / delete with your sdk?
and: can i use abstract classes/inheritance with your sdk?

c++ has nothing to do with the SDK, its a compiler issue.
You can use all c++ things you want..

yes, new/delete is supported by newlib.


If you run into some compile problems with your c++ project, try
a other crt0.S file. ( the one in the help dir )
 
Last edited by a moderator:
thanks. i'll try the other crt0.s

new/delete was really just a compiler issue. the c++ example isn't really a c++ example :)

have you got my new one? will you put it in the next release? (after i fully got c++ working (there's still a strange bug that may be caused by the crt0)
 
no_skill posted on Jul 19 2004 at 07:50 AM said:
thanks. i'll try the other crt0.s

new/delete was really just a compiler issue. the c++ example isn't really a c++ example :)

have you got my new one? will you put it in the next release? (after i fully got c++ working (there's still a strange bug that may be caused by the crt0)
yes, there was a bug in my makefile, but it depends on what you want.
Plain c++, or a mixture of c and c++.
My example is more a mixture of c and c++,
yours is full c++, i update the Makefile to use the c++ as linker..
 
Last edited by a moderator:
i need full c++. (and i think that's what most c++ programmers want).

i wasn't able to use the other crt0s. (don't wanted to add the new mmu lib and the ads makefile is for ads aparently). only spent 5 minutes on that though.

but i have more imporant stuff todo atm anyway.
 
Hm... Im not sure that this question makes reason but: Is your chatboard code nigel browns implementation of another one?

So everyone is yelling about the "nigel brown version" but i do not found another one now ...
 
Tharo posted on Jul 23 2004 at 06:35 AM said:
Hm... Im not sure that this question makes reason but: Is your chatboard code nigel browns implementation of another one?

So everyone is yelling about the "nigel brown version" but i do not found another one now ...
The chatboard driver is a complete rewritten from spivvys original code.
I only use spivvys keymapping file.

Why you ask ?
 
Last edited by a moderator:
Hm because i would add script support in my engine the next week and think about it would be very smart to code the scripts while running the gp...

or generaly scripting support for some other stuff linke window guis and so on, too.
 
Back
Top