Added resource folder for lightweight run-time resources that is also relevant to code, eg. shaders and XML schemas

This commit is contained in:
sippeangelo
2015-11-20 16:06:30 +01:00
parent d21f23dac9
commit 1a8784b4be
12 changed files with 130 additions and 9 deletions
+6
View File
@@ -0,0 +1,6 @@
<c:Test>
<Integer>1</Integer>
<Float>1.333</Float>
<Vector X="1.33333" Y="2.33333" Z="3.33333"/>
<Quaternion I="1.33333" J="2.33333" K="3.33333"/>
</c:Test>
+21
View File
@@ -0,0 +1,21 @@
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types" xmlns:meta="../Schema.xsd">
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
<xs:element name="Test">
<xs:annotation>
<xs:appinfo>
<meta:allocation>8</meta:allocation>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="Integer" type="xs:integer" minOccurs="0"/>
<xs:element name="Float" type="xs:decimal" minOccurs="0"/>
<xs:element name="Vector" type="t:Vector" minOccurs="0"/>
<xs:element name="Quaternion" type="t:Quaternion" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>
@@ -0,0 +1,5 @@
<TransformComponent>
<Position X="0" Y="0" Z="0"/>
<Orientation I="0" J="0" K="0"/>
<Scale X="1" Y="1" Z="1"/>
</TransformComponent>
+23
View File
@@ -0,0 +1,23 @@
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:t="types" xmlns:meta="../Schema.xsd">
<xs:import schemaLocation="../Types.xsd" namespace="types"/>
<xs:element name="Transform">
<xs:annotation>
<xs:documentation>It's a transform thingy!</xs:documentation>
<xs:appinfo>
<meta:allocation>8</meta:allocation>
</xs:appinfo>
</xs:annotation>
<xs:complexType>
<xs:all>
<xs:element name="Position" type="t:Vector" minOccurs="0">
<xs:annotation><xs:documentation>The position vector</xs:documentation></xs:annotation>
</xs:element>
<xs:element name="Orientation" type="t:Quaternion" minOccurs="0"/>
<xs:element name="Scale" type="t:Vector" minOccurs="0"/>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>