PocketMatrix forums

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

What's the difference between PF, PH, PF(PH ed)?

Hello!

Sorry guys for my newbie's question. But I still(!) 8O do not understand what's the difference beetween PocketFrog 7.x, PocketHAL and PocketFrog 8.x(HAL edition) and in what cases should I use the specific sdk to develop an app for pocket pc and serie 60 devices...

Looks like I can write a prog in any of those sdks? But why do I need 3 sdk(!) not 1 cross-platformed sdk? :roll: What's the difference between those?
Please enlighten me. Thanks
PocketFrog 0.7.0 uses GAPI.

PocketHAL is a replacement for GAPI (much faster).

PocketFrog 0.8.0 uses PocketHAL.

:)
also, phal is just a framebuffer - you have to write code on a pixel basis.

Pf is a graphics library which can do bitmap based things.

hope that makes sense.
The two explanations given are accurate and quite clear, but for the newbies, let me expand a little bit...

As fast_rx said, PocketFrog is a library of graphics functions. Things like drawing circies, blitting bitmaps, rotating surfaces, collision detection, etc. All of that is contained in PocketFrog (any version, PocketHAL edition or otherwise).

PocketHAL, as Presto said, is a replacement for GAPI. In other words, PocketHAL will give you a pointer to an area of memory where you write out graphics for display. When using PocketHAL, *YOU* will have to write all the functions named above, and whatever else you want.

PocketFrog 0.8.x is the best of both worlds... It's the library component of PocketFrog, but it uses PocketHAL instead of GAPI under the covers. If you are using PocketFrog, you will 98% of the time not care (from a programming standpoint) whether it's using GAPI or PocketHAL, the code you write will be the same. You of course WILL care in terms of performance because PocketHAL is so much faster than GAPI, and in some situations you might care from a code standpoint, like direct surface nanipulations (which should be a lot easier with PocketHAL because it's linear).

I don't think there's any reason to be using PocketFrog pre-0.8.x. The only reason I can think of is if you want a completely free product (PocketFrog based on PocketHAL is "donateware", more or less... Not sure if Thierry has a different name for it :) ). If you are interested in writing your own library from scratch, PocketHAL will make that task easier and help maximize potential performance.
I don't think there's collision detection built-in...

Maybe this should be a sticky post? Weren't there some stickies a while back?

edit: I guess the Rect and Point code can be used for collision... I was thinking of the per pixel collisions when I originally posted...
Thanks guys! Now it's clear to me.
The only reason I can think of is if you want a completely free product (PocketFrog based on PocketHAL is "donateware", more or less...


Can you say something more about this, is it a must to donate if you use it in commercial application, or is it your choyse to donate or not.
Correct me somebody if I'm wrong.

But for the last time I heard of it the conditions were the following:

You can use it in non-com/commercial product, BUT if you want to make it logo free (PocketHAL logo), you should donate some. :wink:
Donations are just that: donations. So no, you don't have to make one.
But you don't get a banner-free pockethal then :).
Hello,

How does pocket frog integrate the latest release of pocket hal? do you have to replace some code files / libs ? (because PH is ahead of PF with several years?!)

Thanks.