An ITX file is Marmalade's built-in file format that can be used for loading all kinds of data into our program. The extension ITX is short for Ideaworks TeXt; Ideaworks being the original name of the company that created the SDK before they rebranded themselves as Marmalade.
ITX files have a simple text format and are used as the basis for resource loading. While it is possible to load resources ourselves, it is a bit like reinventing the wheel when Marmalade already provides a great deal of support for this truly tedious aspect of coding.
Marmalade has an API called IwUtil that contains a wide range of useful utility functions ranging from memory management and debugging through to the serialization of objects and random number generation. It also contains a class called CIwTextParserITX
, which allows us to load and process an ITX file.
To add this functionality to our own project, we just need to add iwutil
to the subprojects
list of the MKB file and then add...