PocketMatrix forums

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

PocketFrog or GapiDraw?

This has probably already been asked a million times but for those that have used both libraries, are there any reasons to use one over the other? Level of difficulty doesn't matter to me (I can handle it). Just want to get a good feel for what people think before I dive into these libraries
Hi,

"Why would I use product X instead of product Y?" is always an interesting question. You will most likely get as many replies as there are users.

Both libraries you asked about are stable and equally as fast. Getting into a pissing contest over features is irrelevant, because more often than not you will not need every single feature offered by an SDK anyways. I would suggest:

(1) Design your game on paper. List all the features you need from a graphics library.
(2) Check if those features are supported, or will be supported within the close future by each library.
(3) If a feature is not supported by one of the SDKs, check how difficult it would be to add it yourself by expanding the SDK.

Both libraries use the concept of "surfaces" when working with pictures, buffers and displays. The only major difference between the libraries that comes to mind are the way parameters are managed for each operation.

In PocketFrog, you:
(a) Create an object from the Surface class
(b) Create a separate rasterizer object and connect it to the surface object using SetRenderTarget().
For each operation:
(c1) Set parameters such as "all future operations will use an opacity of 50%" to the rasterizer object.
(c2) Blit, draw lines, etc using the rasterizer object.

In GapiDraw, you:
(a) Create a surface object from the CGapiSurface class
For each operation:
(b1) Create a struct containing the parameters for the next operation
(b2) Call the blit, draw line, etc operation using the surface object, sending the struct as a parameter.

Some people do not like to use a struct in every single operation, and some do not like to use rasterizers. Once you have decided what you like to use, check the feature list for that SDK and just go for it.

[Updated] Fixed the description of how rasterizers work in PocketFrog.

/Johan
Conan · 08 Sep 2002, 18:48 UTC — Which Library ?
Having 'been there' just a few months back I guess I should add my twopenny worth.

I chose PocketFrog for 2 reasons:
1. I could understand the code ( it's not huge and it's easy to get in to.
2. It supports Jornada 710/720 HPC devices ( I'm a fan of the HPC machines and would always want an HPC version of my games even though the PocketPC's are in such dominance.

GapiDraw is a much fuller 'product' with many more functions than PocketFrog but like EasyCE my brain did not follow some stuff so I never managed to get anything working. ( It's no doubt my brain and not the toolkit's at fault here. I'm lazy so if something will not download and work with only a little effort I tend to drift on to something else )

Performance wise there's nothing in it. So long as you are happy working with surfaces either toolkit is fine. Support is good for both.

Whatever you decide to go with you should go 100% as you will save time by not wandering between toolkits. They all work so pick the one which fits you best & go....

Just remembered: read the license terms. That was another deciding factor for me. I can't spend a year writing a game for commercial release unless I know I have no issues with the rights to use & GapiDraw does have a slight drawback here over PocketFrog.
Correction about PocketFrog: there is no such thing as subclassing a Surface from Rasterizer. A Surface and a Rasterizer are two independant classes. The Surface wraps the memory (graphic buffer) and provide Locking/Unlocking of the buffer.

The rasterizer is something else that connects to a surface (current render traget) and use it as the destination for rasterization functions (lines, circles, blits...)
Sorry, my mistake.. I'll update above...
Regarding the GapiDraw license issue. I have just now posted a reply on the GapiDraw web forum that comments on this:

http://forums.pocketmatrix.com/viewtopic.php?t=7474

/Johan