completely overhauled models framework... now loads Model, Mesh, Material, and Texture (plus TextureFile) fixed a number of bugs/inflexibilities in gamedata xml parser refactored the various modules to use "init" functions to better control when they get loaded (ie, before or after OpenGL init) which it turns out is *very important*, because if the shaders and textures get loaded before OpenGL does, they don't work. go figure.
25 lines
No EOL
978 B
XML
Executable file
25 lines
No EOL
978 B
XML
Executable file
<xml_binary_packing name="textures">
|
|
<datatag name="texture" multiple="yes">
|
|
<attribute name="id" data="string"/>
|
|
<datatag name="file" data="string"/>
|
|
<datatag name="coords" optional="yes">
|
|
<attribute name="x1" data="int" default="-1"/>
|
|
<attribute name="y1" data="int" default="-1"/>
|
|
<attribute name="x2" data="int" default="-1"/>
|
|
<attribute name="y2" data="int" default="-1"/>
|
|
<attribute name="x" data="int" default="-1"/>
|
|
<attribute name="y" data="int" default="-1"/>
|
|
<attribute name="h" data="int" default="-1"/>
|
|
<attribute name="w" data="int" default="-1"/>
|
|
</datatag>
|
|
<datatag name="uniform" data="bool" default=""/>
|
|
</datatag>
|
|
<datatag name="material" multiple="yes">
|
|
<attribute name="id" data="string"/>
|
|
<datatag name="texture" multiple="yes">
|
|
<attribute name="ref" data="string"/>
|
|
<attribute name="type" data="string" optional="yes" default="diffuse"/>
|
|
</datatag>
|
|
</datatag>
|
|
|
|
</xml_binary_packing> |