- December 30, 2008 at 5:20 am #29658
in your windows emulator , we use .pod file from our own .max file, but can’t load it, the file path is right , I have check the projects found that this may be arise from you own .pod file has a .cpp file with the same name , just like the projects in openGLES1.1 demo (windows emulator) (the path is ../ PowerVR SDKOGLES-.1_WINDOWS_PCEMULATION_2.03.23.1162DemosPolyBumpOGLESContent) , in the head of this file the comment told that// This file was created by Filewrap 1.0
// Little endian mode
// DO NOT EDITwhat Filewrap is ??and how could we create file like this from our .max file.December 30, 2008 at 2:04 pm #32557
warmiMemberYou will find this utility in the UtilitiesFilewrap folder. It simply creates C/C++ header files out of binary data.Imagination TechnologiesPowerVR SDKOGLES-1.1_WINDOWS_PCEMULATION_2.03.23.1162UtilitiesFilewrapJanuary 5, 2009 at 11:38 am #32558
If you don’t need the existing POD file you can simply remove the .cpp file in the Content directory from the project.
The idea behind Filewrap is the ability to “link files into the application binary”. That way you don’t have to worry about the location of various resource files or losing them when you copy the executable, and it makes it easier to port apps to platforms that don’t have a file system.
The utility can create a .cpp file from any file (though your compiler may have a size limit). If you compile and link this .cpp into your application it will create a “memory file” at application startup time by virtue of static object constructors.
To access these “files” you can use the CPVRTResourceFile class in our PVRTools library. Note that the memory file system doesn’t have folders, so every file name needs to be unique.