I have been working on a bit of code for my shiny new GP32 and am having a problem.
Thing is I have never used C/C++ before to do anything - I'm from a 68k ASM background.
I have a basic screen setup and it displays nicely (I'm using devkitadvance btw). Got some basic drawing and loading of images displaying correctly - however I have an issue as I want to be able to continuously move a block of the screen.
eg.
do
move x,y to x-1,y
loop
I know this is not in C/C++ but it gives the idea. I have tried using GpBitBlt but I just get garbage back. I assume this is because the output needs to be designed on one flip and then blitted to the other?!
My best guess was to use a command like :
GpBitBlt (NULL, &gpDraw[1], sx, 210, 150, 10, &gpDraw[0], 0, 210, 150, 10);
but this doesn't appear to work. I'm guessing the Bolded part is wrong
I have been fiddling for a couple of hours now. Any help/pointers would be greatly appreciated.
In the mean time I'll persevere
Thing is I have never used C/C++ before to do anything - I'm from a 68k ASM background.
I have a basic screen setup and it displays nicely (I'm using devkitadvance btw). Got some basic drawing and loading of images displaying correctly - however I have an issue as I want to be able to continuously move a block of the screen.
eg.
do
move x,y to x-1,y
loop
I know this is not in C/C++ but it gives the idea. I have tried using GpBitBlt but I just get garbage back. I assume this is because the output needs to be designed on one flip and then blitted to the other?!
My best guess was to use a command like :
GpBitBlt (NULL, &gpDraw[1], sx, 210, 150, 10, &gpDraw[0], 0, 210, 150, 10);
but this doesn't appear to work. I'm guessing the Bolded part is wrong
I have been fiddling for a couple of hours now. Any help/pointers would be greatly appreciated.
In the mean time I'll persevere