![]() |
Murl Engine API
Version 2018.3
|
The XML image resource class. More...
#include <murl_resource_xml_image.h>
The XML image resource class.
XML image resources can be used as a convenient way to shuffle and mix color channels from a given set of actual input image files to a resulting output image resource, for example to pack as many information into a single texture to save resources and/or shader execution cycles.
An XML image file is recognized by its <Image> root element. The root element accepts the following attributes:
The only allowed child element of an <Image> element is the <MipLevel> element, which accepts the following attribute:
Within a <MipLevel> element, the first accepted element is the <Source> element, which defines an input image. It accepts the following attributes:
The second accepted element is the <Destination> element, which defines the actual source for each of the four output image color channels. The following attributes are accepted:
Example of an XML image file:
Use the <Resource> tag in a .murlres package's resource.xml file to specify an XML image 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... | |