I have PocketGL working inside PF.
Currently I copy PocketGLs buffer to PocketFrog's buffer for blitting but I realised (once I heard that another PGL user had pointed PGL to using GapiDraw's back buffer) that I should be doing something similar in PocketFrog to save on a big copy every frame.
The PGL data is created as follows:-
header file has
extern unsigned short VScreen[DISP_X*DISP_Y]
and the PGL cpp has
unsigned short VScreen[DISP_X*DISP_Y]
and what I want to do is get that data blitted without having to lock, copy, blit, unlock in PF as this takes too long
Having spent a couple of hours messing with my code ( & thank goodness I made a backup first ) I still don't see how to get this to happen.
I thought I could get PGL to simply look at PFs back buffer in some way or get PF to treat PGLs data as a surface so it could be blitted but my C++ is letting me down
Does anyone have any suggestions on how to approach this?
thanks in advance