I'm in the process of making a PPC adventure game. I got it to work using bitblt and was happy and carefree 'till I started reading messages about how much bitblt sucks and how slow it really is compared to GAPI calls 
So, I decided to convert the rendering proecedures to utilise GAPI. Unfortunately, I have yet to come across clear instructions on the usage of Game API calls. So here's what I have right now:
1. Background picture is loaded into memory and is BitBlt-ed using SRCCOPY to destination
2. Mask picture is loaded and is Bitblt-ed to destination using MERGEPAINT
3. Sprite picture is loaded and Bitblt-ed to destination using SRCAND
The result is a properly-displayed sprite on a background.
Now, how exactly do I do this in GAPI? I would appreciate if you could give specific example code, rather than saying, oh just using GAPI OpenSurface() call or whatnot.
Thanks in advance for your help!
So, I decided to convert the rendering proecedures to utilise GAPI. Unfortunately, I have yet to come across clear instructions on the usage of Game API calls. So here's what I have right now:
1. Background picture is loaded into memory and is BitBlt-ed using SRCCOPY to destination
2. Mask picture is loaded and is Bitblt-ed to destination using MERGEPAINT
3. Sprite picture is loaded and Bitblt-ed to destination using SRCAND
The result is a properly-displayed sprite on a background.
Now, how exactly do I do this in GAPI? I would appreciate if you could give specific example code, rather than saying, oh just using GAPI OpenSurface() call or whatnot.
Thanks in advance for your help!