roc/data/xml/textures.xml
cecilkorik deaa55d535 working textures!
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.
2011-06-17 19:54:49 -06:00

31 lines
No EOL
701 B
XML
Executable file

<textures>
<texture id="t_black">
<file>tex/black.png</file>
<coords/>
<uniform/>
</texture>
<texture id="t_white">
<file>tex/white.png</file>
<uniform/>
</texture>
<texture id="tnm_flat">
<file>tex/nm_flat.png</file>
<uniform/>
</texture>
<material id="mat_blank">
<texture ref="t_white" type="diffuse"/>
<texture ref="tnm_flat" type="normal"/>
</material>
<texture id="t_test">
<file>tex/test1.png</file>
</texture>
<texture id="t_test_plasma">
<file>tex/plasma1.png</file>
</texture>
<texture id="t_test_plasma2">
<file>tex/plasma2.png</file>
</texture>
<material id="mat_test">
<texture ref="t_test"/>
</material>
</textures>