PocketMatrix forums

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

Can someone help me with Loader info?

I am very unexperienced with using libraries. I want to draw a PNG to a PF surface on the desktop. I was told I could use LIBPNG. However, I was also told I need a "loader" (??). Could someone please help me? Does one already exist?
I could really use someones help on this.
Anybody? I am willing to make a donation to someone's paypal account if they can this for me. However, perhaps no one here knows how to do this. That's alright if this is the case.
You can use gif. It's just what we do, since png doesn't work on a desktop.
I was under the impression that PNG could work on the desktop, BUT you need to use an external LIbrary like LIBPNG
It's not just like that "use". You'll have to setup pnglib to produce exactly what pocketfrog wants. Pnglib is overcomplicated to me.
mmtbb,

Are you creating your game for the desktop, or do you only want to test it on the desktop? If it's the latter, you can do the following:
Code:
#if defined(_WIN32_WCE)
#define IMAGE_FILE1 "res\\png\\file1.png"
#else
#define IMAGE_FILE1 "res\\bmp\\file1.bmp"
#endif

This is what I've done with my games. If you plan to keep the images as files instead of resources, it's a good way to go. If you want them to be resources, you might as well convert them to GIFs. Then they'll work on both platforms and you only need one copy.

-John
I use almost that exact code right now. However, I am developing for the desktop and PPC with PPL. PPL uses PocketFrog. I would like to use the same files for both. There has to be an way to do it with some smart person's help.
Well, it's been figured out. I knew it was possible. tootles.
PointOfLight · 24 May 2007, 12:24 UTC
Any chance you could share how you did it?