![]() |
Murl Engine API
Version 2018.3
|
The XML atlas resource class. More...
#include <murl_resource_xml_atlas.h>
The XML atlas resource class.
An XML atlas file is recognized by its <Atlas> root element. Within the root element, the only allowed elements are of type <Rectangle>, each of which defines a single IAtlas::Raw::Rectangle entry, with increasing (zero-based) index that can be used to retrieve this rectangle via IAtlas::GetRectangle().
The following attributes are accepted in a <Rectangle> tag:
Example of an XML atlas file:
Note that when using texture coordinates outside the 0.0-1.0 range defined by the hardware (like in the given example), the texture reference size should be set accordingly, e.g. via Graph::IPlaneSequenceGeometry::SetTextureSize().
XML atlas resources can be generated using the atlas_generator tool, or created by hand.
Use the <Resource> tag in a .murlres package's resource.xml file to specify an XML atlas resource. See Resource::Object.
Additional Inherited Members | |
![]() | |
typedef Array< const ClassInfo *> | ClassInfoArray |
Definition of an array of ClassInfo objects. More... | |
![]() | |
virtual | ~IFactoryObject () |
The destructor. More... | |
virtual const ClassInfo * | GetObjectClassInfo () const=0 |
Get the object instance's class info, if present. More... | |
virtual void | ResetObjectProperties ()=0 |
Reset the object instance's properties to their default values. | |
![]() | |
static const PropertyInfo * | GetPropertyInfo () |
Get the class' property info struct. More... | |
static const AttributeInfo * | GetAttributeInfo () |
Get the class' attribute info struct. More... | |
static void | ResetProperties (IFactoryObject< IObject > *object) |
Reset an object instance's properties to their default values. More... | |