2
@page xml_imageset Imageset XML files.
5
An Imageset is a collection of named regions upon some source surface, such as
6
an image file or texture. In CEGUI terminology, each of these named regions is
7
an Image and is the basic level of imagery used by CEGUI.
10
@section xml_imageset_overview Overview
11
The reference for each element is arranged into sections, as described below:
13
- This section describes what the elements general purpose is within the
17
- This section describes available attributes for the elements, and whether
18
they are required or optional.
21
- Describes where the element may appear, whether the element may have
22
sub-elements, and other important usage information.
25
- For many elements, this section will contain brief examples showing the
26
element used in context.
30
@section xml_imageset_imageset \<Imageset\> Element
32
- The \<Imageset\> element is the root element in XML imageset definition
36
- @c Name: Specifies the name that will be assigned to the Imageset in the
37
CEGUI system. Required Attribute.
38
- @c Imagefile: Specifies the path to the image file containing the imagery
39
for the imageset. Required attribute.
40
- @c ResourceGroup: Specifies the resource group identifier to pass to the
41
ResourceProvider when loading the file given in the @c Imagefile
42
attribute. Optional attribute, default is the Imageset default group.
43
- @c AutoScaled: Boolean property that states whether to scale imagery so
44
it appears the same @e physical size at any resolution. The specified
45
native resolution values indicate the resolution that will result in a
46
one-to-one (i.e. unscaled) mapping from source to destination. At
47
resolutions higher than the native, the imagery will be scaled @e up to
48
take up more space, and at resolutions lower than the native, the imagery
49
will be scaled @e down to take up less space.
50
Optional attribute, default is false.
51
- @c NativeHorzRes: When AutoScaled is enabled, specifies the horizontal
52
screen resolution that will result in an unscaled, one-to-one mapping of
53
pixels from the source image to the destination surface.
54
Optional attribute, default is 640.
55
- @c NativeVertRes: When AutoScaled is enabled, specifies the vertical
56
screen resolution that will result in an unscaled, one-to-one mapping of
57
pixels from the source image to the destination surface.
58
Optional attribute, default is 480.
61
- The \<Imageset\> element is the root element for imageset files.
62
- The \<Imageset\> element may contain any number of \<Image\> elements.
63
- No element may contain \<Imageset\> elements as a sub-element.
68
@section xml_imageset_image \<Image> Element
70
- Defines a single component image of an imageset.
73
- @c Name: Specifies the name that will be used to identify the image within
74
the Imageset. Required attribute.
75
- @c XPos: Specifies the X pixel co-ordinate of the top-left corner of the
76
image on the source surface. Required attribute.
77
- @c YPos: Specifies the Y pixel co-ordinate of the top-left corner of the
78
image on the source surface. Required attribute.
79
- @c Width: Specifies the width of the image in pixels.
81
- @c Height: Specifies the height of the image in pixels.
83
- @c XOffset: Specifies a horizontal offset to apply when rendering the
84
image. Optional attribute, default is 0.
85
- @c YOffset: Specifies a vertical offset to apply when rendering the
86
image. Optional attribute, default is 0.
89
- The \<Image\> element may only appear as a sub-element of the \<Imageset\>
91
- The \<Image\> element may not contain any sub-elements.