
<demo name="video2" width="640" height="480" bpp="32" fullscreen="0">
	<create></create>

	<loadplugin file="../fx/fxmain.dll"></loadplugin>
	<loadplugin file="../fx/fx_rawhed.dll"></loadplugin>

	<add type="clear" name="clear"></add>
	<clear color="0xff000000" trailval="1.034"></clear>

	<add type="videoplay" name="vid"></add>
	<vid filename="data/videos/mehe.avi" speed="0.5" wrapmode="1" draw="0"></vid>

	<add type="dogtail" name="dog"></add>
	<dog speed="0.29" num="3">
	<gl restore="0">
		<render	active="1"
			flat="0"
			wire="0"
			envmap="1"
			linewidth="1"
			color="10.3,10.3,10.3,10.3"></render>
		<depth	active="0"
			test="1"
			write="1">
		</depth>
		<cull	active="1"
			cull="1"
			mode="0">
			</cull>
		<alpha	active="1"
			blend="1"
			blendsrc="1"
			blenddst="1"
			mask="0"
			maskvalue="0.5">
		</alpha>
		<proj	active="1"
			fov="135"
			near="0.2"
			far="600">
		</proj>
		<fog	active="0"
			on="1"
			mode="0"
			density="0.0"
			zstart="10.0"
			zend="110.0"
			color="0xff000000">
		</fog>
		</gl>
	</dog>

	<add type="particlebox" name="part"></add>
	<part		number="100"
			speed="0.01"
			dim="30,30,150.130"
			spawndim="30,30,150.130"
			dirmin="-0.1,-0.1,0"
			dirmax="0.1,0.1,0"
			tra="0,0,0"
			rot="0,0,0"
			sca="2,2,1"
			trainc="0,0,0"
			rotinc="0.0,0.0,12.42"
			scainc="0,0.0,0"
			pdir="0,0,0.0"
			prot="0,0.0,0.0"
			color="0xffffffff"
			camera="0"
			src="1"
			dst="1">
		</part>

	<add type="skybox" name="box"></add>
	<box>
	<gl>
		<proj	active="1"
			fov="135"
			near="0.2"
			far="600">
		</proj>
		<alpha	active="1"
			blend="1"
			blendsrc="1"
			blenddst="1"
			mask="0"
			maskvalue="0.5">
		</alpha>
	</gl>
	</box>

	<draworder effect="clear" effect="vid"></draworder>
	<draworder effect="clear" effect="vid"></draworder>
	<event time="0.1">
	<draworder effect="clear" effect="vid" effect="box"></draworder>
	</event>

	<event key="Q">
	<vid toggledirection></vid>
	</event>
	<event key="Z">
	<draworder effect="clear" effect="vid" effect="dog"></draworder>
	</event>
	<event key="X">
	<draworder effect="clear" effect="vid" effect="box"></draworder>
	</event>
	<event key="C">
	<draworder effect="clear" effect="vid" effect="part"></draworder>
	</event>

	<load></load>

	<run></run>

</demo>