PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Why using GapiDraw ?!

Hi there... im a newbi programmer in the ppc CE field (not much a difference then Win32 :) )
but i have a question here , if writing a game , why should i use GapiDraw while the dll is 300k (affect my game size) and not using Gapi alone , only because im able to compile my game to any machine easyly ?! and also ,when you are writing games using GapiDraw , are u writing it directly to ppc or doing the "beta" for the PC (easier to work with , mouse , keyboard...) and if it works changing it to ppc ?!
otherwise , i dont understand why using Gapidraw :?: maybe someone will shed some light here ...
Thx mates...
GapiDraw has a multitude of useful functions that the normal gapi does not have. Normal gapi just gives you direct screen access, and thats it.

You shouldn't need to be sold on adopting Gapidraw, it just makes life easier. check out the documentation section on www.gapidraw.com and you will see the various functions it provides.
It's a lot harder to use GAPI directly than you think. For a start you have to deal with different screen ram layouts and you would also have to write all your own game-related functions. Using a toolkit like GapiDraw or PocketFrog saves you months of work so you can just get on with writing the game. In choosing a toolkit you should be aware that GapiDraw is the fastest & only fully supported toolkit though PF does have many good features.
alophind: There is a section on the GapiDraw web site labelled "Why should I consider GapiDraw when I can create my own graphics library in a couple of days?"

To find it, go to http://www.gapidraw.com

Click on "Overview" -> "Technical details". You will find the answer to your question there. I made this topic "Sticky" by the way...
alophind · 17 Jun 2003, 17:52 UTC — Cool , thx for all replies (I made it sticky.. LOL)
But i own the book "PocketPC game programming" and what i saw in it is that it isnt so difficult using gapi (maybe the guidence made it easier ?!)... i find it more difficult to draw the sprites and graphic for my games... LOL ....
alophind: All blit operations in GapiDraw are between 2-5 times faster than any of those presented in the book "Pocket PC Game Programming". On all devices. Creating a slow graphics library is simple.
That book is actually what inspired me to write PocketFrog. The author e-mailed me at one point saying how amazed he was at PocketFrog.

His stuff is good to learn, but it ain't the fastest thing around.
alophind · 18 Jun 2003, 11:54 UTC — Sweet...
Why did you stop developing pocketFrog (Or you didnt ?! :?: )
alophind: This thread is getting out of topic. You are welcome to email Thierry or post questions related to the PocketFrog API in its forum.
No need to police the threads so thoroughly surely, GapiDraw gets discussed in the PF forum regularly & no-one tells people to go elsewhere. It's not like there's competition going on here between libraries.
conan: I made the thread sticky just so people could find some interesting information on reasons to use one of the prebuilt libraries (such as GD or PF).. I did not want the sticky thread to contain a discussion why Thierry took a pause in his development of PF.. This thread is no longer sticky and is now a regular forum item.. Feel free to keep posting...
ok, understand the difference between sticky & normal now, I'm not forward enough to ask the question you posed but we all need a break from time to time :)
no worries.. :) I'll make another sticky thread later...
efortier · 18 Jun 2003, 16:38 UTC — Sweet...
alophind wrote:Why did you stop developing pocketFrog (Or you didnt ?! :?: )

I would also like to know more about the "backstory" of PocketFrog.

Why did you start the project, and why did you stop making it? What was the biggest challenge in creating it? Etc.

--Eric
I started working on PocketFrog because at that time I was jobless and was intrigued by the possibility of my new toy, a Casio E-125. Programming it was bringing me back memories of my days doing 6809 assembly on the Radio Shack CoCos.

I started sharing it on the net in the hope of having people contribute to the project. Your typical open source thing. Turns out that I was working alone.

GapiDraw was healthy competition. Sharing of info with other experienced developpers was a great thing.


But one day I realized I was working a lot on support and not getting anything back. I also figured out that all the nifty idea I would come accross for PocketFrog would be integrated in GapiDraw. (ex: the config structure, template techniques, and so on).

Don't get me wrong, I have nothing against GapiDraw (or SBL for that matter). I would have done exactly the same. The issue here is that SBL can't make GapiDraw open source because of legal matters. If it was different, I would have been also able to benefit from GapiDraw's code base.

The new "PocketFrog" will basically be a HAL (Hardware Abstraction Layer) that provides even faster performances then what is currently available. I won't provide source code to this low-level code. But rest assured that the high-level surface management and rasterizer code will stay.
I was also one of those people programming on the Motorola 6809 but in the UK it was the Dragon not the CoCo ( but almost identical ) and after that the 68000 on the Atari ST. Nowadays I don't get interested in the low level stuff as far cleverer people than me are contactable thanks to the WWW.
Off topic, on topic... I'm the guy with the gun! :)

Thierry, one question about the new PF... why have you choosen not to give out the source for the HAL? It's of course your choice and I'm not about to criticize you after all you've given freely, but I'm curious as to why you are doing this, exactly BECAUSE you have given to freely in the past.
I won't provide the source mainly for the following reasons:

1) It takes a lot of my time to prepare the distribution packages.
2) I have to answer countless email from people asking why the compilation is failing on their system. A lot of them are actually modifying the code.
3) Providing the source code hasn't given me anything in the past. My expectation was to get both contributions and bug fixes, this hasn't happened. (Although when I stopped supporting PF, a few contributions were made such as a sound system and font support.)
4) Some information was provided and/or traded to me under the condition that I didn't publish the source code. It wouldn't be fair to turn my back on these people and publish their work.

By providing a low-level HAL in binary form and a high-level API in source form (Current PocketFrog), I believe the best compromise is attained.
That sounds perfectly reasonable, and noble of you! :)

This begs the question though, what kind of license will PF be at that point? I guess the high-level portion will still be LGPL, but the HAL obviously can't be. Any thought to that at this point?
Current plan is to distribute it freely, both with or without the high-level stuff.