Input file structure
The input file for the EiffelMedia resource generator is an XML file. For an example look at the file resources.xml in {EM}/examples/resource_loading.
The XML file has the same stucture as the input files of the settings generator.
The following tags are valid:
-
Section
You have to specify at least one section in your XML file. This tag requires the attribute "name" to specify the name of the section.
-
Resource
In the "Resource" tag you have to give "type" (see supported types), "name" and "path" as attributes. For TrueType Fonts, you can also specify "point_size" (default value is 15).
-
Prefix
This tag is optional and can be used to specify prefixes for the attributes in subsequent tags.
For example, if you specify a prefix 'path="images/main/"' in this tag, and in a subsequent resource tag you have an attribute 'path="pic1.png"', then this will result in the path "images/main/pic1.png".Note: The program does not check what kind of prefix you specify. So prefix 'path="images/main"' and attribute 'path="pic1.png"' will result in "images/mainpic1.png" (note the missing '/'), which you probably don't want.
Supported Types
The EiffelMedia resource generator supports the following types of resources:
-
image
(Generates EM_BITMAP)
-
animation
(Generates EM_ANIMATION)
-
sprite
(Generates EM_SPRITE)
-
music
(Generates EM_MUSIC)
-
sound
(Generates EM_SOUND)
-
bmp_font
(Generates EM_BMP_FONT)
-
ttf_font
(Generates EM_COLOR_TTF_FONT)