Project Home
Project Home
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Generating .c files with PhImage_t structures from graphics files: (2 Items)
   
Generating .c files with PhImage_t structures from graphics files  
I've got an application that uses a large number of image files & would like to build them directly into my application 
instead of having to load them from the filesystem inside the app. 

Does anyone know of a program that will allow me to generate the requisite PhImage_t structures in source code from my 
windows/linux box for inclusion in the build? Ideally this would generate the structures as a C file as a pre-compile 
step. I could write one; but would rather save unnecessary effort.

Is the source code to PxLoadImage available?

I could also be taking completely the wrong approach, as I'm relatively new to QNX. Anyone have any better approaches?
Re: Generating .c files with PhImage_t structures from graphics files  
There is a sample code (img2c.c) in this discussion:
http://community.qnx.com/sf/discussion/do/listPosts/projects.graphics/discussion.graphics_source_code.topc8623
You can try to see if this would fill your needs.