I would like to know how to load external files into the buffer!
Thank you.
currently i try that:
void GpMain (void * arg)
{
/* HANDLES and stuff */
F_HANDLE imagefile; // File Handle
char * imgbuff;
ulong prc;
/* Open File */
GpFileOpen( "myst/base0.raw", OPEN_R, &imagefile );
/* Copy HANDLE to buffer */
GpFileRead( imagefile /*external file*/, &imgbuff /*thepicture*/, 320 * 240 /*screen size*/, &prc);
but al i get is a blank screen when i use the buffer
Thank you.
currently i try that:
void GpMain (void * arg)
{
/* HANDLES and stuff */
F_HANDLE imagefile; // File Handle
char * imgbuff;
ulong prc;
/* Open File */
GpFileOpen( "myst/base0.raw", OPEN_R, &imagefile );
/* Copy HANDLE to buffer */
GpFileRead( imagefile /*external file*/, &imgbuff /*thepicture*/, 320 * 240 /*screen size*/, &prc);
but al i get is a blank screen when i use the buffer