This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Getting started with the GX library/GAPI


Getting started with the GX library/GAPI

Postby mv » Mar 13, 2001 @ 9:05pm

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>
MV
mv
pm Member
 
Posts: 2
Joined: Mar 13, 2001 @ 9:05pm


Re: Getting started with the GX library/GAPI

Postby Moose or Chuck » Mar 14, 2001 @ 7:28am

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.
Moose or Chuck
 


Re: Getting started with the GX library/GAPI

Postby Dan East » Mar 14, 2001 @ 8:54am

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: Getting started with the GX library/GAPI

Postby mv » Mar 16, 2001 @ 7:23pm

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.
MV
mv
pm Member
 
Posts: 2
Joined: Mar 13, 2001 @ 9:05pm


Re: Getting started with the GX library/GAPI

Postby Dan East » Mar 17, 2001 @ 8:22am

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
User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Re: Getting started with the GX library/GAPI

Postby Ian Ferguson » Apr 27, 2001 @ 11:44am

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
Ian Ferguson
 


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron