{{tag>graphic skin texture fileformat}}
[[:start|Start Page]] >> [[:gamedev|Game Development with the Drag[en]gine]] >> **Skin File Format**
====== Skin File Format (*.deskin) ======
The skin file format is recognized by the [[http://dragengine.rptd.ch/module.php?id=10|Drag[en]gine Skin XML Module]]. The file is an XML file with a simple structure to define a skin.
====== Structure ======
{{ :formats:modules:deskinxml:xml_file.png |XML File Structure}}
====== Tags ======
^Tag^Description^Required^Occurance^Default^
|skin|Defines the skin.|yes|once|-|
|texture|Defines a named texture. Name has to be unique ( attributer 'name' ).|no|multiple|-|
|fullAlpha|If specified full alpha is used instead of masked alpha|no|once|-|
|value|Defines a property with the type in the 'property' attribute having a static value as specified in the cdata.|no|multiple|0|
|color|Defines a property with the type in the 'property' attribute having a static color as specified by the attributes 'r' for red, 'g' for green, 'b' for blue and 'a' for alpha. The tags r/g/b/a are optional. If not set they default to r=0, g=0, b=0 and a=1.|no|multiple|(0,0,0,1)|
|image|Defines a property with the type in the 'property' attribute having an image as specified by the cdata ( a path to the image file ).|no|multiple|-|
|source|Defines a property with the type in the 'property' attribute having a complex and dynamic content. Definition is not finished yet so this tag does not do much yet.|no|multiple|-|
|renderable|Defines a property with the type in the 'property' attribute having a renderable name ( cdata string ). The content of this property is defined at runtime using a component renderable of the same name. Name can be reused in multiple properties.|no|multiple|-|
====== Sample file ======
color.png
tint
normal.png
roughness.png
0.1
0.2