Page 1 of 1

Getting started with the GX library/GAPI

PostPosted: Mar 13, 2001 @ 9:05pm
by mv
G'day,<br><br>When I try compiling some source code that has the include gx.h, the compiler stops and complains about the following line ?:<br><br>GXDLL_API GXDisplayProperties GXGetDisplayProperties();<br><br>Is there something I should be removing from the compiler options?<br>

Re: Getting started with the GX library/GAPI

PostPosted: Mar 14, 2001 @ 7:28am
by Moose or Chuck
I'm not sure... try redownloading the files from:<br>http://www.microsoft.com/mobile/downloads/developer/gapi.asp<br>and put them into the appropriate directories, make sure the LIB is in there too. I'm sure you knew all of that, but whatever.

Re: Getting started with the GX library/GAPI

PostPosted: Mar 14, 2001 @ 8:54am
by Dan East
Unfortunately there isn't much info out there. MSDN basically contains just the function reference. MS does have a single example that shows how to draw a blank screen using GAPI. Wow, thanks Microsoft.<br>I will be posting the source to Pocket Quake 0.051 today. It has pretty good, all purpose GAPI routines. The portions of interest are:<br>vid_ppc.c:<br>RGB565()<br>RGB555()<br>VID_SetPalette()<br>VID_GetScreenBuf()<br>VID_ReleaseScreenBuf()<br>VID_Update()<br><br>Dan East

Re: Getting started with the GX library/GAPI

PostPosted: Mar 16, 2001 @ 7:23pm
by mv
Moose, did that (lib placing, etc)<br><br>Dan, d/l the src but no joy.<br><br>I'll try looking for some sample code in msdn.<br><br>Thanks.

Re: Getting started with the GX library/GAPI

PostPosted: Mar 17, 2001 @ 8:22am
by Dan East
Mark, if you are including gx.h in a C build (as opposed to C++), then you will get compilation errors. Microsoft did not write gx.h so it will compile under C. You have to modify gx.h by adding struct to the following 2 function prototypes so they read as follows:<br><br>//The following two lines modified by Dan East to make this header C compatible:<br>//Added "struct" to the following two prototypes:<br>GXDLL_API struct GXDisplayProperties GXGetDisplayProperties();<br>GXDLL_API struct GXKeyList GXGetDefaultKeys(int iOptions);<br><br>Dan East

Re: Getting started with the GX library/GAPI

PostPosted: Apr 27, 2001 @ 11:44am
by Ian Ferguson
Thanks Dan for posting the source. I will take a good look at your GAPI routines. I have already looked at Jakko B's Lemmings source so it's starting to become clearer. ( I'm an assembler programmer who was forced to use C & now C++ so using GAPI should be almost like the old days )<br><br>Ian