Skip to content

Instantly share code, notes, and snippets.

@antont
Created September 24, 2011 23:47
Show Gist options
  • Save antont/1240007 to your computer and use it in GitHub Desktop.
Save antont/1240007 to your computer and use it in GitHub Desktop.
drafting an xml spec for txml
<scene>
<entity id="1">
<!--name>
<name>Bird</name>
<description>A flying bird</description>
</name-->
<name name="Bird" description="A flying bird" />
<!-- mesh>
<meshref>bird.mesh</meshref>
<materialref index=0>feathers.material</materialref>
<materialref index=1>head.material</materialref>
</mesh -->
<mesh sync="1"
meshref="bird.mesh"
materialrefs="feathers.material; head.material"
/>
<rigidbody shape="box" size="2.5" />
<script src="bird.js" />
</entity>
<entity id="2">
<light
diffuse="100, 120, 120"
...
/>
</entity>
</scene>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment