3D object coordinate

Hi!


I’m developping a 3D application with the API opengl es 2.0. When i download the powerVR SDK to work with, i found that there is a table that contain value like this


0x3e8,0xb,0x502e4241,0x322e444f,0xe800302e,0x800003,0xea000000,0xd3000003,0x62000003,0x65786946,0x696f5064,0x303d746e,0x6e49620a,0x65786564,0xa313d64,0x746e4962,0x656c7265,0x64657661,0x620a313d,0x74726f53,0x3d787456,0x54620a30,0x65676e61,0x7053746e,0x3d656361,


I would like to know how to generate this number.


Great thanks!

rch wrote:
Hi!
I'm developping a 3D application with the API opengl es 2.0. When i download the powerVR SDK to work with, i found that there is a table that contain value like this
0x3e8,0xb,0x502e4241,0x322e444f,0xe800302e,0x800003,...
I would like to know how to generate this number.
Great thanks!

 

Hi,

 

The 'table' was generated using the SDK's Filewrap utility located in UtilitiesFilewrap. Filewrap takes a text or binary file (in your example a .pod file) and generates a C++ source file that can be compiled and linked into your application.

 

For instructions on how to use it please see the 'Memory File System and FileWrap' section in the SDK user guide.

 

Thanks,

 

Scott
Scott2010-04-08 15:44:52

can i generate the .pod file with the .cpp file? any tools?

Hi.





You can use the Memory File System tools bundled with the SDK to access the contents of this file as a char* buffer, and save this out using standard C IO functionality.





Something like this:







char* pBuffer;

size_t BufferSize;

CPVRTMemoryFileSystem::GetFile(MEMORY_FILE_NAME, &pBuffer, &BufferSize);



FILE* pFile = fopen(“PODFile.pod”, “wb”);

fwrite(pBuffer, 1, BufferSize, pFile);

fclose(pFile);

[/CODE]<br /> <br />char* pBuffer;<br /> <br />size_t BufferSize;<br /> <br />CPVRTMemoryFileSystem::GetFile(MEMORY_FILE_NAME, &pBuffer, &BufferSize);<br /> <br /><br /> <br />FILE* pFile = fopen("PODFile.pod", "wb");<br /> <br />fwrite(pBuffer, 1, BufferSize, pFile);<br /> <br />fclose(pFile);<br /> <br />