This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Embedding graphics...


Embedding graphics...

Postby brendan » Feb 19, 2002 @ 12:34am

Hello all, I've some pics that I wan't to emmbed into my game, at the moment they are .jpg, I assume it's best to convert to .tga, then gzip so I can use teh easyce stuff to decode etc. my question is how do I add them as a resource with evC, so I'm not loading them from a file off of the system, and how do I reference them with the easyce funcs. some code examples would be great etc :wink:

-thanks
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


using resources

Postby golan trevize x » Feb 19, 2002 @ 11:06pm

There's a bit of code in a previous on these forums for loading a TGA from resource. Even with that, it took me a while to figure it all out. But it can be done.

If you want to load a Gzipped file from resource, that's harder. Sure you can get the memory pointer, but then what? The nice gzopen, gzread functions from zlib only take file names. I fiddled around with this uncompress method for hours before giving up and sticking with separate files.
golan trevize x
 


solution ?

Postby brendan » Feb 19, 2002 @ 11:20pm

What it, wait for it.... What if you write the resource to a temp file on the PDA, then use it... then delete it when the program has finished with it, shutdown..... ?

good idea or what, and don't say "or what" :)

-Brendan
User avatar
brendan
pm Insider
 
Posts: 451
Joined: Oct 23, 2001 @ 2:51am
Location: Hobart, Australia


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum