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

<geexlab>
	
  <window name="win3d01" title="Box2D Physics (OpenGL 2.1)" 
          width="1280" height="720" 
          gl_version_major="2" gl_version_minor="1" />
  
  
	<script name="init_scene" run_mode="INIT" filename="init.lua" />
  
	<script name="update_scene" run_mode="FRAME" filename="frame.lua" livecoding="1" />


	

	<script name="resize_scene" run_mode="SIZE" >
		<raw_data><![CDATA[	

winW, winH = gh_window.getsize(0)

gh_camera.update_ortho(camera_ortho, -winW/2, winW/2, -winH/2, winH/2, 1.0, 10.0)
gh_camera.set_viewport(camera_ortho, 0, 0, winW, winH)

		]]></raw_data>
	</script> 


	<script name="terminate_scene" run_mode="TERMINATE" >
		<raw_data><![CDATA[	
    
gh_box2d.terminate()

gh_imgui.terminate()

		]]></raw_data>
	</script> 






<gpu_program name="color_prog" >
    <raw_data_vs><![CDATA[	 
#version 120
varying vec4 v_color;    
void main()
{
  gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex;		
  v_color = gl_Color;
}
  ]]></raw_data_vs>
    <raw_data_ps><![CDATA[	 
#version 120
varying vec4 v_color;    
uniform vec4 color;
void main (void)
{
  gl_FragColor = v_color * color;
}
    ]]></raw_data_ps>
  </gpu_program>

  


  
</geexlab>
