<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>

<geexlab>
	
  <window name="win3d01" title="Simple FFmpeg Video Player" 
          width="800" height="600" 
          gl_version_major="2" gl_version_minor="0" />

  
  
	<script name="init_scene" run_mode="INIT" filename="init.lua" />

	<script name="update_scene" run_mode="FRAME" filename="frame.lua" livecoding="1" />

	<script name="drop_files" run_mode="DRAG_N_DROP" filename="dnd.lua" />

	<script name="terminate_scene" run_mode="TERMINATE"  filename="terminate.lua" />

	<script name="resize_scene" run_mode="SIZE"  filename="size.lua" />




<!--
  OpenGL ES 2.0 shaders.
-->

<gpu_program name="texture_program" >
	<raw_data_vs><![CDATA[	 
attribute vec4 gxl3d_Position;
attribute vec4 gxl3d_TexCoord0;
invariant gl_Position;
uniform mat4 gxl3d_ModelViewProjectionMatrix;
varying vec4 v_uv;
	
void main()
{
  gl_Position = gxl3d_ModelViewProjectionMatrix * gxl3d_Position;		
  v_uv = gxl3d_TexCoord0;
}
  ]]></raw_data_vs>
  
	<raw_data_ps><![CDATA[	 
varying highp vec4 v_uv;
uniform sampler2D tex0;
void main (void)
{
  highp vec2 uv = v_uv.xy;
  uv.y *= -1.0;
  highp vec3 t = texture2D(tex0,uv).rgb;
  gl_FragColor = vec4(t, 1.0);
}  ]]></raw_data_ps>

</gpu_program>



<gpu_program name="vertex_color_program" >
	<raw_data_vs><![CDATA[	 
attribute vec4 gxl3d_Position;
attribute vec4 gxl3d_Color;
invariant gl_Position;
uniform mat4 gxl3d_ModelViewProjectionMatrix;
varying vec4 v_color;
	
void main()
{
  gl_Position = gxl3d_ModelViewProjectionMatrix * gxl3d_Position;		
  v_color = gxl3d_Color;
}
  ]]></raw_data_vs>
  
	<raw_data_ps><![CDATA[	 
varying highp vec4 v_color;
void main (void)
{
  gl_FragColor = v_color;
}  ]]></raw_data_ps>

</gpu_program>



	
  
</geexlab>
