Replaced old materials file with materials.xml, using the regular
property-file format. This new format will simplify extensions later on (including crash detection on forest and water surfaces, etc.). There is also a DTD file for anyone with an XML editor.
This commit is contained in:
parent
7d0324db2c
commit
f9829eba75
3 changed files with 1964 additions and 1001 deletions
30
materials.dtd
Normal file
30
materials.dtd
Normal file
|
@ -0,0 +1,30 @@
|
|||
<!--
|
||||
************************************************************************
|
||||
XML DTD for FlightGear Materials.
|
||||
|
||||
This DTD is advisory only: it is perfectly legal to include additional
|
||||
properties in materials.xml.
|
||||
************************************************************************
|
||||
-->
|
||||
|
||||
<!ENTITY % colours "r?, g?, b?, a?">
|
||||
|
||||
<!ELEMENT PropertyList (material+)>
|
||||
<!ELEMENT material (name+, texture, wrapu?, wrapv?, mipmap?, xsize?, ysize?,
|
||||
light-coverage?, ambient?, diffuse?, specular?, emissive?)>
|
||||
<!ELEMENT name (#PCDATA)>
|
||||
<!ELEMENT texture (#PCDATA)>
|
||||
<!ELEMENT wrapu (#PCDATA)>
|
||||
<!ELEMENT wrapv (#PCDATA)>
|
||||
<!ELEMENT mipmap (#PCDATA)>
|
||||
<!ELEMENT xsize (#PCDATA)>
|
||||
<!ELEMENT ysize (#PCDATA)>
|
||||
<!ELEMENT light-coverage (#PCDATA)>
|
||||
<!ELEMENT ambient (%colours;)>
|
||||
<!ELEMENT diffuse (%colours;)>
|
||||
<!ELEMENT specular (%colours;)>
|
||||
<!ELEMENT emissive (%colours;)>
|
||||
<!ELEMENT r (#PCDATA)>
|
||||
<!ELEMENT g (#PCDATA)>
|
||||
<!ELEMENT b (#PCDATA)>
|
||||
<!ELEMENT a (#PCDATA)>
|
1934
materials.xml
Normal file
1934
materials.xml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue