Преглед на файлове

Merge 7/29 mcclure screeninfo branch with Ivan Polycode branch

mcc преди 13 години
родител
ревизия
47147ae45d
променени са 100 файла, в които са добавени 1165 реда и са изтрити 7381 реда
  1. 22 0
      .gitignore
  2. 2 5
      Assets/Default asset pack/CMakeLists.txt
  3. BIN
      Assets/Default asset pack/default.pak
  4. 150 0
      Assets/Default asset pack/default/NorColSpec.frag
  5. 18 0
      Assets/Default asset pack/default/NormalShader.vert
  6. 6 0
      Assets/Default asset pack/default/PassThrough.frag
  7. 11 1
      Assets/Default asset pack/default/default.mat
  8. BIN
      Assets/Default asset pack/hdr.pak
  9. 12 0
      Assets/Default asset pack/hdr/ExtractBloom.frag
  10. 19 0
      Assets/Default asset pack/hdr/HDRBloomH.frag
  11. 19 0
      Assets/Default asset pack/hdr/HDRBloomV.frag
  12. 10 0
      Assets/Default asset pack/hdr/HDRProcess.frag
  13. 19 0
      Assets/Default asset pack/hdr/HDRProcessBloom.frag
  14. 150 0
      Assets/Default asset pack/hdr/NorColSpecHDR.frag
  15. 95 0
      Assets/Default asset pack/hdr/hdr.mat
  16. BIN
      Assets/Icons/main_icon.png
  17. 1 5
      Assets/Templates/C++/Linux/HelloPolycodeApp.cpp
  18. 1 1
      Assets/Templates/C++/Linux/Makefile
  19. 75 0
      Assets/Templates/C++/Windows/Polycode.props
  20. 21 0
      Assets/Templates/C++/Windows/PolycodeTemplate.cpp
  21. 20 0
      Assets/Templates/C++/Windows/PolycodeTemplate.sln
  22. 87 0
      Assets/Templates/C++/Windows/PolycodeTemplate.vcxproj
  23. 16 0
      Assets/Templates/C++/Windows/PolycodeTemplateApp.cpp
  24. 15 0
      Assets/Templates/C++/Windows/PolycodeTemplateApp.h
  25. 6 0
      Assets/Templates/C++/Xcode/PolycodeTemplate.xcodeproj/project.pbxproj
  26. 1 1
      Assets/Templates/C++/Xcode/PolycodeTemplate/PolycodeTemplate-Info.plist
  27. 46 114
      Assets/Templates/C++/Xcode/PolycodeTemplate/en.lproj/MainMenu.xib
  28. BIN
      Assets/Templates/C++/Xcode/PolycodeTemplate/main_icon.icns
  29. 3 0
      Assets/Templates/CMakeLists.txt
  30. 98 20
      BUILD.md
  31. 242 0
      BUILD.txt
  32. 0 87
      Bindings/Contents/LUA/API/Polycode.lua
  33. 0 98
      Bindings/Contents/LUA/API/Polycode/BezierCurve.lua
  34. 0 40
      Bindings/Contents/LUA/API/Polycode/BezierPathTween.lua
  35. 0 228
      Bindings/Contents/LUA/API/Polycode/Bone.lua
  36. 0 149
      Bindings/Contents/LUA/API/Polycode/BoneTrack.lua
  37. 0 122
      Bindings/Contents/LUA/API/Polycode/Camera.lua
  38. 0 93
      Bindings/Contents/LUA/API/Polycode/Color.lua
  39. 0 73
      Bindings/Contents/LUA/API/Polycode/Config.lua
  40. 0 210
      Bindings/Contents/LUA/API/Polycode/Core.lua
  41. 0 109
      Bindings/Contents/LUA/API/Polycode/CoreInput.lua
  42. 0 196
      Bindings/Contents/LUA/API/Polycode/CoreServices.lua
  43. 0 36
      Bindings/Contents/LUA/API/Polycode/Cubemap.lua
  44. 0 58
      Bindings/Contents/LUA/API/Polycode/Data.lua
  45. 0 506
      Bindings/Contents/LUA/API/Polycode/Entity.lua
  46. 0 67
      Bindings/Contents/LUA/API/Polycode/Event.lua
  47. 0 64
      Bindings/Contents/LUA/API/Polycode/EventDispatcher.lua
  48. 0 35
      Bindings/Contents/LUA/API/Polycode/EventHandler.lua
  49. 0 48
      Bindings/Contents/LUA/API/Polycode/FixedShader.lua
  50. 0 60
      Bindings/Contents/LUA/API/Polycode/FixedShaderBinding.lua
  51. 0 57
      Bindings/Contents/LUA/API/Polycode/Font.lua
  52. 0 44
      Bindings/Contents/LUA/API/Polycode/FontManager.lua
  53. 0 54
      Bindings/Contents/LUA/API/Polycode/GLSLProgram.lua
  54. 0 47
      Bindings/Contents/LUA/API/Polycode/GLSLShader.lua
  55. 0 52
      Bindings/Contents/LUA/API/Polycode/GLSLShaderBinding.lua
  56. 0 73
      Bindings/Contents/LUA/API/Polycode/GLSLShaderModule.lua
  57. 0 127
      Bindings/Contents/LUA/API/Polycode/GenericScene.lua
  58. 0 162
      Bindings/Contents/LUA/API/Polycode/Image.lua
  59. 0 125
      Bindings/Contents/LUA/API/Polycode/InputEvent.lua
  60. 0 76
      Bindings/Contents/LUA/API/Polycode/Label.lua
  61. 0 36
      Bindings/Contents/LUA/API/Polycode/Logger.lua
  62. 0 136
      Bindings/Contents/LUA/API/Polycode/Material.lua
  63. 0 176
      Bindings/Contents/LUA/API/Polycode/MaterialManager.lua
  64. 0 92
      Bindings/Contents/LUA/API/Polycode/Matrix4.lua
  65. 0 183
      Bindings/Contents/LUA/API/Polycode/Mesh.lua
  66. 0 64
      Bindings/Contents/LUA/API/Polycode/OSBasics.lua
  67. 0 46
      Bindings/Contents/LUA/API/Polycode/OSFILE.lua
  68. 0 87
      Bindings/Contents/LUA/API/Polycode/OSFileEntry.lua
  69. 0 88
      Bindings/Contents/LUA/API/Polycode/ObjectEntry.lua
  70. 0 47
      Bindings/Contents/LUA/API/Polycode/OpenGLCubemap.lua
  71. 0 106
      Bindings/Contents/LUA/API/Polycode/Particle.lua
  72. 0 228
      Bindings/Contents/LUA/API/Polycode/ParticleEmitter.lua
  73. 0 33
      Bindings/Contents/LUA/API/Polycode/Perlin.lua
  74. 0 35
      Bindings/Contents/LUA/API/Polycode/PolycodeModule.lua
  75. 0 28
      Bindings/Contents/LUA/API/Polycode/PolycodeViewBase.lua
  76. 0 109
      Bindings/Contents/LUA/API/Polycode/Polygon.lua
  77. 0 191
      Bindings/Contents/LUA/API/Polycode/Quaternion.lua
  78. 0 48
      Bindings/Contents/LUA/API/Polycode/QuaternionCurve.lua
  79. 0 40
      Bindings/Contents/LUA/API/Polycode/QuaternionTween.lua
  80. 0 59
      Bindings/Contents/LUA/API/Polycode/Rectangle.lua
  81. 0 510
      Bindings/Contents/LUA/API/Polycode/Renderer.lua
  82. 0 71
      Bindings/Contents/LUA/API/Polycode/Resource.lua
  83. 0 85
      Bindings/Contents/LUA/API/Polycode/ResourceManager.lua
  84. 0 271
      Bindings/Contents/LUA/API/Polycode/Scene.lua
  85. 0 53
      Bindings/Contents/LUA/API/Polycode/SceneEntity.lua
  86. 0 61
      Bindings/Contents/LUA/API/Polycode/SceneLabel.lua
  87. 0 184
      Bindings/Contents/LUA/API/Polycode/SceneLight.lua
  88. 0 40
      Bindings/Contents/LUA/API/Polycode/SceneLine.lua
  89. 0 48
      Bindings/Contents/LUA/API/Polycode/SceneManager.lua
  90. 0 157
      Bindings/Contents/LUA/API/Polycode/SceneMesh.lua
  91. 0 72
      Bindings/Contents/LUA/API/Polycode/SceneParticleEmitter.lua
  92. 0 43
      Bindings/Contents/LUA/API/Polycode/ScenePrimitive.lua
  93. 0 68
      Bindings/Contents/LUA/API/Polycode/SceneRenderTexture.lua
  94. 0 52
      Bindings/Contents/LUA/API/Polycode/SceneSound.lua
  95. 0 40
      Bindings/Contents/LUA/API/Polycode/SceneSoundListener.lua
  96. 0 189
      Bindings/Contents/LUA/API/Polycode/Screen.lua
  97. 0 36
      Bindings/Contents/LUA/API/Polycode/ScreenCurve.lua
  98. 0 236
      Bindings/Contents/LUA/API/Polycode/ScreenEntity.lua
  99. 0 40
      Bindings/Contents/LUA/API/Polycode/ScreenEvent.lua
  100. 0 50
      Bindings/Contents/LUA/API/Polycode/ScreenImage.lua

+ 22 - 0
.gitignore

@@ -39,10 +39,32 @@
 UserInterfaceState.*
 UserInterfaceState.*
 Player/Build/Mac OS X/Polycode Player.xcodeproj/project.xcworkspace/xcuserdata/ivansafrin.xcuserdatad/UserInterfaceState.xcuserstate
 Player/Build/Mac OS X/Polycode Player.xcodeproj/project.xcworkspace/xcuserdata/ivansafrin.xcuserdatad/UserInterfaceState.xcuserstate
 
 
+/Bindings/Contents/LUA/API/Polycode/*.lua
+/Bindings/Contents/LUA/API/Polycode.lua
+/Bindings/Contents/LUA/API/api.pak
+/Bindings/Contents/LUA/Include/*.h
+/Bindings/Contents/LUA/Source/*.cpp	
+/Bindings/Contents/LUA/Source
+
+/Modules/Bindings/2DPhysics/API/Physics2D/*.lua
+/Modules/Bindings/2DPhysics/API/Physics2D.lua
+/Modules/Bindings/2DPhysics/Include/*.h
+/Modules/Bindings/2DPhysics/Source/*.cpp
+
+/Modules/Bindings/3DPhysics/API/Physics3D/*.lua
+/Modules/Bindings/3DPhysics/API/Physics3D.lua
+/Modules/Bindings/3DPhysics/Include/*.h
+/Modules/Bindings/3DPhysics/Source/*.cpp
+
 /Player/Build
 /Player/Build
 /Standalone/Build
 /Standalone/Build
+
 /Dependencies/Build
 /Dependencies/Build
 /Dependencies/Downloads
 /Dependencies/Downloads
+/Dependencies/Local/libstem_gamepad/Build
+
+/IDE/Contents/Resources/Standalone
+
 /Core/Build/Mac\ OS\ X/build
 /Core/Build/Mac\ OS\ X/build
 /IDE/Build/Mac\ OS\ X/build
 /IDE/Build/Mac\ OS\ X/build
 /Modules/Build/Mac\ OS\ X/build
 /Modules/Build/Mac\ OS\ X/build

+ 2 - 5
Assets/Default asset pack/CMakeLists.txt

@@ -1,8 +1,5 @@
 #TODO: actually build the pak file
 #TODO: actually build the pak file
 IF(POLYCODE_INSTALL_FRAMEWORK)
 IF(POLYCODE_INSTALL_FRAMEWORK)
-    
-    # install default.pak file
-    INSTALL(FILES default.pak
-        DESTINATION Core/Assets)
-    
+    INSTALL(FILES default.pak DESTINATION Core/Assets)
+    INSTALL(FILES hdr.pak DESTINATION Core/Assets)
 ENDIF(POLYCODE_INSTALL_FRAMEWORK)
 ENDIF(POLYCODE_INSTALL_FRAMEWORK)

BIN
Assets/Default asset pack/default.pak


+ 150 - 0
Assets/Default asset pack/default/NorColSpec.frag

@@ -0,0 +1,150 @@
+varying vec3 normal;
+varying vec3 tangent;
+varying vec3 binormal;
+varying vec4 pos;
+varying vec4 vertexColor;
+uniform sampler2D diffuse;
+uniform sampler2D normal_map;
+uniform sampler2D specular_map;
+
+float calculateAttenuation(in int i, in float dist)
+{
+    return(1.0 / (gl_LightSource[i].constantAttenuation +
+                  gl_LightSource[i].linearAttenuation * dist +
+                  gl_LightSource[i].quadraticAttenuation * dist * dist));
+}
+
+void pointLight(in int i, in vec3 bump, in vec3 normal, in vec3 tangent, in vec3 binormal, in vec4 pos, inout vec4 diffuse, inout vec4 specular) {
+	vec4 color = gl_FrontMaterial.diffuse;
+	vec4 matspec = gl_FrontMaterial.specular;
+	float shininess = gl_FrontMaterial.shininess;
+	vec4 lightspec = gl_LightSource[i].specular;
+	vec4 lpos = gl_LightSource[i].position;
+	
+	vec3 tmpVec = lpos.xyz - pos.xyz;	
+	lpos.x = dot(tmpVec, tangent);
+	lpos.y = dot(tmpVec, binormal);
+	lpos.z = dot(tmpVec, normal);	
+	
+	float distSqr = dot(lpos.xyz, lpos.xyz);
+	vec3 lVec = lpos.xyz * inversesqrt(distSqr);
+	
+	tmpVec = -pos.xyz;
+	vec3 v;
+	v.x = dot(tmpVec, tangent);
+	v.y = dot(tmpVec, binormal);
+	v.z = dot(tmpVec, normal);	
+	
+	v = normalize(v);
+
+	float nDotL = dot(lVec, bump);
+	if(nDotL > 0.0) {
+		float dist = length(lpos.xyz);    
+		float attenuation = calculateAttenuation(i, dist);
+
+		diffuse  += color * max(0.0, nDotL) * gl_LightSource[i].diffuse * attenuation;
+
+	  if (shininess != 0.0) {
+    	specular += lightspec * matspec * pow(clamp(dot(reflect(-lVec, bump), v),0.0,1.0), shininess) * attenuation;
+	  }
+	}
+}
+
+
+void spotLight(in int i, in vec3 bump, in vec3 normal, in vec3 tangent, in vec3 binormal, in vec4 pos, inout vec4 diffuse, inout vec4 specular) {
+	vec4 color = gl_FrontMaterial.diffuse;
+	vec4 matspec = gl_FrontMaterial.specular;
+	float shininess = gl_FrontMaterial.shininess;
+	vec4 lightspec = gl_LightSource[i].specular;
+	vec4 lpos = gl_LightSource[i].position;
+	
+	vec3 tmpVec = lpos.xyz - pos.xyz;	
+	lpos.x = dot(tmpVec, tangent);
+	lpos.y = dot(tmpVec, binormal);
+	lpos.z = dot(tmpVec, normal);	
+	
+	float distSqr = dot(lpos.xyz, lpos.xyz);
+	vec3 lVec = lpos.xyz * inversesqrt(distSqr);
+	
+	tmpVec = -pos.xyz;
+	vec3 v;
+	v.x = dot(tmpVec, tangent);
+	v.y = dot(tmpVec, binormal);
+	v.z = dot(tmpVec, normal);	
+	
+	v = normalize(v);
+	
+	tmpVec = gl_LightSource[i].spotDirection.xyz;
+	vec3 lDir;
+	lDir.x = dot(tmpVec, tangent);
+	lDir.y = dot(tmpVec, binormal);
+	lDir.z = dot(tmpVec, normal);	
+	
+	lDir = normalize(lDir);
+
+	
+	float cos_outer_cone_angle = gl_LightSource[i].spotExponent;
+	float cos_cur_angle = dot(-lDir, lVec);
+	float cos_inner_cone_angle = gl_LightSource[i].spotCosCutoff;
+
+	float cos_inner_minus_outer_angle = cos_inner_cone_angle - cos_outer_cone_angle;
+	float spot = clamp((cos_cur_angle - cos_outer_cone_angle) / cos_inner_minus_outer_angle, 0.0, 1.0);
+	       	
+
+	float nDotL = dot(lVec, bump);
+	if(nDotL > 0.0) {
+		float dist = length(lpos.xyz);    
+		float attenuation = calculateAttenuation(i, dist);
+
+		diffuse  += color * max(0.0, nDotL) * gl_LightSource[i].diffuse * attenuation * spot;
+
+	  if (shininess != 0.0) {
+    	specular += lightspec * matspec * pow(clamp(dot(reflect(-lVec, bump), v),0.0,1.0), shininess) * attenuation * spot;
+	  }
+	}}
+
+void doLights(in int numLights, in vec3 bump, in vec3 normal, in vec3 tangent, in vec3 binormal, in vec4 pos, inout vec4 diffuse, inout vec4 specular) {
+	for (int i = 0; i < numLights; i++) {
+		if (gl_LightSource[i].spotCutoff == 180.0) {
+			pointLight(i, bump, normal, tangent, binormal, pos, diffuse, specular);
+		} else {
+			spotLight(i, bump, normal, tangent, binormal, pos, diffuse, specular);
+		}
+    }
+}
+
+
+void main()
+{
+	vec4 diffuse_val  = vec4(0.0);
+	vec4 specular_val = vec4(0.0);
+	
+	vec3 bump = normalize( texture2D(normal_map, gl_TexCoord[0].st).xyz * 2.0 - 1.0);
+		
+	doLights(6, bump, normal, tangent, binormal, pos, diffuse_val, specular_val);
+	
+	specular_val.xyz *= texture2D(specular_map, gl_TexCoord[0].st).xyz * gl_FrontMaterial.specular.a;
+	
+	diffuse_val.a = 1.0;
+	specular_val.a = 1.0;
+		
+	vec4 texColor = texture2D(diffuse, gl_TexCoord[0].st);		
+		
+    vec4 color = (diffuse_val  * texColor * vertexColor) +
+                 (specular_val * 1.0)+
+                 (gl_FrontMaterial.ambient * texColor * vertexColor);
+    color = clamp(color, 0.0, 1.0);
+    
+    // fog
+	const float LOG2 = 1.442695;
+	float z = gl_FragCoord.z / gl_FragCoord.w;
+	float fogFactor = exp2( -gl_Fog.density * 
+				   gl_Fog.density * 
+				   z * 
+				   z * 
+				   LOG2 );
+
+	fogFactor = clamp(fogFactor, 0.0, 1.0);
+	gl_FragColor = mix(gl_Fog.color, color, fogFactor );    
+
+}

+ 18 - 0
Assets/Default asset pack/default/NormalShader.vert

@@ -0,0 +1,18 @@
+varying vec3 normal;
+varying vec3 tangent;
+varying vec3 binormal;
+varying vec4 pos;
+varying vec4 rawpos;
+varying vec4 vertexColor;
+attribute vec3 vTangent;
+
+void main() {
+	normal = normalize(gl_NormalMatrix * gl_Normal);
+	tangent = normalize(gl_NormalMatrix * vTangent); 
+	binormal = normalize(cross(normal, tangent));
+	gl_Position = ftransform();
+	pos = gl_ModelViewMatrix * gl_Vertex;
+	rawpos = gl_Vertex;
+    vertexColor = gl_Color;
+	gl_TexCoord[0] = gl_TextureMatrix[0] * gl_MultiTexCoord0;
+}

+ 6 - 0
Assets/Default asset pack/default/PassThrough.frag

@@ -0,0 +1,6 @@
+uniform sampler2D screenColorBuffer;
+ 
+void main(void)
+{
+   gl_FragColor = texture2D(screenColorBuffer,gl_TexCoord[0].st);
+}

+ 11 - 1
Assets/Default asset pack/default/default.mat

@@ -72,7 +72,17 @@
 				<params>			
 				<params>			
 				</params>				
 				</params>				
 			</fp>
 			</fp>
-		</shader>										
+		</shader>
+		<shader type="glsl" name="NorColSpec" numAreaLights="4" numSpotLights="2">		
+			<vp source="NormalShader.vert">
+				<params>			
+				</params>				
+			</vp>
+			<fp source="NorColSpec.frag">
+				<params>			
+				</params>				
+			</fp>
+		</shader>											
 	</shaders>	
 	</shaders>	
 	<materials>
 	<materials>
 		<material name="Default">
 		<material name="Default">

BIN
Assets/Default asset pack/hdr.pak


+ 12 - 0
Assets/Default asset pack/hdr/ExtractBloom.frag

@@ -0,0 +1,12 @@
+uniform sampler2D screenColorBuffer;
+uniform float brightThreshold;
+ 
+void main(void)
+{	
+	vec4 color =  texture2D(screenColorBuffer,gl_TexCoord[0].st);
+	float lum = dot(vec4(0.30, 0.59, 0.11, 0.0), color);
+    if (lum > brightThreshold)
+        gl_FragColor = color;
+    else
+        gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);		
+}

+ 19 - 0
Assets/Default asset pack/hdr/HDRBloomH.frag

@@ -0,0 +1,19 @@
+uniform sampler2D screenTexture;
+const float blurSize = 1.0/512.0;
+ 
+void main(void)
+{
+   vec2 vTexCoord = gl_TexCoord[0].st;
+   vec4 sum = vec4(0.0);
+   sum += texture2D(screenTexture, vec2(vTexCoord.x - 4.0*blurSize, vTexCoord.y)) * 0.05;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x - 3.0*blurSize, vTexCoord.y)) * 0.09;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x - 2.0*blurSize, vTexCoord.y)) * 0.12;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x - blurSize, vTexCoord.y)) * 0.15;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y)) * 0.16;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x + blurSize, vTexCoord.y)) * 0.15;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x + 2.0*blurSize, vTexCoord.y)) * 0.12;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x + 3.0*blurSize, vTexCoord.y)) * 0.09;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x + 4.0*blurSize, vTexCoord.y)) * 0.05;
+   
+   gl_FragColor = sum;
+}

+ 19 - 0
Assets/Default asset pack/hdr/HDRBloomV.frag

@@ -0,0 +1,19 @@
+uniform sampler2D screenTexture;
+const float blurSize = 1.0/512.0;
+ 
+void main(void)
+{
+   vec2 vTexCoord = gl_TexCoord[0].st;
+   vec4 sum = vec4(0.0);
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y - 4.0*blurSize)) * 0.05;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y - 3.0*blurSize)) * 0.09;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y - 2.0*blurSize)) * 0.12;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y - blurSize)) * 0.15;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y)) * 0.16;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y + blurSize)) * 0.15;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y + 2.0*blurSize)) * 0.12;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y + 3.0*blurSize)) * 0.09;
+   sum += texture2D(screenTexture, vec2(vTexCoord.x, vTexCoord.y + 4.0*blurSize)) * 0.05;
+   
+   gl_FragColor = sum;
+}

+ 10 - 0
Assets/Default asset pack/hdr/HDRProcess.frag

@@ -0,0 +1,10 @@
+uniform sampler2D screenColorBuffer;
+uniform float exposure;
+
+void main(void)
+{
+	float brightMax = 1.0;
+	float YD = exposure * (exposure/brightMax + 1.0) / (exposure + 1.0);
+	gl_FragColor = texture2D(screenColorBuffer,gl_TexCoord[0].st) * YD;
+	gl_FragColor.a = 1.0;
+}

+ 19 - 0
Assets/Default asset pack/hdr/HDRProcessBloom.frag

@@ -0,0 +1,19 @@
+uniform sampler2D baseTexture;
+uniform sampler2D bloomTexture;
+uniform float exposure;
+uniform float bloomFactor;
+
+void main(void)
+{
+	float brightMax = 1.0;
+	
+	vec4 colorBloom = texture2D(bloomTexture, gl_TexCoord[0].st);
+	vec4 color = texture2D(baseTexture,gl_TexCoord[0].st);
+	
+	color += colorBloom * bloomFactor;
+//	color = colorBloom * bloomFactor;
+	
+	float YD = exposure * (exposure/brightMax + 1.0) / (exposure + 1.0);
+	gl_FragColor = color * YD;
+	gl_FragColor.a = 1.0;
+}

+ 150 - 0
Assets/Default asset pack/hdr/NorColSpecHDR.frag

@@ -0,0 +1,150 @@
+varying vec3 normal;
+varying vec3 tangent;
+varying vec3 binormal;
+varying vec4 pos;
+varying vec4 vertexColor;
+uniform sampler2D diffuse;
+uniform sampler2D normal_map;
+uniform sampler2D specular_map;
+
+float calculateAttenuation(in int i, in float dist)
+{
+    return(1.0 / (gl_LightSource[i].constantAttenuation +
+                  gl_LightSource[i].linearAttenuation * dist +
+                  gl_LightSource[i].quadraticAttenuation * dist * dist));
+}
+
+void pointLight(in int i, in vec3 bump, in vec3 normal, in vec3 tangent, in vec3 binormal, in vec4 pos, inout vec4 diffuse, inout vec4 specular) {
+	vec4 color = gl_FrontMaterial.diffuse;
+	vec4 matspec = gl_FrontMaterial.specular;
+	float shininess = gl_FrontMaterial.shininess;
+	vec4 lightspec = gl_LightSource[i].specular;
+	vec4 lpos = gl_LightSource[i].position;
+	
+	vec3 tmpVec = lpos.xyz - pos.xyz;	
+	lpos.x = dot(tmpVec, tangent);
+	lpos.y = dot(tmpVec, binormal);
+	lpos.z = dot(tmpVec, normal);	
+	
+	float distSqr = dot(lpos.xyz, lpos.xyz);
+	vec3 lVec = lpos.xyz * inversesqrt(distSqr);
+	
+	tmpVec = -pos.xyz;
+	vec3 v;
+	v.x = dot(tmpVec, tangent);
+	v.y = dot(tmpVec, binormal);
+	v.z = dot(tmpVec, normal);	
+	
+	v = normalize(v);
+
+	float nDotL = dot(lVec, bump);
+	if(nDotL > 0.0) {
+		float dist = length(lpos.xyz);    
+		float attenuation = calculateAttenuation(i, dist);
+
+		diffuse  += color * max(0.0, nDotL) * gl_LightSource[i].diffuse * attenuation;
+
+	  if (shininess != 0.0) {
+    	specular += lightspec * matspec * pow(clamp(dot(reflect(-lVec, bump), v),0.0,1.0), shininess) * attenuation;
+	  }
+	}
+}
+
+
+void spotLight(in int i, in vec3 bump, in vec3 normal, in vec3 tangent, in vec3 binormal, in vec4 pos, inout vec4 diffuse, inout vec4 specular) {
+	vec4 color = gl_FrontMaterial.diffuse;
+	vec4 matspec = gl_FrontMaterial.specular;
+	float shininess = gl_FrontMaterial.shininess;
+	vec4 lightspec = gl_LightSource[i].specular;
+	vec4 lpos = gl_LightSource[i].position;
+	
+	vec3 tmpVec = lpos.xyz - pos.xyz;	
+	lpos.x = dot(tmpVec, tangent);
+	lpos.y = dot(tmpVec, binormal);
+	lpos.z = dot(tmpVec, normal);	
+	
+	float distSqr = dot(lpos.xyz, lpos.xyz);
+	vec3 lVec = lpos.xyz * inversesqrt(distSqr);
+	
+	tmpVec = -pos.xyz;
+	vec3 v;
+	v.x = dot(tmpVec, tangent);
+	v.y = dot(tmpVec, binormal);
+	v.z = dot(tmpVec, normal);	
+	
+	v = normalize(v);
+	
+	tmpVec = gl_LightSource[i].spotDirection.xyz;
+	vec3 lDir;
+	lDir.x = dot(tmpVec, tangent);
+	lDir.y = dot(tmpVec, binormal);
+	lDir.z = dot(tmpVec, normal);	
+	
+	lDir = normalize(lDir);
+
+	
+	float cos_outer_cone_angle = gl_LightSource[i].spotExponent;
+	float cos_cur_angle = dot(-lDir, lVec);
+	float cos_inner_cone_angle = gl_LightSource[i].spotCosCutoff;
+
+	float cos_inner_minus_outer_angle = cos_inner_cone_angle - cos_outer_cone_angle;
+	float spot = clamp((cos_cur_angle - cos_outer_cone_angle) / cos_inner_minus_outer_angle, 0.0, 1.0);
+	       	
+
+	float nDotL = dot(lVec, bump);
+	if(nDotL > 0.0) {
+		float dist = length(lpos.xyz);    
+		float attenuation = calculateAttenuation(i, dist);
+
+		diffuse  += color * max(0.0, nDotL) * gl_LightSource[i].diffuse * attenuation * spot;
+
+	  if (shininess != 0.0) {
+    	specular += lightspec * matspec * pow(clamp(dot(reflect(-lVec, bump), v),0.0,1.0), shininess) * attenuation * spot;
+	  }
+	}}
+
+void doLights(in int numLights, in vec3 bump, in vec3 normal, in vec3 tangent, in vec3 binormal, in vec4 pos, inout vec4 diffuse, inout vec4 specular) {
+	for (int i = 0; i < numLights; i++) {
+		if (gl_LightSource[i].spotCutoff == 180.0) {
+			pointLight(i, bump, normal, tangent, binormal, pos, diffuse, specular);
+		} else {
+			spotLight(i, bump, normal, tangent, binormal, pos, diffuse, specular);
+		}
+    }
+}
+
+
+void main()
+{
+	vec4 diffuse_val  = vec4(0.0);
+	vec4 specular_val = vec4(0.0);
+	
+	vec3 bump = normalize( texture2D(normal_map, gl_TexCoord[0].st).xyz * 2.0 - 1.0);
+		
+	doLights(6, bump, normal, tangent, binormal, pos, diffuse_val, specular_val);
+	
+	specular_val.xyz *= texture2D(specular_map, gl_TexCoord[0].st).xyz * gl_FrontMaterial.specular.a;
+	
+	diffuse_val.a = 1.0;
+	specular_val.a = 1.0;
+		
+	vec4 texColor = texture2D(diffuse, gl_TexCoord[0].st);		
+		
+    vec4 color = (diffuse_val  * texColor * vertexColor) +
+                 (specular_val * 1.0)+
+                 (gl_FrontMaterial.ambient * texColor * vertexColor);
+//    color = clamp(color, 0.0, 1.0);
+    
+    // fog
+	const float LOG2 = 1.442695;
+	float z = gl_FragCoord.z / gl_FragCoord.w;
+	float fogFactor = exp2( -gl_Fog.density * 
+				   gl_Fog.density * 
+				   z * 
+				   z * 
+				   LOG2 );
+
+	fogFactor = clamp(fogFactor, 0.0, 1.0);
+	gl_FragColor = mix(gl_Fog.color, color, fogFactor );    
+	gl_FragColor.a = 1.0;
+}

+ 95 - 0
Assets/Default asset pack/hdr/hdr.mat

@@ -0,0 +1,95 @@
+<?xml version="1.0" ?>
+<polycode>	
+	<shaders>
+		<shader type="glsl" name="NorColSpecHDR" numAreaLights="4" numSpotLights="2">		
+			<vp source="NormalShader.vert">
+				<params>			
+				</params>				
+			</vp>
+			<fp source="NorColSpecHDR.frag">
+				<params>			
+				</params>				
+			</fp>
+		</shader>	
+		<shader type="glsl" name="HDRProcessShader">
+			<vp source="ScreenShader.vert"/>
+			<fp source="HDRProcess.frag">
+				<params>
+					<param name="exposure" type="Number" default="1.0"/>
+				</params>								
+			</fp>
+		</shader>		
+		<shader type="glsl" name="HDRProcessShaderBloom">
+			<vp source="ScreenShader.vert"/>
+			<fp source="HDRProcessBloom.frag">
+				<params>
+					<param name="exposure" type="Number" default="1.0"/>
+					<param name="bloomFactor" type="Number" default="0.5"/>					
+				</params>								
+			</fp>			
+		</shader>		
+		<shader type="glsl" name="HDRBloomH">
+			<vp source="ScreenShader.vert"/>
+			<fp source="HDRBloomH.frag"/>
+		</shader>
+		<shader type="glsl" name="HDRBloomV">
+			<vp source="ScreenShader.vert"/>
+			<fp source="HDRBloomV.frag"/>
+		</shader>	
+		<shader type="glsl" name="PassThrough">
+			<vp source="ScreenShader.vert"/>
+			<fp source="PassThrough.frag"/>
+		</shader>	
+		<shader type="glsl" name="ExtractBloom">
+			<vp source="ScreenShader.vert"/>
+			<fp source="ExtractBloom.frag">
+				<params>
+					<param name="brightThreshold" type="Number" default="2.0"/>
+				</params>								
+			</fp>			
+		</shader>							
+	</shaders>
+	<materials>
+		<material name="HDRProcess">
+			<shader name="HDRProcessShader">
+			</shader>
+		</material>	
+		<material name="HDRProcessBloom">
+			<rendertargets type="rgba_fp16">
+				<rendertarget id="base_target"  sizeMode="normalized" width="1.0" height="1.0"/>			
+				<rendertarget id="bloomtarget"  sizeMode="pixels" width="512" height="512"/>
+				<rendertarget id="bloomtarget2"  sizeMode="pixels" width="512" height="512"/>				
+				<rendertarget id="bloomtarget_final"  sizeMode="pixels" width="512" height="512"/>
+			</rendertargets>
+			<shader name="PassThrough">
+				<targettextures>
+					<targettexture mode="out" id="base_target"/>
+				</targettextures>
+			</shader>	
+			<shader name="ExtractBloom">
+				<targettextures>			
+					<targettexture mode="out" id="bloomtarget"/>
+				</targettextures>
+			</shader>									
+			<shader name="HDRBloomH">
+				<targettextures>
+					<targettexture mode="in" name="screenTexture" id="bloomtarget"/>				
+					<targettexture mode="out" id="bloomtarget2"/>
+				</targettextures>
+			</shader>		
+			<shader name="HDRBloomV">
+				<targettextures>
+					<targettexture mode="in" name="screenTexture" id="bloomtarget2"/>
+					<targettexture mode="out" id="bloomtarget_final"/>					
+				</targettextures>													
+			</shader>
+			
+			<shader name="HDRProcessShaderBloom">
+				<targettextures>
+					<targettexture mode="in" name="baseTexture" id="base_target"/>								
+					<targettexture mode="in" name="bloomTexture" id="bloomtarget_final"/>				
+				</targettextures>													
+			</shader>			
+		</material>
+	</materials>
+</polycode>

BIN
Assets/Icons/main_icon.png


+ 1 - 5
Assets/Templates/C++/Linux/HelloPolycodeApp.cpp

@@ -2,11 +2,7 @@
 
 
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 HelloPolycodeApp::HelloPolycodeApp(PolycodeView *view) : EventHandler() {
 
 
-#ifdef __APPLE__
-	core = new CocoaCore(view, 640,480,false,0,90);	  
-#else
-	core = new SDLCore(view, 640,480,false,0,90);	  
-#endif
+	core = new SDLCore(view, 640,480,false,false,0,0,90);	  
 
 
 	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
 	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
 	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);

+ 1 - 1
Assets/Templates/C++/Linux/Makefile

@@ -1,6 +1,6 @@
 CC=g++
 CC=g++
 CFLAGS=-I../../Core/Dependencies/include -I../../Core/Dependencies/include/AL -I../../Core/include -I../../Modules/include -I../../Modules/Dependencies/include -I../../Modules/Dependencies/include/bullet
 CFLAGS=-I../../Core/Dependencies/include -I../../Core/Dependencies/include/AL -I../../Core/include -I../../Modules/include -I../../Modules/Dependencies/include -I../../Modules/Dependencies/include/bullet
-LDFLAGS=../../Core/lib/libPolycore.a ../../Core/Dependencies/lib/libfreetype.a ../../Core/Dependencies/lib/liblibvorbisfile.a ../../Core/Dependencies/lib/liblibvorbis.a ../../Core/Dependencies/lib/liblibogg.a ../../Core/Dependencies/lib/libopenal.a ../../Core/Dependencies/lib/libphysfs.a ../../Core/Dependencies/lib/libpng15.a ../../Core/Dependencies/lib/libz.a -lGL -lGLU -lSDL ../../Modules/lib/libPolycode2DPhysics.a ../../Modules/Dependencies/lib/libBox2D.a ../../Modules/lib/libPolycode3DPhysics.a ../../Modules/Dependencies/lib/libBulletDynamics.a ../../Modules/Dependencies/lib/libBulletCollision.a ../../Modules/Dependencies/lib/libLinearMath.a ../../Modules/lib/libPolycodeNetworking.a
+LDFLAGS=-lrt -ldl -lpthread ../../Core/lib/libPolycore.a ../../Core/Dependencies/lib/libfreetype.a ../../Core/Dependencies/lib/liblibvorbisfile.a ../../Core/Dependencies/lib/liblibvorbis.a ../../Core/Dependencies/lib/liblibogg.a ../../Core/Dependencies/lib/libopenal.a ../../Core/Dependencies/lib/libphysfs.a ../../Core/Dependencies/lib/libpng15.a ../../Core/Dependencies/lib/libz.a -lGL -lGLU -lSDL ../../Modules/lib/libPolycode2DPhysics.a ../../Modules/Dependencies/lib/libBox2D.a ../../Modules/lib/libPolycode3DPhysics.a ../../Modules/Dependencies/lib/libBulletDynamics.a ../../Modules/Dependencies/lib/libBulletCollision.a ../../Modules/Dependencies/lib/libLinearMath.a ../../Modules/lib/libPolycodeNetworking.a
 
 
 default:
 default:
 	$(CC) $(CFLAGS) main.cpp HelloPolycodeApp.cpp -o PolycodeTemplate $(LDFLAGS)
 	$(CC) $(CFLAGS) main.cpp HelloPolycodeApp.cpp -o PolycodeTemplate $(LDFLAGS)

+ 75 - 0
Assets/Templates/C++/Windows/Polycode.props

@@ -0,0 +1,75 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ImportGroup Label="PropertySheets" />
+  <PropertyGroup Label="UserMacros">
+    <PolycodeDir>$(SolutionDir)..\..\</PolycodeDir>
+    <PolycodeCoreLibsDebug>Polycore_d.lib</PolycodeCoreLibsDebug>
+    <PolycodeCoreLibsRelease>Polycore.lib</PolycodeCoreLibsRelease>
+    <PolycodeDependLibsDebug>freetype_d.lib;liboggd.lib;libpng15_staticd.lib;libvorbisd.lib;libvorbisfiled.lib;lua5.1d.lib;OpenAL32d.lib;physfsd.lib;zlibd.lib;zlibstaticd.lib</PolycodeDependLibsDebug>
+    <PolycodeDependLibsRelease>freetype.lib;libogg.lib;libpng15_static.lib;libvorbis.lib;libvorbisfile.lib;lua5.1.lib;OpenAL32.lib;physfs.lib;zlib.lib;zlibstatic.lib</PolycodeDependLibsRelease>
+    <PolycodeWinLibsDebug>opengl32.lib;glu32.lib;winmm.lib;ws2_32.lib</PolycodeWinLibsDebug>
+    <PolycodeWinLibsRelease>opengl32.lib;glu32.lib;winmm.lib;ws2_32.lib</PolycodeWinLibsRelease>
+    <PolycodeLibsDebug>$(PolycodeCoreLibsDebug);$(PolycodeDependLibsDebug);$(PolycodeWinLibsDebug)</PolycodeLibsDebug>
+    <PolycodeLibsRelease>$(PolycodeCoreLibsRelease);$(PolycodeDependLibsRelease);$(PolycodeWinLibsRelease)</PolycodeLibsRelease>
+  </PropertyGroup>
+  <PropertyGroup>
+    <IncludePath>$(PolycodeDir)Core\include;$(PolycodeDir)Core\Dependencies\include;$(PolycodeDir)Core\PolycodeView;$(PolycodeDir)Core\Dependencies\include\AL;$(IncludePath)</IncludePath>
+  </PropertyGroup>
+  <PropertyGroup>
+    <LibraryPath>$(PolycodeDir)Core\lib;$(PolycodeDir)Core\Dependencies\lib;$(LibraryPath)</LibraryPath>
+  </PropertyGroup>
+  <ItemDefinitionGroup>
+    <ClCompile>
+      <PreprocessorDefinitions>WIN32;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <WarningLevel>Level3</WarningLevel>
+    </ClCompile>
+    <Link>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <SubSystem>Windows</SubSystem>
+    </Link>
+    <PostBuildEvent>
+      <Command>if not exist "$(SolutionDir)default.pak" copy "$(PolycodeDir)Core\Assets\default.pak" "$(SolutionDir)"
+if not exist "$(SolutionDir)hdr.pak" copy "$(PolycodeDir)Core\Assets\hdr.pak" "$(SolutionDir)"
+
+if "$(ConfigurationName)" == "Debug" (
+  if not exist "$(TargetDir)OpenAL32d.dll" copy "$(PolycodeDir)Core\Dependencies\bin\OpenAL32d.dll" "$(TargetDir)"
+  if not exist "$(TargetDir)zlibd.dll" copy "$(PolycodeDir)Core\Dependencies\bin\zlibd.dll" "$(TargetDir)"
+) else (
+    if not exist "$(TargetDir)OpenAL32.dll" copy "$(PolycodeDir)Core\Dependencies\bin\OpenAL32.dll" "$(TargetDir)"
+    if not exist "$(TargetDir)zlib.dll" copy "$(PolycodeDir)Core\Dependencies\bin\zlib.dll" "$(TargetDir)"
+)</Command>
+    </PostBuildEvent>
+    <PostBuildEvent>
+      <Message>Copying polycode pak files and dlls to project</Message>
+    </PostBuildEvent>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <BuildMacro Include="PolycodeDir">
+      <Value>$(PolycodeDir)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeCoreLibsDebug">
+      <Value>$(PolycodeCoreLibsDebug)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeCoreLibsRelease">
+      <Value>$(PolycodeCoreLibsRelease)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeDependLibsDebug">
+      <Value>$(PolycodeDependLibsDebug)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeDependLibsRelease">
+      <Value>$(PolycodeDependLibsRelease)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeWinLibsDebug">
+      <Value>$(PolycodeWinLibsDebug)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeWinLibsRelease">
+      <Value>$(PolycodeWinLibsRelease)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeLibsDebug">
+      <Value>$(PolycodeLibsDebug)</Value>
+    </BuildMacro>
+    <BuildMacro Include="PolycodeLibsRelease">
+      <Value>$(PolycodeLibsRelease)</Value>
+    </BuildMacro>
+  </ItemGroup>
+</Project>

+ 21 - 0
Assets/Templates/C++/Windows/PolycodeTemplate.cpp

@@ -0,0 +1,21 @@
+#include <Polycode.h>
+#include "PolycodeTemplateApp.h"
+#include "PolycodeView.h"
+#include "windows.h"
+
+using namespace Polycode;
+
+int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
+{
+	PolycodeView *view = new PolycodeView(hInstance, nCmdShow, L"Polycode Template");
+	PolycodeTemplateApp *app = new PolycodeTemplateApp(view);
+
+	MSG Msg;
+	do {
+		if(PeekMessage(&Msg, NULL, 0,0,PM_REMOVE)) {
+			TranslateMessage(&Msg);
+			DispatchMessage(&Msg);
+		}
+	} while(app->Update());
+	return Msg.wParam;
+}

+ 20 - 0
Assets/Templates/C++/Windows/PolycodeTemplate.sln

@@ -0,0 +1,20 @@
+
+Microsoft Visual Studio Solution File, Format Version 11.00
+# Visual C++ Express 2010
+Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "PolycodeTemplate", "PolycodeTemplate.vcxproj", "{D6C2171B-9167-4FB6-851A-DC1CEDCFC43D}"
+EndProject
+Global
+	GlobalSection(SolutionConfigurationPlatforms) = preSolution
+		Debug|Win32 = Debug|Win32
+		Release|Win32 = Release|Win32
+	EndGlobalSection
+	GlobalSection(ProjectConfigurationPlatforms) = postSolution
+		{D6C2171B-9167-4FB6-851A-DC1CEDCFC43D}.Debug|Win32.ActiveCfg = Debug|Win32
+		{D6C2171B-9167-4FB6-851A-DC1CEDCFC43D}.Debug|Win32.Build.0 = Debug|Win32
+		{D6C2171B-9167-4FB6-851A-DC1CEDCFC43D}.Release|Win32.ActiveCfg = Release|Win32
+		{D6C2171B-9167-4FB6-851A-DC1CEDCFC43D}.Release|Win32.Build.0 = Release|Win32
+	EndGlobalSection
+	GlobalSection(SolutionProperties) = preSolution
+		HideSolutionNode = FALSE
+	EndGlobalSection
+EndGlobal

+ 87 - 0
Assets/Templates/C++/Windows/PolycodeTemplate.vcxproj

@@ -0,0 +1,87 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+  <ItemGroup Label="ProjectConfigurations">
+    <ProjectConfiguration Include="Debug|Win32">
+      <Configuration>Debug</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+    <ProjectConfiguration Include="Release|Win32">
+      <Configuration>Release</Configuration>
+      <Platform>Win32</Platform>
+    </ProjectConfiguration>
+  </ItemGroup>
+  <PropertyGroup Label="Globals">
+    <ProjectGuid>{D6C2171B-9167-4FB6-851A-DC1CEDCFC43D}</ProjectGuid>
+    <Keyword>Win32Proj</Keyword>
+    <RootNamespace>PolycodeTemplate</RootNamespace>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>true</UseDebugLibraries>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
+    <ConfigurationType>Application</ConfigurationType>
+    <UseDebugLibraries>false</UseDebugLibraries>
+    <WholeProgramOptimization>true</WholeProgramOptimization>
+    <CharacterSet>Unicode</CharacterSet>
+  </PropertyGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
+  <ImportGroup Label="ExtensionSettings">
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="Polycode.props" />
+  </ImportGroup>
+  <ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
+    <Import Project="Polycode.props" />
+  </ImportGroup>
+  <PropertyGroup Label="UserMacros" />
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <LinkIncremental>true</LinkIncremental>
+  </PropertyGroup>
+  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <LinkIncremental>false</LinkIncremental>
+  </PropertyGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
+    <ClCompile>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <Optimization>Disabled</Optimization>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
+    </ClCompile>
+    <Link>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <AdditionalDependencies>$(PolycodeLibsDebug);%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
+    <ClCompile>
+      <PrecompiledHeader>
+      </PrecompiledHeader>
+      <Optimization>MaxSpeed</Optimization>
+      <FunctionLevelLinking>true</FunctionLevelLinking>
+      <IntrinsicFunctions>true</IntrinsicFunctions>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+    </ClCompile>
+    <Link>
+      <GenerateDebugInformation>true</GenerateDebugInformation>
+      <EnableCOMDATFolding>true</EnableCOMDATFolding>
+      <OptimizeReferences>true</OptimizeReferences>
+      <AdditionalDependencies>$(PolycodeLibsRelease);%(AdditionalDependencies)</AdditionalDependencies>
+    </Link>
+  </ItemDefinitionGroup>
+  <ItemGroup>
+    <ClCompile Include="PolycodeTemplate.cpp" />
+    <ClCompile Include="PolycodeTemplateApp.cpp" />
+  </ItemGroup>
+  <ItemGroup>
+    <ClInclude Include="PolycodeTemplateApp.h" />
+  </ItemGroup>
+  <Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
+  <ImportGroup Label="ExtensionTargets">
+  </ImportGroup>
+</Project>

+ 16 - 0
Assets/Templates/C++/Windows/PolycodeTemplateApp.cpp

@@ -0,0 +1,16 @@
+#include "PolycodeTemplateApp.h"
+
+PolycodeTemplateApp::PolycodeTemplateApp(PolycodeView *view) {
+	core = new Win32Core(view, 640,480,false, false, 0, 0,60);	  
+	CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
+	CoreServices::getInstance()->getResourceManager()->addDirResource("default", false);
+
+	// Write your code here
+}
+PolycodeTemplateApp::~PolycodeTemplateApp() {
+    
+}
+
+bool PolycodeTemplateApp::Update() {
+	return core->Update();
+}

+ 15 - 0
Assets/Templates/C++/Windows/PolycodeTemplateApp.h

@@ -0,0 +1,15 @@
+#include "PolycodeView.h"
+#include "Polycode.h"
+
+using namespace Polycode;
+
+class PolycodeTemplateApp {
+public:
+    PolycodeTemplateApp(PolycodeView *view);
+    ~PolycodeTemplateApp();
+    
+    bool Update();
+    
+private:
+    Core *core;
+};

+ 6 - 0
Assets/Templates/C++/Xcode/PolycodeTemplate.xcodeproj/project.pbxproj

@@ -7,6 +7,7 @@
 	objects = {
 	objects = {
 
 
 /* Begin PBXBuildFile section */
 /* Begin PBXBuildFile section */
+		6D022DEA1598EBF30030B45F /* main_icon.icns in Resources */ = {isa = PBXBuildFile; fileRef = 6D022DE91598EBF30030B45F /* main_icon.icns */; };
 		6D2800BC13760D3E00BD8D0D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D2800BB13760D3E00BD8D0D /* Cocoa.framework */; };
 		6D2800BC13760D3E00BD8D0D /* Cocoa.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6D2800BB13760D3E00BD8D0D /* Cocoa.framework */; };
 		6D2800C613760D3E00BD8D0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6D2800C413760D3E00BD8D0D /* InfoPlist.strings */; };
 		6D2800C613760D3E00BD8D0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6D2800C413760D3E00BD8D0D /* InfoPlist.strings */; };
 		6D2800C913760D3E00BD8D0D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D2800C813760D3E00BD8D0D /* main.m */; };
 		6D2800C913760D3E00BD8D0D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D2800C813760D3E00BD8D0D /* main.m */; };
@@ -30,6 +31,7 @@
 /* End PBXBuildFile section */
 /* End PBXBuildFile section */
 
 
 /* Begin PBXFileReference section */
 /* Begin PBXFileReference section */
+		6D022DE91598EBF30030B45F /* main_icon.icns */ = {isa = PBXFileReference; lastKnownFileType = image.icns; path = main_icon.icns; sourceTree = "<group>"; };
 		6D2800B713760D3E00BD8D0D /* PolycodeTemplate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PolycodeTemplate.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		6D2800B713760D3E00BD8D0D /* PolycodeTemplate.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = PolycodeTemplate.app; sourceTree = BUILT_PRODUCTS_DIR; };
 		6D2800BB13760D3E00BD8D0D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
 		6D2800BB13760D3E00BD8D0D /* Cocoa.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Cocoa.framework; path = System/Library/Frameworks/Cocoa.framework; sourceTree = SDKROOT; };
 		6D2800BE13760D3E00BD8D0D /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
 		6D2800BE13760D3E00BD8D0D /* AppKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AppKit.framework; path = System/Library/Frameworks/AppKit.framework; sourceTree = SDKROOT; };
@@ -145,6 +147,7 @@
 			isa = PBXGroup;
 			isa = PBXGroup;
 			children = (
 			children = (
 				6D2800FD13760FC400BD8D0D /* default.pak */,
 				6D2800FD13760FC400BD8D0D /* default.pak */,
+				6D022DE91598EBF30030B45F /* main_icon.icns */,
 				6D2800F713760E7C00BD8D0D /* PolycodeView.h */,
 				6D2800F713760E7C00BD8D0D /* PolycodeView.h */,
 				6D2800F813760E7C00BD8D0D /* PolycodeView.mm */,
 				6D2800F813760E7C00BD8D0D /* PolycodeView.mm */,
 				6D2800CD13760D3E00BD8D0D /* PolycodeTemplateAppDelegate.h */,
 				6D2800CD13760D3E00BD8D0D /* PolycodeTemplateAppDelegate.h */,
@@ -213,6 +216,7 @@
 				6D2800CC13760D3E00BD8D0D /* Credits.rtf in Resources */,
 				6D2800CC13760D3E00BD8D0D /* Credits.rtf in Resources */,
 				6D2800D213760D3E00BD8D0D /* MainMenu.xib in Resources */,
 				6D2800D213760D3E00BD8D0D /* MainMenu.xib in Resources */,
 				6D2800FE13760FC400BD8D0D /* default.pak in Resources */,
 				6D2800FE13760FC400BD8D0D /* default.pak in Resources */,
+				6D022DEA1598EBF30030B45F /* main_icon.icns in Resources */,
 			);
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			runOnlyForDeploymentPostprocessing = 0;
 		};
 		};
@@ -305,6 +309,7 @@
 					"\"$(SRCROOT)/../../Core/Include\"",
 					"\"$(SRCROOT)/../../Core/Include\"",
 					"\"$(SRCROOT)/../../Core/Dependencies/Include\"",
 					"\"$(SRCROOT)/../../Core/Dependencies/Include\"",
 					/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenAL.framework/Headers,
 					/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenAL.framework/Headers,
+					/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenAL.framework/Headers,
 				);
 				);
 				INFOPLIST_FILE = "PolycodeTemplate/PolycodeTemplate-Info.plist";
 				INFOPLIST_FILE = "PolycodeTemplate/PolycodeTemplate-Info.plist";
 				LIBRARY_SEARCH_PATHS = (
 				LIBRARY_SEARCH_PATHS = (
@@ -331,6 +336,7 @@
 					"\"$(SRCROOT)/../../Core/Include\"",
 					"\"$(SRCROOT)/../../Core/Include\"",
 					"\"$(SRCROOT)/../../Core/Dependencies/Include\"",
 					"\"$(SRCROOT)/../../Core/Dependencies/Include\"",
 					/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenAL.framework/Headers,
 					/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks/OpenAL.framework/Headers,
+					/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.7.sdk/System/Library/Frameworks/OpenAL.framework/Headers,
 				);
 				);
 				INFOPLIST_FILE = "PolycodeTemplate/PolycodeTemplate-Info.plist";
 				INFOPLIST_FILE = "PolycodeTemplate/PolycodeTemplate-Info.plist";
 				LIBRARY_SEARCH_PATHS = (
 				LIBRARY_SEARCH_PATHS = (

+ 1 - 1
Assets/Templates/C++/Xcode/PolycodeTemplate/PolycodeTemplate-Info.plist

@@ -7,7 +7,7 @@
 	<key>CFBundleExecutable</key>
 	<key>CFBundleExecutable</key>
 	<string>${EXECUTABLE_NAME}</string>
 	<string>${EXECUTABLE_NAME}</string>
 	<key>CFBundleIconFile</key>
 	<key>CFBundleIconFile</key>
-	<string></string>
+	<string>main_icon.icns</string>
 	<key>CFBundleIdentifier</key>
 	<key>CFBundleIdentifier</key>
 	<string>org.polycode.${PRODUCT_NAME:rfc1034identifier}</string>
 	<string>org.polycode.${PRODUCT_NAME:rfc1034identifier}</string>
 	<key>CFBundleInfoDictionaryVersion</key>
 	<key>CFBundleInfoDictionaryVersion</key>

+ 46 - 114
Assets/Templates/C++/Xcode/PolycodeTemplate/en.lproj/MainMenu.xib

@@ -1,14 +1,14 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
 	<data>
 	<data>
-		<int key="IBDocument.SystemTarget">1060</int>
-		<string key="IBDocument.SystemVersion">10J3331a</string>
-		<string key="IBDocument.InterfaceBuilderVersion">1306</string>
-		<string key="IBDocument.AppKitVersion">1038.35</string>
-		<string key="IBDocument.HIToolboxVersion">461.00</string>
+		<int key="IBDocument.SystemTarget">1070</int>
+		<string key="IBDocument.SystemVersion">11E53</string>
+		<string key="IBDocument.InterfaceBuilderVersion">2182</string>
+		<string key="IBDocument.AppKitVersion">1138.47</string>
+		<string key="IBDocument.HIToolboxVersion">569.00</string>
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
 		<object class="NSMutableDictionary" key="IBDocument.PluginVersions">
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin</string>
-			<string key="NS.object.0">1306</string>
+			<string key="NS.object.0">2182</string>
 		</object>
 		</object>
 		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
 		<object class="NSArray" key="IBDocument.IntegratedClassDependencies">
 			<bool key="EncodedWithXMLCoder">YES</bool>
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -24,11 +24,8 @@
 			<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 			<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 		</object>
 		</object>
 		<object class="NSMutableDictionary" key="IBDocument.Metadata">
 		<object class="NSMutableDictionary" key="IBDocument.Metadata">
-			<bool key="EncodedWithXMLCoder">YES</bool>
-			<object class="NSArray" key="dict.sortedKeys" id="0">
-				<bool key="EncodedWithXMLCoder">YES</bool>
-			</object>
-			<reference key="dict.values" ref="0"/>
+			<string key="NS.key.0">PluginDependencyRecalculationVersion</string>
+			<integer value="1" key="NS.object.0"/>
 		</object>
 		</object>
 		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1048">
 		<object class="NSMutableArray" key="IBDocument.RootObjects" id="1048">
 			<bool key="EncodedWithXMLCoder">YES</bool>
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -269,10 +266,11 @@
 				<int key="NSWindowStyleMask">15</int>
 				<int key="NSWindowStyleMask">15</int>
 				<int key="NSWindowBacking">2</int>
 				<int key="NSWindowBacking">2</int>
 				<string key="NSWindowRect">{{335, 390}, {480, 360}}</string>
 				<string key="NSWindowRect">{{335, 390}, {480, 360}}</string>
-				<int key="NSWTFlags">1954021376</int>
+				<int key="NSWTFlags">1685585920</int>
 				<string key="NSWindowTitle">PolycodeTemplate</string>
 				<string key="NSWindowTitle">PolycodeTemplate</string>
 				<string key="NSWindowClass">NSWindow</string>
 				<string key="NSWindowClass">NSWindow</string>
 				<nil key="NSViewClass"/>
 				<nil key="NSViewClass"/>
+				<nil key="NSUserInterfaceItemIdentifier"/>
 				<object class="NSView" key="NSWindowView" id="439893737">
 				<object class="NSView" key="NSWindowView" id="439893737">
 					<reference key="NSNextResponder"/>
 					<reference key="NSNextResponder"/>
 					<int key="NSvFlags">256</int>
 					<int key="NSvFlags">256</int>
@@ -285,7 +283,6 @@
 							<string key="NSFrameSize">{480, 360}</string>
 							<string key="NSFrameSize">{480, 360}</string>
 							<reference key="NSSuperview" ref="439893737"/>
 							<reference key="NSSuperview" ref="439893737"/>
 							<reference key="NSWindow"/>
 							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView"/>
 							<object class="NSOpenGLPixelFormat" key="NSPixelFormat">
 							<object class="NSOpenGLPixelFormat" key="NSPixelFormat">
 								<object class="NSMutableData" key="NSPixelAttributes">
 								<object class="NSMutableData" key="NSPixelAttributes">
 									<bytes key="NS.bytes">AAAAYAAAAAA</bytes>
 									<bytes key="NS.bytes">AAAAYAAAAAA</bytes>
@@ -293,13 +290,14 @@
 							</object>
 							</object>
 						</object>
 						</object>
 					</object>
 					</object>
-					<string key="NSFrame">{{7, 11}, {480, 360}}</string>
+					<string key="NSFrameSize">{480, 360}</string>
 					<reference key="NSSuperview"/>
 					<reference key="NSSuperview"/>
 					<reference key="NSWindow"/>
 					<reference key="NSWindow"/>
 					<reference key="NSNextKeyView" ref="115691534"/>
 					<reference key="NSNextKeyView" ref="115691534"/>
 				</object>
 				</object>
 				<string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
 				<string key="NSScreenRect">{{0, 0}, {1680, 1028}}</string>
-				<string key="NSMaxSize">{1e+13, 1e+13}</string>
+				<string key="NSMaxSize">{10000000000000, 10000000000000}</string>
+				<bool key="NSWindowIsRestorable">YES</bool>
 			</object>
 			</object>
 			<object class="NSCustomObject" id="976324537">
 			<object class="NSCustomObject" id="976324537">
 				<string key="NSClassName">PolycodeTemplateAppDelegate</string>
 				<string key="NSClassName">PolycodeTemplateAppDelegate</string>
@@ -311,6 +309,30 @@
 		<object class="IBObjectContainer" key="IBDocument.Objects">
 		<object class="IBObjectContainer" key="IBDocument.Objects">
 			<object class="NSMutableArray" key="connectionRecords">
 			<object class="NSMutableArray" key="connectionRecords">
 				<bool key="EncodedWithXMLCoder">YES</bool>
 				<bool key="EncodedWithXMLCoder">YES</bool>
+				<object class="IBConnectionRecord">
+					<object class="IBActionConnection" key="connection">
+						<string key="label">terminate:</string>
+						<reference key="source" ref="1050"/>
+						<reference key="destination" ref="632727374"/>
+					</object>
+					<int key="connectionID">449</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBActionConnection" key="connection">
+						<string key="label">orderFrontStandardAboutPanel:</string>
+						<reference key="source" ref="1021"/>
+						<reference key="destination" ref="238522557"/>
+					</object>
+					<int key="connectionID">142</int>
+				</object>
+				<object class="IBConnectionRecord">
+					<object class="IBOutletConnection" key="connection">
+						<string key="label">delegate</string>
+						<reference key="source" ref="1021"/>
+						<reference key="destination" ref="976324537"/>
+					</object>
+					<int key="connectionID">495</int>
+				</object>
 				<object class="IBConnectionRecord">
 				<object class="IBConnectionRecord">
 					<object class="IBActionConnection" key="connection">
 					<object class="IBActionConnection" key="connection">
 						<string key="label">performMiniaturize:</string>
 						<string key="label">performMiniaturize:</string>
@@ -327,14 +349,6 @@
 					</object>
 					</object>
 					<int key="connectionID">39</int>
 					<int key="connectionID">39</int>
 				</object>
 				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBActionConnection" key="connection">
-						<string key="label">orderFrontStandardAboutPanel:</string>
-						<reference key="source" ref="1021"/>
-						<reference key="destination" ref="238522557"/>
-					</object>
-					<int key="connectionID">142</int>
-				</object>
 				<object class="IBConnectionRecord">
 				<object class="IBConnectionRecord">
 					<object class="IBActionConnection" key="connection">
 					<object class="IBActionConnection" key="connection">
 						<string key="label">performZoom:</string>
 						<string key="label">performZoom:</string>
@@ -367,14 +381,6 @@
 					</object>
 					</object>
 					<int key="connectionID">370</int>
 					<int key="connectionID">370</int>
 				</object>
 				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBActionConnection" key="connection">
-						<string key="label">terminate:</string>
-						<reference key="source" ref="1050"/>
-						<reference key="destination" ref="632727374"/>
-					</object>
-					<int key="connectionID">449</int>
-				</object>
 				<object class="IBConnectionRecord">
 				<object class="IBConnectionRecord">
 					<object class="IBActionConnection" key="connection">
 					<object class="IBActionConnection" key="connection">
 						<string key="label">showHelp:</string>
 						<string key="label">showHelp:</string>
@@ -383,14 +389,6 @@
 					</object>
 					</object>
 					<int key="connectionID">493</int>
 					<int key="connectionID">493</int>
 				</object>
 				</object>
-				<object class="IBConnectionRecord">
-					<object class="IBOutletConnection" key="connection">
-						<string key="label">delegate</string>
-						<reference key="source" ref="1021"/>
-						<reference key="destination" ref="976324537"/>
-					</object>
-					<int key="connectionID">495</int>
-				</object>
 				<object class="IBConnectionRecord">
 				<object class="IBConnectionRecord">
 					<object class="IBOutletConnection" key="connection">
 					<object class="IBOutletConnection" key="connection">
 						<string key="label">window</string>
 						<string key="label">window</string>
@@ -413,7 +411,9 @@
 					<bool key="EncodedWithXMLCoder">YES</bool>
 					<bool key="EncodedWithXMLCoder">YES</bool>
 					<object class="IBObjectRecord">
 					<object class="IBObjectRecord">
 						<int key="objectID">0</int>
 						<int key="objectID">0</int>
-						<reference key="object" ref="0"/>
+						<object class="NSArray" key="object" id="0">
+							<bool key="EncodedWithXMLCoder">YES</bool>
+						</object>
 						<reference key="children" ref="1048"/>
 						<reference key="children" ref="1048"/>
 						<nil key="parent"/>
 						<nil key="parent"/>
 					</object>
 					</object>
@@ -645,139 +645,75 @@
 					<string>-2.IBPluginDependency</string>
 					<string>-2.IBPluginDependency</string>
 					<string>-3.IBPluginDependency</string>
 					<string>-3.IBPluginDependency</string>
 					<string>129.IBPluginDependency</string>
 					<string>129.IBPluginDependency</string>
-					<string>129.ImportedFromIB2</string>
 					<string>130.IBPluginDependency</string>
 					<string>130.IBPluginDependency</string>
-					<string>130.ImportedFromIB2</string>
-					<string>130.editorWindowContentRectSynchronizationRect</string>
 					<string>131.IBPluginDependency</string>
 					<string>131.IBPluginDependency</string>
-					<string>131.ImportedFromIB2</string>
 					<string>134.IBPluginDependency</string>
 					<string>134.IBPluginDependency</string>
-					<string>134.ImportedFromIB2</string>
 					<string>136.IBPluginDependency</string>
 					<string>136.IBPluginDependency</string>
-					<string>136.ImportedFromIB2</string>
 					<string>143.IBPluginDependency</string>
 					<string>143.IBPluginDependency</string>
-					<string>143.ImportedFromIB2</string>
 					<string>144.IBPluginDependency</string>
 					<string>144.IBPluginDependency</string>
-					<string>144.ImportedFromIB2</string>
 					<string>145.IBPluginDependency</string>
 					<string>145.IBPluginDependency</string>
-					<string>145.ImportedFromIB2</string>
 					<string>149.IBPluginDependency</string>
 					<string>149.IBPluginDependency</string>
-					<string>149.ImportedFromIB2</string>
 					<string>150.IBPluginDependency</string>
 					<string>150.IBPluginDependency</string>
-					<string>150.ImportedFromIB2</string>
 					<string>19.IBPluginDependency</string>
 					<string>19.IBPluginDependency</string>
-					<string>19.ImportedFromIB2</string>
 					<string>23.IBPluginDependency</string>
 					<string>23.IBPluginDependency</string>
-					<string>23.ImportedFromIB2</string>
 					<string>236.IBPluginDependency</string>
 					<string>236.IBPluginDependency</string>
-					<string>236.ImportedFromIB2</string>
 					<string>239.IBPluginDependency</string>
 					<string>239.IBPluginDependency</string>
-					<string>239.ImportedFromIB2</string>
-					<string>24.IBEditorWindowLastContentRect</string>
 					<string>24.IBPluginDependency</string>
 					<string>24.IBPluginDependency</string>
-					<string>24.ImportedFromIB2</string>
-					<string>24.editorWindowContentRectSynchronizationRect</string>
-					<string>29.IBEditorWindowLastContentRect</string>
 					<string>29.IBPluginDependency</string>
 					<string>29.IBPluginDependency</string>
-					<string>29.ImportedFromIB2</string>
-					<string>29.WindowOrigin</string>
-					<string>29.editorWindowContentRectSynchronizationRect</string>
-					<string>371.IBEditorWindowLastContentRect</string>
 					<string>371.IBPluginDependency</string>
 					<string>371.IBPluginDependency</string>
 					<string>371.IBWindowTemplateEditedContentRect</string>
 					<string>371.IBWindowTemplateEditedContentRect</string>
 					<string>371.NSWindowTemplate.visibleAtLaunch</string>
 					<string>371.NSWindowTemplate.visibleAtLaunch</string>
-					<string>371.editorWindowContentRectSynchronizationRect</string>
 					<string>372.IBPluginDependency</string>
 					<string>372.IBPluginDependency</string>
 					<string>420.IBPluginDependency</string>
 					<string>420.IBPluginDependency</string>
 					<string>490.IBPluginDependency</string>
 					<string>490.IBPluginDependency</string>
-					<string>491.IBEditorWindowLastContentRect</string>
 					<string>491.IBPluginDependency</string>
 					<string>491.IBPluginDependency</string>
 					<string>492.IBPluginDependency</string>
 					<string>492.IBPluginDependency</string>
 					<string>494.IBPluginDependency</string>
 					<string>494.IBPluginDependency</string>
 					<string>5.IBPluginDependency</string>
 					<string>5.IBPluginDependency</string>
-					<string>5.ImportedFromIB2</string>
 					<string>533.CustomClassName</string>
 					<string>533.CustomClassName</string>
 					<string>533.IBPluginDependency</string>
 					<string>533.IBPluginDependency</string>
 					<string>56.IBPluginDependency</string>
 					<string>56.IBPluginDependency</string>
-					<string>56.ImportedFromIB2</string>
-					<string>57.IBEditorWindowLastContentRect</string>
 					<string>57.IBPluginDependency</string>
 					<string>57.IBPluginDependency</string>
-					<string>57.ImportedFromIB2</string>
-					<string>57.editorWindowContentRectSynchronizationRect</string>
 					<string>58.IBPluginDependency</string>
 					<string>58.IBPluginDependency</string>
-					<string>58.ImportedFromIB2</string>
 					<string>92.IBPluginDependency</string>
 					<string>92.IBPluginDependency</string>
-					<string>92.ImportedFromIB2</string>
 				</object>
 				</object>
-				<object class="NSMutableArray" key="dict.values">
+				<object class="NSArray" key="dict.values">
 					<bool key="EncodedWithXMLCoder">YES</bool>
 					<bool key="EncodedWithXMLCoder">YES</bool>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{436, 809}, {64, 6}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{654, 239}, {194, 73}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{525, 802}, {197, 73}}</string>
-					<string>{{380, 836}, {512, 20}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{74, 862}</string>
-					<string>{{6, 978}, {478, 20}}</string>
-					<string>{{380, 496}, {480, 360}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>{{380, 496}, {480, 360}}</string>
 					<string>{{380, 496}, {480, 360}}</string>
 					<integer value="1"/>
 					<integer value="1"/>
-					<string>{{33, 99}, {480, 360}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<string>{{725, 289}, {246, 23}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>PolycodeView</string>
 					<string>PolycodeView</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{286, 129}, {275, 183}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{23, 794}, {245, 183}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 				</object>
 				</object>
 			</object>
 			</object>
 			<object class="NSMutableDictionary" key="unlocalizedProperties">
 			<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -807,7 +743,7 @@
 							<string>mainView</string>
 							<string>mainView</string>
 							<string>window</string>
 							<string>window</string>
 						</object>
 						</object>
-						<object class="NSMutableArray" key="dict.values">
+						<object class="NSArray" key="dict.values">
 							<bool key="EncodedWithXMLCoder">YES</bool>
 							<bool key="EncodedWithXMLCoder">YES</bool>
 							<string>PolycodeView</string>
 							<string>PolycodeView</string>
 							<string>NSWindow</string>
 							<string>NSWindow</string>
@@ -820,7 +756,7 @@
 							<string>mainView</string>
 							<string>mainView</string>
 							<string>window</string>
 							<string>window</string>
 						</object>
 						</object>
-						<object class="NSMutableArray" key="dict.values">
+						<object class="NSArray" key="dict.values">
 							<bool key="EncodedWithXMLCoder">YES</bool>
 							<bool key="EncodedWithXMLCoder">YES</bool>
 							<object class="IBToOneOutletInfo">
 							<object class="IBToOneOutletInfo">
 								<string key="name">mainView</string>
 								<string key="name">mainView</string>
@@ -849,10 +785,6 @@
 		</object>
 		</object>
 		<int key="IBDocument.localizationMode">0</int>
 		<int key="IBDocument.localizationMode">0</int>
 		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
 		<string key="IBDocument.TargetRuntimeIdentifier">IBCocoaFramework</string>
-		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDependencyDefaults">
-			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.macosx</string>
-			<integer value="1060" key="NS.object.0"/>
-		</object>
 		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
 		<object class="NSMutableDictionary" key="IBDocument.PluginDeclaredDevelopmentDependencies">
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
 			<integer value="3000" key="NS.object.0"/>
 			<integer value="3000" key="NS.object.0"/>
@@ -866,10 +798,10 @@
 				<string>NSMenuCheckmark</string>
 				<string>NSMenuCheckmark</string>
 				<string>NSMenuMixedState</string>
 				<string>NSMenuMixedState</string>
 			</object>
 			</object>
-			<object class="NSMutableArray" key="dict.values">
+			<object class="NSArray" key="dict.values">
 				<bool key="EncodedWithXMLCoder">YES</bool>
 				<bool key="EncodedWithXMLCoder">YES</bool>
-				<string>{9, 8}</string>
-				<string>{7, 2}</string>
+				<string>{11, 11}</string>
+				<string>{10, 3}</string>
 			</object>
 			</object>
 		</object>
 		</object>
 	</data>
 	</data>

BIN
Assets/Templates/C++/Xcode/PolycodeTemplate/main_icon.icns


+ 3 - 0
Assets/Templates/CMakeLists.txt

@@ -3,6 +3,9 @@ IF(POLYCODE_INSTALL_TEMPLATE)
 IF(APPLE)
 IF(APPLE)
     INSTALL(DIRECTORY "C++/Xcode"
     INSTALL(DIRECTORY "C++/Xcode"
 	DESTINATION "Template/")
 	DESTINATION "Template/")
+ELSEIF(MSVC)
+    INSTALL(DIRECTORY "C++/Windows"
+	DESTINATION "Template/")
 ELSE(APPLE)
 ELSE(APPLE)
     INSTALL(DIRECTORY "C++/Linux"
     INSTALL(DIRECTORY "C++/Linux"
 	DESTINATION "Template/")
 	DESTINATION "Template/")

+ 98 - 20
BUILD.md

@@ -8,8 +8,14 @@ dependencies installed on your computer.
 
 
 The first dependency is CMake. It can be downloaded from 
 The first dependency is CMake. It can be downloaded from 
 http://cmake.org/cmake/resources/software.html or installed using apt
 http://cmake.org/cmake/resources/software.html or installed using apt
-or rpm on most Linux distributions. CMake 2.8.4 or greater is 
-recommended.
+or rpm on most Linux distributions. CMake 2.8.8 or greater is now required.
+
+When Polycode and its Dependencies are built, they will be available
+in the Release/YourArchitecture folder under the main source tree in 
+a structure that should mimic the main binary release.
+
+If you wish to build a 32-bit version on a 64-bit machine in OS X, pass
+-DCMAKE_OSX_ARCHITECTURES=i386 as an argument to cmake
 
 
 ## Building dependencies ##
 ## Building dependencies ##
 
 
@@ -41,6 +47,11 @@ may prefer to use the CMake GUI if unfamiliar with CMake.
 
 
 ### Mac OS X and Xcode ###
 ### Mac OS X and Xcode ###
 
 
+NOTE: If you are using the new XCode that is downloaded from the AppStore
+and cmake complains about not finding XCode in /Developer, you have to run this
+command to update the XCode path:
+sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
+
 To generate an Xcode project for building Polycode dependencies, perform
 To generate an Xcode project for building Polycode dependencies, perform
 the following steps in the Polycode directory from a terminal:
 the following steps in the Polycode directory from a terminal:
 
 
@@ -93,24 +104,19 @@ perform the following steps in the Polycode directory from a terminal:
     
     
 ## Building Polycode ##
 ## Building Polycode ##
 
 
-The Polycode CMake build will look for dependencies installed on the 
-system and by the above dependency build step.
+### Notes ###
 
 
-### CMake variables ###
+The Polycode CMake build will look for dependencies installed as
+static libraries in the Release folder by the above
+dependency build step. It will not use system level versions
+of these libraries, even if you have them installed. The only exception to
+this is SDL for the Linux build, which you must manually install on
+the system level.
 
 
-There are a number of CMake variables that can be used to control what is
-built. These can be passed into CMake on the comment line as -D<name>=<value> 
-or edited in the CMake GUI. Things should build without setting any options,
-but not that some things (Lua bindings, for example) are disabled by default.
+If you want to build documentation, you must have Doxygen installed 
+and in your run path. You can get Doxygen from http://www.doxygen.org
+or install it using a package manager. 
 
 
-* POLYCODE_BUILD_BINDINGS 
-* POLYCODE_BUILD_EXAMPLES
-* POLYCODE_BUILD_MODULES
-* POLYCODE_BUILD_PLAYER
-* POLYCODE_BUILD_TOOLS
-* POLYCODE_INSTALL_FRAMEWORK
-* POLYCODE_INSTALL_PLAYER
- 
 ### Mac OS X and Xcode ###
 ### Mac OS X and Xcode ###
 
 
 To generate an Xcode project for building Polycode, perform the
 To generate an Xcode project for building Polycode, perform the
@@ -124,7 +130,7 @@ This generates a Polycode Xcode project in the Build directory.
 
 
 Build the "ALL_BUILD" target in this project in both Debug and Release
 Build the "ALL_BUILD" target in this project in both Debug and Release
 and then build the "install" target, also in Debug and Release. This
 and then build the "install" target, also in Debug and Release. This
-will install Polycode into the Release/<Platform>/Framework directory,
+will install Polycode into the Release/Darwin/Framework directory,
 which should mirror the binary download from the website and contain
 which should mirror the binary download from the website and contain
 templates and examples that will build out of the box.
 templates and examples that will build out of the box.
 
 
@@ -138,24 +144,96 @@ command prompt:
     cd Build
     cd Build
     cmake -G "Visual Studio 10" ..
     cmake -G "Visual Studio 10" ..
     
     
-This generates a Polycode.sln in the Build directory.
+Build the "ALL_BUILD" target in this project in both Debug and Release
+and then build the "install" target, also in Debug and Release. This
+will install Polycode into the Release/Windows/Framework directory,
+which should mirror the binary download from the website and contain
+templates and examples that will build out of the box.
 
 
-### Unix Makefiles ###
+### Linux ###
 
 
 To generate and build Debug and Release builds with Unix Makefiles 
 To generate and build Debug and Release builds with Unix Makefiles 
 perform the following steps in the Polycode directory from a terminal:
 perform the following steps in the Polycode directory from a terminal:
 
 
+NOTE: You need to install SDL development libraries on your system
+before doing this as they are not automatically installed by the 
+Dependencies project above. You can get SDL from http://www.libsdl.org 
+or using the package manager of your distribution.
+
     mkdir Build
     mkdir Build
     cd Build
     cd Build
     mkdir Debug
     mkdir Debug
     cd Debug
     cd Debug
     cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
     cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
     make
     make
+    make install
     cd ..
     cd ..
     mkdir Release
     mkdir Release
     cd Release
     cd Release
     cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../..
     cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../..
     make
     make
+    make install
+
+This will install Polycode into the Release/Linux/Framework directory,
+which should mirror the binary download from the website and contain
+templates and examples that will build out of the box.
+
+## Building Polycode Lua ##
+
+Note: To build a complete distribution of the standalone Lua tools
+as it appears in the binary release, you will need to build it on all
+supported platforms and copy the module libraries and deployment
+templates from all three into the folder. If you do not have access
+to all the supported platforms, you will not be able to build a complete
+distribution!
+
+To build Polycode Lua, you need to build the bindings and the player,
+which are disabled by default. To do this, you need to add a couple
+of variables to the cmake commands above. To build the bindings, you
+need a python installation with the PLY python module. You can get
+the PLY module at http://www.dabeaz.com/ply/
+
+To enable the bindings and the player, add the following options to the
+cmake command. Otherwise, the steps are exactly the same as the regular 
+Polycode build for your system.
+
+    -DPOLYCODE_BUILD_BINDINGS=ON -DPOLYCODE_BUILD_PLAYER=ON
+
+Note: You need to build the "PolycodeLua" target before you build the "install" target.
+
+After building the install build or running 'make install', perform the
+following commands in the Polycode source root:
+
+### Mac and Linux ###
+
+    cd Standalone
+    mkdir Build
+    cd Build
+    cmake -G "Unix Makefiles" ..
+    make install
+
+This will create a Release/YourArchitecture/Standalone folder with the
+same structure as the binary Polycode Lua release.
+
+### Windows ###
+    
+    cd Standalone
+    mkdir Build
+    cd Build
+    cmake -G "Visual Studio 10" ..
+
+This will create a Standalone.sln solution in the Build directory. Build the
+"install" target of this solution. 
+
+This will create a Release/Windows/Standalone folder with the
+same structure as the binary Polycode Lua release.
+
+### Final steps ###
+
+Since the standalone Lua distribution is supposed to compile packages for
+all platforms, you need to do this build step on all of the platforms and
+merge the Standalone/Modules and Standalone/Publish folders with the one
+you just built.
 
 
 ## TODO ##
 ## TODO ##
 
 

+ 242 - 0
BUILD.txt

@@ -0,0 +1,242 @@
+# Building Polycode and dependencies #
+
+Polycode uses a CMake build generator for automatically downloading and
+building required 3rd party packages and Polycode itself. Polycode is
+setup for preferring custom static libraries over system ones, so 
+please use the dependency build system even if you have all of the
+dependencies installed on your computer.
+
+The first dependency is CMake. It can be downloaded from 
+http://cmake.org/cmake/resources/software.html or installed using apt
+or rpm on most Linux distributions. CMake 2.8.8 or greater is now required.
+
+When Polycode and its Dependencies are built, they will be available
+in the Release/YourArchitecture folder under the main source tree in 
+a structure that should mimic the main binary release.
+
+If you wish to build a 32-bit version on a 64-bit machine in OS X, pass
+-DCMAKE_OSX_ARCHITECTURES=i386 as an argument to cmake
+
+## Building dependencies ##
+
+Polycode depends on a number of third party packages that are not
+included in the Polycode source tree:
+
+* [Lua](http://www.lua.org/)
+* [Freetype](http://www.freetype.org/)
+* [zlib](http://www.zlib.net/)
+* [libpng](http://www.libpng.org/pub/png/libpng.html)
+* [PhysicsFS](http://icculus.org/physfs/)
+* [Ogg Vorbis](http://www.vorbis.com/)
+* [OpenAL](http://www.openal.org/)
+* [SDL](http://www.libsdl.org/)
+* [Box2D](http://www.box2d.org/)
+* [Bullet Physics](http://bulletphysics.org/)
+* [Assimp](http://assimp.sourceforge.net/)
+
+The CMake dependency build system will download and install static
+version of these libraries into the Polycode source tree. It will NOT
+attempt to install any of these packages into your system.
+
+All dependenices will be installed into the Polycode source tree under
+    Release/<Platform>/Framework/
+
+Instructions describe using CMake on the command line, you
+may prefer to use the CMake GUI if unfamiliar with CMake.
+
+
+### Mac OS X and Xcode ###
+
+NOTE: If you are using the new XCode that is downloaded from the AppStore
+and cmake complains about not finding XCode in /Developer, you have to run this
+command to update the XCode path:
+sudo /usr/bin/xcode-select -switch /Applications/Xcode.app/Contents/Developer
+
+To generate an Xcode project for building Polycode dependencies, perform
+the following steps in the Polycode directory from a terminal:
+
+    cd Dependencies
+    mkdir Build
+    cd Build
+    cmake -G Xcode ..
+    
+This generates a PolycodeDependencies Xcode project in the Build 
+directory. Building this project in Xcode will download, build and 
+install the dependencies (make sure you build the ALL_BUILD target).
+Note that you need to build both Debug and
+Release in Xcode 
+
+Note: Release is "Build for Archiving" in Xcode4.
+
+### Windows and Visual Studio ###
+
+To generate a Microsoft Visual Studio (any version) project for building
+Polycode dependencies, perform the following steps in the Polycode 
+directory from a command prompt (for VS2010):
+
+    cd Dependencies
+    mkdir Build
+    cd Build
+    cmake -G "Visual Studio 10" ..
+    
+This generates a PolycodeDependencies.sln in the Build directory. 
+Building this project in Visual Studio will download, build and 
+install the dependencies. Note that you need to build both Debug and
+Release in Visual Studio. 
+
+### Unix Makefiles ###
+
+To generate and build Debug and Release builds with Unix Makefiles 
+perform the following steps in the Polycode directory from a terminal:
+
+    cd Dependencies
+    mkdir Build
+    cd Build
+    mkdir Debug
+    cd Debug
+    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
+    make
+    cd ..
+    mkdir Release
+    cd Release
+    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../..
+    make
+    
+## Building Polycode ##
+
+### Notes ###
+
+The Polycode CMake build will look for dependencies installed as
+static libraries in the Release folder by the above
+dependency build step. It will not use system level versions
+of these libraries, even if you have them installed. The only exception to
+this is SDL for the Linux build, which you must manually install on
+the system level.
+
+If you want to build documentation, you must have Doxygen installed 
+and in your run path. You can get Doxygen from http://www.doxygen.org
+or install it using a package manager. 
+
+### Mac OS X and Xcode ###
+
+To generate an Xcode project for building Polycode, perform the
+following steps in the Polycode directory from a terminal:
+
+    mkdir Build
+    cd Build
+    cmake -G Xcode ..
+
+This generates a Polycode Xcode project in the Build directory.
+
+Build the "ALL_BUILD" target in this project in both Debug and Release
+and then build the "install" target, also in Debug and Release. This
+will install Polycode into the Release/Darwin/Framework directory,
+which should mirror the binary download from the website and contain
+templates and examples that will build out of the box.
+
+### Windows and Visual Studio ###
+
+To generate a Microsoft Visual Studio project for building Polycode, 
+perform the following steps in the Polycode directory from a 
+command prompt:
+
+    mkdir Build
+    cd Build
+    cmake -G "Visual Studio 10" ..
+    
+Build the "ALL_BUILD" target in this project in both Debug and Release
+and then build the "install" target, also in Debug and Release. This
+will install Polycode into the Release/Windows/Framework directory,
+which should mirror the binary download from the website and contain
+templates and examples that will build out of the box.
+
+### Linux ###
+
+To generate and build Debug and Release builds with Unix Makefiles 
+perform the following steps in the Polycode directory from a terminal:
+
+NOTE: You need to install SDL development libraries on your system
+before doing this as they are not automatically installed by the 
+Dependencies project above. You can get SDL from http://www.libsdl.org 
+or using the package manager of your distribution.
+
+    mkdir Build
+    cd Build
+    mkdir Debug
+    cd Debug
+    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug ../..
+    make
+    make install
+    cd ..
+    mkdir Release
+    cd Release
+    cmake -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Release ../..
+    make
+    make install
+
+This will install Polycode into the Release/Linux/Framework directory,
+which should mirror the binary download from the website and contain
+templates and examples that will build out of the box.
+
+## Building Polycode Lua ##
+
+Note: To build a complete distribution of the standalone Lua tools
+as it appears in the binary release, you will need to build it on all
+supported platforms and copy the module libraries and deployment
+templates from all three into the folder. If you do not have access
+to all the supported platforms, you will not be able to build a complete
+distribution!
+
+To build Polycode Lua, you need to build the bindings and the player,
+which are disabled by default. To do this, you need to add a couple
+of variables to the cmake commands above. To build the bindings, you
+need a python installation with the PLY python module. You can get
+the PLY module at http://www.dabeaz.com/ply/
+
+To enable the bindings and the player, add the following options to the
+cmake command. Otherwise, the steps are exactly the same as the regular 
+Polycode build for your system.
+
+    -DPOLYCODE_BUILD_BINDINGS=ON -DPOLYCODE_BUILD_PLAYER=ON
+
+Note: You need to build the "PolycodeLua" target before you build the "install" target.
+
+After building the install build or running 'make install', perform the
+following commands in the Polycode source root:
+
+### Mac and Linux ###
+
+    cd Standalone
+    mkdir Build
+    cd Build
+    cmake -G "Unix Makefiles" ..
+    make install
+
+This will create a Release/YourArchitecture/Standalone folder with the
+same structure as the binary Polycode Lua release.
+
+### Windows ###
+    
+    cd Standalone
+    mkdir Build
+    cd Build
+    cmake -G "Visual Studio 10" ..
+
+This will create a Standalone.sln solution in the Build directory. Build the
+"install" target of this solution. 
+
+This will create a Release/Windows/Standalone folder with the
+same structure as the binary Polycode Lua release.
+
+### Final steps ###
+
+Since the standalone Lua distribution is supposed to compile packages for
+all platforms, you need to do this build step on all of the platforms and
+merge the Standalone/Modules and Standalone/Publish folders with the one
+you just built.
+
+## TODO ##
+
+It would be good to create a CMake build template for people to create
+new Polycode applications with.
+

+ 0 - 87
Bindings/Contents/LUA/API/Polycode.lua

@@ -1,87 +0,0 @@
-require "Polycode/OSFILE"
-require "Polycode/OSFileEntry"
-require "Polycode/OSBasics"
-require "Polycode/BezierCurve"
-require "Polycode/Bone"
-require "Polycode/Camera"
-require "Polycode/Color"
-require "Polycode/Config"
-require "Polycode/PolycodeViewBase"
-require "Polycode/Core"
-require "Polycode/CoreInput"
-require "Polycode/CoreServices"
-require "Polycode/Cubemap"
-require "Polycode/Data"
-require "Polycode/Entity"
-require "Polycode/Event"
-require "Polycode/EventDispatcher"
-require "Polycode/EventHandler"
-require "Polycode/FixedShader"
-require "Polycode/FixedShaderBinding"
-require "Polycode/Font"
-require "Polycode/FontManager"
-require "Polycode/Image"
-require "Polycode/InputEvent"
-require "Polycode/Label"
-require "Polycode/Logger"
-require "Polycode/Material"
-require "Polycode/MaterialManager"
-require "Polycode/Matrix4"
-require "Polycode/VertexBuffer"
-require "Polycode/Mesh"
-require "Polycode/PolycodeModule"
-require "Polycode/ObjectEntry"
-require "Polycode/Particle"
-require "Polycode/ScreenParticleEmitter"
-require "Polycode/SceneParticleEmitter"
-require "Polycode/ParticleEmitter"
-require "Polycode/Perlin"
-require "Polycode/Polygon"
-require "Polycode/Quaternion"
-require "Polycode/QuaternionCurve"
-require "Polycode/Rectangle"
-require "Polycode/Renderer"
-require "Polycode/Resource"
-require "Polycode/ResourceManager"
-require "Polycode/Scene"
-require "Polycode/SceneEntity"
-require "Polycode/SceneLabel"
-require "Polycode/SceneLight"
-require "Polycode/SceneLine"
-require "Polycode/SceneManager"
-require "Polycode/SceneMesh"
-require "Polycode/ScenePrimitive"
-require "Polycode/SceneRenderTexture"
-require "Polycode/SceneSound"
-require "Polycode/SceneSoundListener"
-require "Polycode/Screen"
-require "Polycode/ScreenCurve"
-require "Polycode/ScreenEntity"
-require "Polycode/ScreenEvent"
-require "Polycode/ScreenImage"
-require "Polycode/ScreenLabel"
-require "Polycode/ScreenLine"
-require "Polycode/ScreenManager"
-require "Polycode/ScreenMesh"
-require "Polycode/ScreenShape"
-require "Polycode/ScreenSoundListener"
-require "Polycode/ScreenSound"
-require "Polycode/ScreenSprite"
-require "Polycode/Shader"
-require "Polycode/ShaderBinding"
-require "Polycode/SkeletonAnimation"
-require "Polycode/Skeleton"
-require "Polycode/BoneTrack"
-require "Polycode/Sound"
-require "Polycode/SoundManager"
-require "Polycode/String"
-require "Polycode/Texture"
-require "Polycode/Timer"
-require "Polycode/TimerManager"
-require "Polycode/QuaternionTween"
-require "Polycode/Tween"
-require "Polycode/BezierPathTween"
-require "Polycode/TweenManager"
-require "Polycode/Vector2"
-require "Polycode/Vector3"
-require "Polycode/Vertex"

+ 0 - 98
Bindings/Contents/LUA/API/Polycode/BezierCurve.lua

@@ -1,98 +0,0 @@
-class "BezierCurve"
-
-
-
-
-
-
-
-function BezierCurve:BezierCurve(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.BezierCurve(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function BezierCurve:getControlPoint(index)
-	local retVal = Polycore.BezierCurve_getControlPoint(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = BezierPoint("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function BezierCurve:getNumControlPoints()
-	local retVal =  Polycore.BezierCurve_getNumControlPoints(self.__ptr)
-	return retVal
-end
-
-function BezierCurve:addControlPoint(p1x, p1y, p1z, p2x, p2y, p2z, p3x, p3y, p3z)
-	local retVal = Polycore.BezierCurve_addControlPoint(self.__ptr, p1x, p1y, p1z, p2x, p2y, p2z, p3x, p3y, p3z)
-end
-
-function BezierCurve:addControlPoint3dWithHandles(p1x, p1y, p1z, p2x, p2y, p2z, p3x, p3y, p3z)
-	local retVal = Polycore.BezierCurve_addControlPoint3dWithHandles(self.__ptr, p1x, p1y, p1z, p2x, p2y, p2z, p3x, p3y, p3z)
-end
-
-function BezierCurve:addControlPoint3d(x, y, z)
-	local retVal = Polycore.BezierCurve_addControlPoint3d(self.__ptr, x, y, z)
-end
-
-function BezierCurve:addControlPoint2dWithHandles(p1x, p1y, p2x, p2y, p3x, p3y)
-	local retVal = Polycore.BezierCurve_addControlPoint2dWithHandles(self.__ptr, p1x, p1y, p2x, p2y, p3x, p3y)
-end
-
-function BezierCurve:addControlPoint2d(x, y)
-	local retVal = Polycore.BezierCurve_addControlPoint2d(self.__ptr, x, y)
-end
-
-function BezierCurve:getHeightAt(a)
-	local retVal = Polycore.BezierCurve_getHeightAt(self.__ptr, a)
-	return retVal
-end
-
-function BezierCurve:getPointAt(a)
-	local retVal = Polycore.BezierCurve_getPointAt(self.__ptr, a)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function BezierCurve:getPointBetween(a, bp1, bp2)
-	local retVal = Polycore.BezierCurve_getPointBetween(self.__ptr, a, bp1.__ptr, bp2.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function BezierCurve:rebuildBuffers()
-	local retVal =  Polycore.BezierCurve_rebuildBuffers(self.__ptr)
-end
-
-
-
-function BezierCurve:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_BezierCurve(self.__ptr)
-end

+ 0 - 40
Bindings/Contents/LUA/API/Polycode/BezierPathTween.lua

@@ -1,40 +0,0 @@
-require "Polycode/Tween"
-
-class "BezierPathTween" (Tween)
-
-
-
-
-
-
-
-function BezierPathTween:BezierPathTween(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Tween" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.BezierPathTween(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function BezierPathTween:updateCustomTween()
-	local retVal =  Polycore.BezierPathTween_updateCustomTween(self.__ptr)
-end
-
-
-
-function BezierPathTween:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_BezierPathTween(self.__ptr)
-end

+ 0 - 228
Bindings/Contents/LUA/API/Polycode/Bone.lua

@@ -1,228 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "Bone" (SceneEntity)
-
-
-
-function Bone:__index__(name)
-	if name == "parentBoneId" then
-		return Polycore.Bone_get_parentBoneId(self.__ptr)
-	elseif name == "boneMatrix" then
-		retVal = Polycore.Bone_get_boneMatrix(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "restMatrix" then
-		retVal = Polycore.Bone_get_restMatrix(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "baseMatrix" then
-		retVal = Polycore.Bone_get_baseMatrix(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	end
-end
-
-
-function Bone:__set_callback(name,value)
-	if name == "parentBoneId" then
-		Polycore.Bone_set_parentBoneId(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Bone:Bone(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Bone(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Bone:enableBoneLabel(labelFont, size, scale, labelColor)
-	local retVal = Polycore.Bone_enableBoneLabel(self.__ptr, labelFont.__ptr, size, scale, labelColor.__ptr)
-end
-
-function Bone:getName()
-	local retVal =  Polycore.Bone_getName(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:Render()
-	local retVal =  Polycore.Bone_Render(self.__ptr)
-end
-
-function Bone:setParentBone(bone)
-	local retVal = Polycore.Bone_setParentBone(self.__ptr, bone.__ptr)
-end
-
-function Bone:addChildBone(bone)
-	local retVal = Polycore.Bone_addChildBone(self.__ptr, bone.__ptr)
-end
-
-function Bone:getParentBone()
-	local retVal =  Polycore.Bone_getParentBone(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Bone("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:getNumChildBones()
-	local retVal =  Polycore.Bone_getNumChildBones(self.__ptr)
-	return retVal
-end
-
-function Bone:getChildBone(index)
-	local retVal = Polycore.Bone_getChildBone(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Bone("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:getBoneMatrix()
-	local retVal =  Polycore.Bone_getBoneMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:setBoneMatrix(matrix)
-	local retVal = Polycore.Bone_setBoneMatrix(self.__ptr, matrix.__ptr)
-end
-
-function Bone:getRestMatrix()
-	local retVal =  Polycore.Bone_getRestMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:getFullRestMatrix()
-	local retVal =  Polycore.Bone_getFullRestMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:getParentRestMatrix()
-	local retVal =  Polycore.Bone_getParentRestMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:getFinalMatrix()
-	local retVal =  Polycore.Bone_getFinalMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:setRestMatrix(matrix)
-	local retVal = Polycore.Bone_setRestMatrix(self.__ptr, matrix.__ptr)
-end
-
-function Bone:setBaseMatrix(matrix)
-	local retVal = Polycore.Bone_setBaseMatrix(self.__ptr, matrix.__ptr)
-end
-
-function Bone:getBaseMatrix()
-	local retVal =  Polycore.Bone_getBaseMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Bone:getFullBaseMatrix()
-	local retVal =  Polycore.Bone_getFullBaseMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Bone:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Bone(self.__ptr)
-end

+ 0 - 149
Bindings/Contents/LUA/API/Polycode/BoneTrack.lua

@@ -1,149 +0,0 @@
-class "BoneTrack"
-
-
-
-function BoneTrack:__index__(name)
-	if name == "LocXVec" then
-		retVal = Polycore.BoneTrack_get_LocXVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "LocYVec" then
-		retVal = Polycore.BoneTrack_get_LocYVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "LocZVec" then
-		retVal = Polycore.BoneTrack_get_LocZVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "ScaleXVec" then
-		retVal = Polycore.BoneTrack_get_ScaleXVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "ScaleYVec" then
-		retVal = Polycore.BoneTrack_get_ScaleYVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "ScaleZVec" then
-		retVal = Polycore.BoneTrack_get_ScaleZVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "boneQuat" then
-		retVal = Polycore.BoneTrack_get_boneQuat(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "QuatWVec" then
-		retVal = Polycore.BoneTrack_get_QuatWVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "QuatXVec" then
-		retVal = Polycore.BoneTrack_get_QuatXVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "QuatYVec" then
-		retVal = Polycore.BoneTrack_get_QuatYVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "QuatZVec" then
-		retVal = Polycore.BoneTrack_get_QuatZVec(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	end
-end
-
-
-function BoneTrack:__set_callback(name,value)
-	return false
-end
-
-
-function BoneTrack:BoneTrack(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.BoneTrack(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function BoneTrack:Play(once)
-	local retVal = Polycore.BoneTrack_Play(self.__ptr, once)
-end
-
-function BoneTrack:Stop()
-	local retVal =  Polycore.BoneTrack_Stop(self.__ptr)
-end
-
-function BoneTrack:Update()
-	local retVal =  Polycore.BoneTrack_Update(self.__ptr)
-end
-
-function BoneTrack:setSpeed(speed)
-	local retVal = Polycore.BoneTrack_setSpeed(self.__ptr, speed)
-end
-
-
-
-function BoneTrack:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_BoneTrack(self.__ptr)
-end

+ 0 - 122
Bindings/Contents/LUA/API/Polycode/Camera.lua

@@ -1,122 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "Camera" (SceneEntity)
-
-
-
-
-
-
-
-function Camera:Camera(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Camera(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Camera:buildFrustrumPlanes()
-	local retVal =  Polycore.Camera_buildFrustrumPlanes(self.__ptr)
-end
-
-function Camera:isSphereInFrustrum(pos, fRadius)
-	local retVal = Polycore.Camera_isSphereInFrustrum(self.__ptr, pos.__ptr, fRadius)
-	return retVal
-end
-
-function Camera:canSee(entity)
-	local retVal = Polycore.Camera_canSee(self.__ptr, entity.__ptr)
-	return retVal
-end
-
-function Camera:setOrthoMode(mode)
-	local retVal = Polycore.Camera_setOrthoMode(self.__ptr, mode)
-end
-
-function Camera:getOrthoMode()
-	local retVal =  Polycore.Camera_getOrthoMode(self.__ptr)
-	return retVal
-end
-
-function Camera:setFOV(fov)
-	local retVal = Polycore.Camera_setFOV(self.__ptr, fov)
-end
-
-function Camera:getFOV()
-	local retVal =  Polycore.Camera_getFOV(self.__ptr)
-	return retVal
-end
-
-function Camera:setParentScene(parentScene)
-	local retVal = Polycore.Camera_setParentScene(self.__ptr, parentScene.__ptr)
-end
-
-function Camera:doCameraTransform()
-	local retVal =  Polycore.Camera_doCameraTransform(self.__ptr)
-end
-
-function Camera:setLightDepthTexture(texture)
-	local retVal = Polycore.Camera_setLightDepthTexture(self.__ptr, texture.__ptr)
-end
-
-function Camera:hasFilterShader()
-	local retVal =  Polycore.Camera_hasFilterShader(self.__ptr)
-	return retVal
-end
-
-function Camera:drawFilter()
-	local retVal =  Polycore.Camera_drawFilter(self.__ptr)
-end
-
-function Camera:setExposureLevel(level)
-	local retVal = Polycore.Camera_setExposureLevel(self.__ptr, level)
-end
-
-function Camera:getExposureLevel()
-	local retVal =  Polycore.Camera_getExposureLevel(self.__ptr)
-	return retVal
-end
-
-function Camera:createPostFilter(shaderMaterial)
-	local retVal = Polycore.Camera_createPostFilter(self.__ptr, shaderMaterial.__ptr)
-end
-
-function Camera:setPostFilter(shaderName)
-	local retVal = Polycore.Camera_setPostFilter(self.__ptr, shaderName.__ptr)
-end
-
-function Camera:removePostFilter()
-	local retVal =  Polycore.Camera_removePostFilter(self.__ptr)
-end
-
-function Camera:getScreenShaderMaterial()
-	local retVal =  Polycore.Camera_getScreenShaderMaterial(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Material("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Camera:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Camera(self.__ptr)
-end

+ 0 - 93
Bindings/Contents/LUA/API/Polycode/Color.lua

@@ -1,93 +0,0 @@
-class "Color"
-
-
-
-function Color:__index__(name)
-	if name == "r" then
-		return Polycore.Color_get_r(self.__ptr)
-	elseif name == "g" then
-		return Polycore.Color_get_g(self.__ptr)
-	elseif name == "b" then
-		return Polycore.Color_get_b(self.__ptr)
-	elseif name == "a" then
-		return Polycore.Color_get_a(self.__ptr)
-	end
-end
-
-
-function Color:__set_callback(name,value)
-	if name == "r" then
-		Polycore.Color_set_r(self.__ptr, value)
-		return true
-	elseif name == "g" then
-		Polycore.Color_set_g(self.__ptr, value)
-		return true
-	elseif name == "b" then
-		Polycore.Color_set_b(self.__ptr, value)
-		return true
-	elseif name == "a" then
-		Polycore.Color_set_a(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Color:Color(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Color(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Color:setColorHex(hex)
-	local retVal = Polycore.Color_setColorHex(self.__ptr, hex)
-end
-
-function Color:setColorHexRGB(hex)
-	local retVal = Polycore.Color_setColorHexRGB(self.__ptr, hex)
-end
-
-function Color:setColorHSV(h, s, v)
-	local retVal = Polycore.Color_setColorHSV(self.__ptr, h, s, v)
-end
-
-function Color:setColorRGBA(r, g, b, a)
-	local retVal = Polycore.Color_setColorRGBA(self.__ptr, r, g, b, a)
-end
-
-function Color:setColorRGB(r, g, b)
-	local retVal = Polycore.Color_setColorRGB(self.__ptr, r, g, b)
-end
-
-function Color:setColor(r, g, b, a)
-	local retVal = Polycore.Color_setColor(self.__ptr, r, g, b, a)
-end
-
-function Color:Random()
-	local retVal =  Polycore.Color_Random(self.__ptr)
-end
-
-function Color:getBrightness()
-	local retVal =  Polycore.Color_getBrightness(self.__ptr)
-	return retVal
-end
-
-function Color:getUint()
-	local retVal =  Polycore.Color_getUint(self.__ptr)
-	return retVal
-end
-
-
-
-function Color:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Color(self.__ptr)
-end

+ 0 - 73
Bindings/Contents/LUA/API/Polycode/Config.lua

@@ -1,73 +0,0 @@
-class "Config"
-
-
-
-
-
-
-
-function Config:Config(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Config(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Config:loadConfig(configNamespace, fileName)
-	local retVal = Polycore.Config_loadConfig(self.__ptr, configNamespace.__ptr, fileName.__ptr)
-end
-
-function Config:saveConfig(configNamespace, fileName)
-	local retVal = Polycore.Config_saveConfig(self.__ptr, configNamespace.__ptr, fileName.__ptr)
-end
-
-function Config:getEntry(configNamespace, key)
-	local retVal = Polycore.Config_getEntry(self.__ptr, configNamespace.__ptr, key.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ConfigEntry("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Config:setStringValue(configNamespace, key, value)
-	local retVal = Polycore.Config_setStringValue(self.__ptr, configNamespace.__ptr, key.__ptr, value.__ptr)
-end
-
-function Config:setNumericValue(configNamespace, key, value)
-	local retVal = Polycore.Config_setNumericValue(self.__ptr, configNamespace.__ptr, key.__ptr, value)
-end
-
-function Config:getNumericValue(configNamespace, key)
-	local retVal = Polycore.Config_getNumericValue(self.__ptr, configNamespace.__ptr, key.__ptr)
-	return retVal
-end
-
-function Config:getStringValue(configNamespace, key)
-	local retVal = Polycore.Config_getStringValue(self.__ptr, configNamespace.__ptr, key.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Config:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Config(self.__ptr)
-end

+ 0 - 210
Bindings/Contents/LUA/API/Polycode/Core.lua

@@ -1,210 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "Core" (EventDispatcher)
-
-
-
-EVENT_CORE_RESIZE = 0
-
-
-
-
-function Core:Update()
-	local retVal =  Polycore.Core_Update(self.__ptr)
-	return retVal
-end
-
-function Core:enableMouse(newval)
-	local retVal = Polycore.Core_enableMouse(self.__ptr, newval)
-end
-
-function Core:setCursor(cursorType)
-	local retVal = Polycore.Core_setCursor(self.__ptr, cursorType)
-end
-
-function Core:createThread(target)
-	local retVal = Polycore.Core_createThread(self.__ptr, target.__ptr)
-end
-
-function Core:lockMutex(mutex)
-	local retVal = Polycore.Core_lockMutex(self.__ptr, mutex.__ptr)
-end
-
-function Core:unlockMutex(mutex)
-	local retVal = Polycore.Core_unlockMutex(self.__ptr, mutex.__ptr)
-end
-
-function Core:createMutex()
-	local retVal =  Polycore.Core_createMutex(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = CoreMutex("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Core:copyStringToClipboard(str)
-	local retVal = Polycore.Core_copyStringToClipboard(self.__ptr, str.__ptr)
-end
-
-function Core:getClipboardString()
-	local retVal =  Polycore.Core_getClipboardString(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Core:getServices()
-	local retVal =  Polycore.Core_getServices(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = CoreServices("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Core:getFPS()
-	local retVal =  Polycore.Core_getFPS(self.__ptr)
-	return retVal
-end
-
-function Core:Shutdown()
-	local retVal =  Polycore.Core_Shutdown(self.__ptr)
-end
-
-function Core:isFullscreen()
-	local retVal =  Polycore.Core_isFullscreen(self.__ptr)
-	return retVal
-end
-
-function Core:getAALevel()
-	local retVal =  Polycore.Core_getAALevel(self.__ptr)
-	return retVal
-end
-
-function Core:getInput()
-	local retVal =  Polycore.Core_getInput(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = CoreInput("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Core:getXRes()
-	local retVal =  Polycore.Core_getXRes(self.__ptr)
-	return retVal
-end
-
-function Core:getYRes()
-	local retVal =  Polycore.Core_getYRes(self.__ptr)
-	return retVal
-end
-
-function Core:getNumVideoModes()
-	local retVal =  Polycore.Core_getNumVideoModes(self.__ptr)
-	return retVal
-end
-
-function Core:createFolder(folderPath)
-	local retVal = Polycore.Core_createFolder(self.__ptr, folderPath.__ptr)
-end
-
-function Core:copyDiskItem(itemPath, destItemPath)
-	local retVal = Polycore.Core_copyDiskItem(self.__ptr, itemPath.__ptr, destItemPath.__ptr)
-end
-
-function Core:moveDiskItem(itemPath, destItemPath)
-	local retVal = Polycore.Core_moveDiskItem(self.__ptr, itemPath.__ptr, destItemPath.__ptr)
-end
-
-function Core:removeDiskItem(itemPath)
-	local retVal = Polycore.Core_removeDiskItem(self.__ptr, itemPath.__ptr)
-end
-
-function Core:openFolderPicker()
-	local retVal =  Polycore.Core_openFolderPicker(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Core:setVideoModeIndex(index, fullScreen, vSync, aaLevel, anisotropyLevel)
-	local retVal = Polycore.Core_setVideoModeIndex(self.__ptr, index, fullScreen, vSync, aaLevel, anisotropyLevel)
-end
-
-function Core:setVideoMode(xRes, yRes, fullScreen, vSync, aaLevel, anisotropyLevel)
-	local retVal = Polycore.Core_setVideoMode(self.__ptr, xRes, yRes, fullScreen, vSync, aaLevel, anisotropyLevel)
-end
-
-function Core:resizeTo(xRes, yRes)
-	local retVal = Polycore.Core_resizeTo(self.__ptr, xRes, yRes)
-end
-
-function Core:doSleep()
-	local retVal =  Polycore.Core_doSleep(self.__ptr)
-end
-
-function Core:getElapsed()
-	local retVal =  Polycore.Core_getElapsed(self.__ptr)
-	return retVal
-end
-
-function Core:getTicks()
-	local retVal =  Polycore.Core_getTicks(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = unsignedint("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Core:getTicksFloat()
-	local retVal =  Polycore.Core_getTicksFloat(self.__ptr)
-	return retVal
-end
-
-function Core:setUserPointer(ptr)
-	local retVal = Polycore.Core_setUserPointer(self.__ptr, ptr.__ptr)
-end
-
-function Core:getUserPointer()
-	local retVal =  Polycore.Core_getUserPointer(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = void("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Core:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Core(self.__ptr)
-end

+ 0 - 109
Bindings/Contents/LUA/API/Polycode/CoreInput.lua

@@ -1,109 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "CoreInput" (EventDispatcher)
-
-
-
-MOUSE_BUTTON1 = 0
-MOUSE_BUTTON2 = 1
-MOUSE_BUTTON3 = 2
-
-
-
-
-function CoreInput:CoreInput(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "EventDispatcher" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.CoreInput(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function CoreInput:getMousePosition()
-	local retVal =  Polycore.CoreInput_getMousePosition(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector2("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreInput:getKeyState(keyCode)
-	local retVal = Polycore.CoreInput_getKeyState(self.__ptr, keyCode.__ptr)
-	return retVal
-end
-
-function CoreInput:getMouseDelta()
-	local retVal =  Polycore.CoreInput_getMouseDelta(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector2("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreInput:getMouseButtonState(mouseButton)
-	local retVal = Polycore.CoreInput_getMouseButtonState(self.__ptr, mouseButton)
-	return retVal
-end
-
-function CoreInput:mouseWheelUp(ticks)
-	local retVal = Polycore.CoreInput_mouseWheelUp(self.__ptr, ticks)
-end
-
-function CoreInput:mouseWheelDown(ticks)
-	local retVal = Polycore.CoreInput_mouseWheelDown(self.__ptr, ticks)
-end
-
-function CoreInput:setMouseButtonState(mouseButton, state, ticks)
-	local retVal = Polycore.CoreInput_setMouseButtonState(self.__ptr, mouseButton, state, ticks)
-end
-
-function CoreInput:setMousePosition(x, y, ticks)
-	local retVal = Polycore.CoreInput_setMousePosition(self.__ptr, x, y, ticks)
-end
-
-function CoreInput:setKeyState(keyCode, code, newState, ticks)
-	local retVal = Polycore.CoreInput_setKeyState(self.__ptr, keyCode.__ptr, code.__ptr, newState, ticks)
-end
-
-function CoreInput:setDeltaPosition(x, y)
-	local retVal = Polycore.CoreInput_setDeltaPosition(self.__ptr, x, y)
-end
-
-function CoreInput:createEvent(event)
-	local retVal = Polycore.CoreInput_createEvent(event.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = InputEvent("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function CoreInput:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_CoreInput(self.__ptr)
-end

+ 0 - 196
Bindings/Contents/LUA/API/Polycode/CoreServices.lua

@@ -1,196 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "CoreServices" (EventDispatcher)
-
-
-
-
-
-
-
-function CoreServices:getInstance()
-	local retVal =  Polycore.CoreServices_getInstance()
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = CoreServices("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:setInstance(_instance)
-	local retVal = Polycore.CoreServices_setInstance(_instance.__ptr)
-end
-
-function CoreServices:getRenderMutex()
-	local retVal =  Polycore.CoreServices_getRenderMutex()
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = CoreMutex("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:setRenderer(r_enderer)
-	local retVal = Polycore.CoreServices_setRenderer(self.__ptr, r_enderer.__ptr)
-end
-
-function CoreServices:getRenderer()
-	local retVal =  Polycore.CoreServices_getRenderer(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Renderer("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:Update(elapsed)
-	local retVal = Polycore.CoreServices_Update(self.__ptr, elapsed)
-end
-
-function CoreServices:setCore(core)
-	local retVal = Polycore.CoreServices_setCore(self.__ptr, core.__ptr)
-end
-
-function CoreServices:getCore()
-	local retVal =  Polycore.CoreServices_getCore(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Core("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:installModule(module)
-	local retVal = Polycore.CoreServices_installModule(self.__ptr, module.__ptr)
-end
-
-function CoreServices:getMaterialManager()
-	local retVal =  Polycore.CoreServices_getMaterialManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = MaterialManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getScreenManager()
-	local retVal =  Polycore.CoreServices_getScreenManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ScreenManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getSceneManager()
-	local retVal =  Polycore.CoreServices_getSceneManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getTimerManager()
-	local retVal =  Polycore.CoreServices_getTimerManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = TimerManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getTweenManager()
-	local retVal =  Polycore.CoreServices_getTweenManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = TweenManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getResourceManager()
-	local retVal =  Polycore.CoreServices_getResourceManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ResourceManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getSoundManager()
-	local retVal =  Polycore.CoreServices_getSoundManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SoundManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getFontManager()
-	local retVal =  Polycore.CoreServices_getFontManager(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = FontManager("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getConfig()
-	local retVal =  Polycore.CoreServices_getConfig(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Config("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreServices:getScreenInfo(width, height, hz)
-	local retVal = Polycore.CoreServices_getScreenInfo(self.__ptr, width.__ptr, height.__ptr, hz.__ptr)
-end
-
-
-
-function CoreServices:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_CoreServices(self.__ptr)
-end

+ 0 - 36
Bindings/Contents/LUA/API/Polycode/Cubemap.lua

@@ -1,36 +0,0 @@
-require "Polycode/Resource"
-
-class "Cubemap" (Resource)
-
-
-
-
-
-
-
-function Cubemap:Cubemap(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Resource" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Cubemap(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function Cubemap:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Cubemap(self.__ptr)
-end

+ 0 - 58
Bindings/Contents/LUA/API/Polycode/Data.lua

@@ -1,58 +0,0 @@
-class "Data"
-
-
-
-
-
-
-
-function Data:Data(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Data(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Data:loadFromFile(fileName)
-	local retVal = Polycore.Data_loadFromFile(self.__ptr, fileName.__ptr)
-end
-
-function Data:getAsString(encoding)
-	local retVal = Polycore.Data_getAsString(self.__ptr, encoding)
-	return retVal
-end
-
-function Data:setFromString(str, encoding)
-	local retVal = Polycore.Data_setFromString(self.__ptr, str.__ptr, encoding)
-end
-
-function Data:saveToFile(fileName)
-	local retVal = Polycore.Data_saveToFile(self.__ptr, fileName.__ptr)
-	return retVal
-end
-
-function Data:getData()
-	local retVal =  Polycore.Data_getData(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = char("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Data:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Data(self.__ptr)
-end

+ 0 - 506
Bindings/Contents/LUA/API/Polycode/Entity.lua

@@ -1,506 +0,0 @@
-class "Entity"
-
-
-
-function Entity:__index__(name)
-	if name == "custEntityType" then
-		return Polycore.Entity_get_custEntityType(self.__ptr)
-	elseif name == "billboardMode" then
-		return Polycore.Entity_get_billboardMode(self.__ptr)
-	elseif name == "billboardRoll" then
-		return Polycore.Entity_get_billboardRoll(self.__ptr)
-	elseif name == "alphaTest" then
-		return Polycore.Entity_get_alphaTest(self.__ptr)
-	elseif name == "backfaceCulled" then
-		return Polycore.Entity_get_backfaceCulled(self.__ptr)
-	elseif name == "renderWireframe" then
-		return Polycore.Entity_get_renderWireframe(self.__ptr)
-	elseif name == "color" then
-		retVal = Polycore.Entity_get_color(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "enabled" then
-		return Polycore.Entity_get_enabled(self.__ptr)
-	elseif name == "visible" then
-		return Polycore.Entity_get_visible(self.__ptr)
-	elseif name == "depthWrite" then
-		return Polycore.Entity_get_depthWrite(self.__ptr)
-	elseif name == "depthTest" then
-		return Polycore.Entity_get_depthTest(self.__ptr)
-	elseif name == "blendingMode" then
-		return Polycore.Entity_get_blendingMode(self.__ptr)
-	elseif name == "colorAffectsChildren" then
-		return Polycore.Entity_get_colorAffectsChildren(self.__ptr)
-	elseif name == "visibilityAffectsChildren" then
-		return Polycore.Entity_get_visibilityAffectsChildren(self.__ptr)
-	elseif name == "depthOnly" then
-		return Polycore.Entity_get_depthOnly(self.__ptr)
-	elseif name == "bBox" then
-		retVal = Polycore.Entity_get_bBox(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "ignoreParentMatrix" then
-		return Polycore.Entity_get_ignoreParentMatrix(self.__ptr)
-	elseif name == "isMask" then
-		return Polycore.Entity_get_isMask(self.__ptr)
-	end
-end
-
-
-function Entity:__set_callback(name,value)
-	if name == "custEntityType" then
-		Polycore.Entity_set_custEntityType(self.__ptr, value)
-		return true
-	elseif name == "billboardMode" then
-		Polycore.Entity_set_billboardMode(self.__ptr, value)
-		return true
-	elseif name == "billboardRoll" then
-		Polycore.Entity_set_billboardRoll(self.__ptr, value)
-		return true
-	elseif name == "alphaTest" then
-		Polycore.Entity_set_alphaTest(self.__ptr, value)
-		return true
-	elseif name == "backfaceCulled" then
-		Polycore.Entity_set_backfaceCulled(self.__ptr, value)
-		return true
-	elseif name == "renderWireframe" then
-		Polycore.Entity_set_renderWireframe(self.__ptr, value)
-		return true
-	elseif name == "enabled" then
-		Polycore.Entity_set_enabled(self.__ptr, value)
-		return true
-	elseif name == "visible" then
-		Polycore.Entity_set_visible(self.__ptr, value)
-		return true
-	elseif name == "depthWrite" then
-		Polycore.Entity_set_depthWrite(self.__ptr, value)
-		return true
-	elseif name == "depthTest" then
-		Polycore.Entity_set_depthTest(self.__ptr, value)
-		return true
-	elseif name == "blendingMode" then
-		Polycore.Entity_set_blendingMode(self.__ptr, value)
-		return true
-	elseif name == "colorAffectsChildren" then
-		Polycore.Entity_set_colorAffectsChildren(self.__ptr, value)
-		return true
-	elseif name == "visibilityAffectsChildren" then
-		Polycore.Entity_set_visibilityAffectsChildren(self.__ptr, value)
-		return true
-	elseif name == "depthOnly" then
-		Polycore.Entity_set_depthOnly(self.__ptr, value)
-		return true
-	elseif name == "ignoreParentMatrix" then
-		Polycore.Entity_set_ignoreParentMatrix(self.__ptr, value)
-		return true
-	elseif name == "isMask" then
-		Polycore.Entity_set_isMask(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Entity:Entity(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Entity(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Entity:Render()
-	local retVal =  Polycore.Entity_Render(self.__ptr)
-end
-
-function Entity:Update()
-	local retVal =  Polycore.Entity_Update(self.__ptr)
-end
-
-function Entity:transformAndRender()
-	local retVal =  Polycore.Entity_transformAndRender(self.__ptr)
-end
-
-function Entity:renderChildren()
-	local retVal =  Polycore.Entity_renderChildren(self.__ptr)
-end
-
-function Entity:dirtyMatrix(val)
-	local retVal = Polycore.Entity_dirtyMatrix(self.__ptr, val)
-end
-
-function Entity:rebuildTransformMatrix()
-	local retVal =  Polycore.Entity_rebuildTransformMatrix(self.__ptr)
-end
-
-function Entity:updateEntityMatrix()
-	local retVal =  Polycore.Entity_updateEntityMatrix(self.__ptr)
-end
-
-function Entity:getTransformMatrix()
-	local retVal =  Polycore.Entity_getTransformMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getConcatenatedMatrix()
-	local retVal =  Polycore.Entity_getConcatenatedMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getConcatenatedRollMatrix()
-	local retVal =  Polycore.Entity_getConcatenatedRollMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:setTransformByMatrix(matrix)
-	local retVal = Polycore.Entity_setTransformByMatrix(self.__ptr, matrix.__ptr)
-end
-
-function Entity:setTransformByMatrixPure(matrix)
-	local retVal = Polycore.Entity_setTransformByMatrixPure(self.__ptr, matrix.__ptr)
-end
-
-function Entity:getLookAtMatrix(loc, upVector)
-	local retVal = Polycore.Entity_getLookAtMatrix(self.__ptr, loc.__ptr, upVector.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:addEntity(newChild)
-	local retVal = Polycore.Entity_addEntity(self.__ptr, newChild.__ptr)
-end
-
-function Entity:addChild(newChild)
-	local retVal = Polycore.Entity_addChild(self.__ptr, newChild.__ptr)
-end
-
-function Entity:removeChild(entityToRemove)
-	local retVal = Polycore.Entity_removeChild(self.__ptr, entityToRemove.__ptr)
-end
-
-function Entity:setParentEntity(entity)
-	local retVal = Polycore.Entity_setParentEntity(self.__ptr, entity.__ptr)
-end
-
-function Entity:getParentEntity()
-	local retVal =  Polycore.Entity_getParentEntity(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Entity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getPosition()
-	local retVal =  Polycore.Entity_getPosition(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getCombinedPosition()
-	local retVal =  Polycore.Entity_getCombinedPosition(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:setPosition(x, y, z)
-	local retVal = Polycore.Entity_setPosition(self.__ptr, x, y, z)
-end
-
-function Entity:setPositionX(x)
-	local retVal = Polycore.Entity_setPositionX(self.__ptr, x)
-end
-
-function Entity:setPositionY(y)
-	local retVal = Polycore.Entity_setPositionY(self.__ptr, y)
-end
-
-function Entity:Translate(x, y, z)
-	local retVal = Polycore.Entity_Translate(self.__ptr, x, y, z)
-end
-
-function Entity:setPositionZ(z)
-	local retVal = Polycore.Entity_setPositionZ(self.__ptr, z)
-end
-
-function Entity:setScaleX(x)
-	local retVal = Polycore.Entity_setScaleX(self.__ptr, x)
-end
-
-function Entity:setScaleY(y)
-	local retVal = Polycore.Entity_setScaleY(self.__ptr, y)
-end
-
-function Entity:setScaleZ(z)
-	local retVal = Polycore.Entity_setScaleZ(self.__ptr, z)
-end
-
-function Entity:Scale(x, y, z)
-	local retVal = Polycore.Entity_Scale(self.__ptr, x, y, z)
-end
-
-function Entity:setScale(x, y, z)
-	local retVal = Polycore.Entity_setScale(self.__ptr, x, y, z)
-end
-
-function Entity:getCompoundScale()
-	local retVal =  Polycore.Entity_getCompoundScale(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getScale()
-	local retVal =  Polycore.Entity_getScale(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getCombinedPitch()
-	local retVal =  Polycore.Entity_getCombinedPitch(self.__ptr)
-	return retVal
-end
-
-function Entity:getCombinedYaw()
-	local retVal =  Polycore.Entity_getCombinedYaw(self.__ptr)
-	return retVal
-end
-
-function Entity:getCombinedRoll()
-	local retVal =  Polycore.Entity_getCombinedRoll(self.__ptr)
-	return retVal
-end
-
-function Entity:rebuildRotation()
-	local retVal =  Polycore.Entity_rebuildRotation(self.__ptr)
-end
-
-function Entity:setPitch(pitch)
-	local retVal = Polycore.Entity_setPitch(self.__ptr, pitch)
-end
-
-function Entity:setYaw(yaw)
-	local retVal = Polycore.Entity_setYaw(self.__ptr, yaw)
-end
-
-function Entity:setRoll(roll)
-	local retVal = Polycore.Entity_setRoll(self.__ptr, roll)
-end
-
-function Entity:Roll(roll)
-	local retVal = Polycore.Entity_Roll(self.__ptr, roll)
-end
-
-function Entity:Yaw(yaw)
-	local retVal = Polycore.Entity_Yaw(self.__ptr, yaw)
-end
-
-function Entity:Pitch(pitch)
-	local retVal = Polycore.Entity_Pitch(self.__ptr, pitch)
-end
-
-function Entity:getPitch()
-	local retVal =  Polycore.Entity_getPitch(self.__ptr)
-	return retVal
-end
-
-function Entity:getYaw()
-	local retVal =  Polycore.Entity_getYaw(self.__ptr)
-	return retVal
-end
-
-function Entity:getRoll()
-	local retVal =  Polycore.Entity_getRoll(self.__ptr)
-	return retVal
-end
-
-function Entity:setRotationQuat(w, x, y, z)
-	local retVal = Polycore.Entity_setRotationQuat(self.__ptr, w, x, y, z)
-end
-
-function Entity:getRotationQuat()
-	local retVal =  Polycore.Entity_getRotationQuat(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:lookAt(loc, upVector)
-	local retVal = Polycore.Entity_lookAt(self.__ptr, loc.__ptr, upVector.__ptr)
-end
-
-function Entity:lookAtEntity(entity, upVector)
-	local retVal = Polycore.Entity_lookAtEntity(self.__ptr, entity.__ptr, upVector.__ptr)
-end
-
-function Entity:getCombinedColor()
-	local retVal =  Polycore.Entity_getCombinedColor(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:setColor(r, g, b, a)
-	local retVal = Polycore.Entity_setColor(self.__ptr, r, g, b, a)
-end
-
-function Entity:setColorInt(r, g, b, a)
-	local retVal = Polycore.Entity_setColorInt(self.__ptr, r, g, b, a)
-end
-
-function Entity:recalculateBBox()
-	local retVal =  Polycore.Entity_recalculateBBox(self.__ptr)
-end
-
-function Entity:getBBoxRadius()
-	local retVal =  Polycore.Entity_getBBoxRadius(self.__ptr)
-	return retVal
-end
-
-function Entity:getCompoundBBoxRadius()
-	local retVal =  Polycore.Entity_getCompoundBBoxRadius(self.__ptr)
-	return retVal
-end
-
-function Entity:setBBoxRadius(rad)
-	local retVal = Polycore.Entity_setBBoxRadius(self.__ptr, rad)
-end
-
-function Entity:setMask(mask)
-	local retVal = Polycore.Entity_setMask(self.__ptr, mask.__ptr)
-end
-
-function Entity:clearMask()
-	local retVal =  Polycore.Entity_clearMask(self.__ptr)
-end
-
-function Entity:setBlendingMode(newBl_endingMode)
-	local retVal = Polycore.Entity_setBlendingMode(self.__ptr, newBl_endingMode)
-end
-
-function Entity:getChildCenter()
-	local retVal =  Polycore.Entity_getChildCenter(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:getEntityProp(propName)
-	local retVal = Polycore.Entity_getEntityProp(self.__ptr, propName.__ptr)
-	return retVal
-end
-
-function Entity:doUpdates()
-	local retVal =  Polycore.Entity_doUpdates(self.__ptr)
-end
-
-function Entity:buildPositionMatrix()
-	local retVal =  Polycore.Entity_buildPositionMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Entity:adjustMatrixForChildren()
-	local retVal =  Polycore.Entity_adjustMatrixForChildren(self.__ptr)
-end
-
-function Entity:setRenderer(r_enderer)
-	local retVal = Polycore.Entity_setRenderer(self.__ptr, r_enderer.__ptr)
-end
-
-
-
-function Entity:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Entity(self.__ptr)
-end

+ 0 - 67
Bindings/Contents/LUA/API/Polycode/Event.lua

@@ -1,67 +0,0 @@
-class "Event"
-
-
-
-COMPLETE_EVENT = 0
-CHANGE_EVENT = 1
-
-
-
-
-function Event:Event(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Event(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Event:getEventCode()
-	local retVal =  Polycore.Event_getEventCode(self.__ptr)
-	return retVal
-end
-
-function Event:getDispatcher()
-	local retVal =  Polycore.Event_getDispatcher(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = EventDispatcher("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Event:setEventCode(eventCode)
-	local retVal = Polycore.Event_setEventCode(self.__ptr, eventCode)
-end
-
-function Event:setDispatcher(dispatcher)
-	local retVal = Polycore.Event_setDispatcher(self.__ptr, dispatcher.__ptr)
-end
-
-function Event:getEventType()
-	local retVal =  Polycore.Event_getEventType(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Event:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Event(self.__ptr)
-end

+ 0 - 64
Bindings/Contents/LUA/API/Polycode/EventDispatcher.lua

@@ -1,64 +0,0 @@
-require "Polycode/EventHandler"
-
-class "EventDispatcher" (EventHandler)
-
-
-
-
-
-
-
-function EventDispatcher:EventDispatcher(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "EventHandler" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.EventDispatcher(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function EventDispatcher:removeAllHandlers()
-	local retVal =  Polycore.EventDispatcher_removeAllHandlers(self.__ptr)
-end
-
-function EventDispatcher:removeAllHandlersForListener(listener)
-	local retVal = Polycore.EventDispatcher_removeAllHandlersForListener(self.__ptr, listener.__ptr)
-end
-
-function EventDispatcher:addEventListener(handler, eventCode)
-	local retVal = Polycore.EventDispatcher_addEventListener(self.__ptr, handler.__ptr, eventCode)
-end
-
-function EventDispatcher:removeEventListener(handler, eventCode)
-	local retVal = Polycore.EventDispatcher_removeEventListener(self.__ptr, handler.__ptr, eventCode)
-end
-
-function EventDispatcher:__dispatchEvent(event, eventCode)
-	local retVal = Polycore.EventDispatcher___dispatchEvent(self.__ptr, event.__ptr, eventCode)
-end
-
-function EventDispatcher:dispatchEvent(event, eventCode)
-	local retVal = Polycore.EventDispatcher_dispatchEvent(self.__ptr, event.__ptr, eventCode)
-end
-
-function EventDispatcher:dispatchEventNoDelete(event, eventCode)
-	local retVal = Polycore.EventDispatcher_dispatchEventNoDelete(self.__ptr, event.__ptr, eventCode)
-end
-
-
-
-function EventDispatcher:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_EventDispatcher(self.__ptr)
-end

+ 0 - 35
Bindings/Contents/LUA/API/Polycode/EventHandler.lua

@@ -1,35 +0,0 @@
-class "EventHandler"
-
-
-
-
-
-
-
-function EventHandler:EventHandler(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.EventHandler(self)
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function EventHandler:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_EventHandler(self.__ptr)
-end
-
-
-function EventHandler:__handleEvent(event)
-	evt = Event("__skip_ptr__")
-	evt.__ptr = event
-	self:handleEvent(evt)
-end

+ 0 - 48
Bindings/Contents/LUA/API/Polycode/FixedShader.lua

@@ -1,48 +0,0 @@
-require "Polycode/Shader"
-
-class "FixedShader" (Shader)
-
-
-
-
-
-
-
-function FixedShader:FixedShader(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Shader" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.FixedShader(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function FixedShader:createBinding()
-	local retVal =  Polycore.FixedShader_createBinding(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ShaderBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function FixedShader:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_FixedShader(self.__ptr)
-end

+ 0 - 60
Bindings/Contents/LUA/API/Polycode/FixedShaderBinding.lua

@@ -1,60 +0,0 @@
-require "Polycode/ShaderBinding"
-
-class "FixedShaderBinding" (ShaderBinding)
-
-
-
-
-
-
-
-function FixedShaderBinding:FixedShaderBinding(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ShaderBinding" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.FixedShaderBinding(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function FixedShaderBinding:addTexture(name, texture)
-	local retVal = Polycore.FixedShaderBinding_addTexture(self.__ptr, name.__ptr, texture.__ptr)
-end
-
-function FixedShaderBinding:addCubemap(name, cubemap)
-	local retVal = Polycore.FixedShaderBinding_addCubemap(self.__ptr, name.__ptr, cubemap.__ptr)
-end
-
-function FixedShaderBinding:addParam(type, name, value)
-	local retVal = Polycore.FixedShaderBinding_addParam(self.__ptr, type.__ptr, name.__ptr, value.__ptr)
-end
-
-function FixedShaderBinding:getDiffuseTexture()
-	local retVal =  Polycore.FixedShaderBinding_getDiffuseTexture(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function FixedShaderBinding:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_FixedShaderBinding(self.__ptr)
-end

+ 0 - 57
Bindings/Contents/LUA/API/Polycode/Font.lua

@@ -1,57 +0,0 @@
-class "Font"
-
-
-
-function Font:__index__(name)
-	if name == "loaded" then
-		return Polycore.Font_get_loaded(self.__ptr)
-	end
-end
-
-
-function Font:__set_callback(name,value)
-	if name == "loaded" then
-		Polycore.Font_set_loaded(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Font:Font(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Font(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Font:getFace()
-	local retVal =  Polycore.Font_getFace(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = FT_Face("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Font:isValid()
-	local retVal =  Polycore.Font_isValid(self.__ptr)
-	return retVal
-end
-
-
-
-function Font:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Font(self.__ptr)
-end

+ 0 - 44
Bindings/Contents/LUA/API/Polycode/FontManager.lua

@@ -1,44 +0,0 @@
-class "FontManager"
-
-
-
-
-
-
-
-function FontManager:FontManager(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.FontManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function FontManager:registerFont(fontName, fontPath)
-	local retVal = Polycore.FontManager_registerFont(self.__ptr, fontName.__ptr, fontPath.__ptr)
-end
-
-function FontManager:getFontByName(fontName)
-	local retVal = Polycore.FontManager_getFontByName(self.__ptr, fontName.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Font("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function FontManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_FontManager(self.__ptr)
-end

+ 0 - 54
Bindings/Contents/LUA/API/Polycode/GLSLProgram.lua

@@ -1,54 +0,0 @@
-require "Polycode/Resource"
-
-class "GLSLProgram" (Resource)
-
-
-
-TYPE_VERT = 0
-TYPE_FRAG = 1
-function GLSLProgram:__index__(name)
-	if name == "type" then
-		return Polycore.GLSLProgram_get_type(self.__ptr)
-	end
-end
-
-
-function GLSLProgram:__set_callback(name,value)
-	if name == "type" then
-		Polycore.GLSLProgram_set_type(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function GLSLProgram:GLSLProgram(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Resource" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.GLSLProgram(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function GLSLProgram:addParam(name, isAuto, autoID, paramType, defaultData)
-	local retVal = Polycore.GLSLProgram_addParam(self.__ptr, name, isAuto, autoID, paramType, defaultData.__ptr)
-end
-
-
-
-function GLSLProgram:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_GLSLProgram(self.__ptr)
-end

+ 0 - 47
Bindings/Contents/LUA/API/Polycode/GLSLShader.lua

@@ -1,47 +0,0 @@
-require "Polycode/Shader"
-
-class "GLSLShader" (Shader)
-
-
-
-
-
-
-
-function GLSLShader:GLSLShader(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Shader" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.GLSLShader(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function GLSLShader:createBinding()
-	local retVal =  Polycore.GLSLShader_createBinding(self.__ptr)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ShaderBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function GLSLShader:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_GLSLShader(self.__ptr)
-end

+ 0 - 52
Bindings/Contents/LUA/API/Polycode/GLSLShaderBinding.lua

@@ -1,52 +0,0 @@
-require "Polycode/ShaderBinding"
-
-class "GLSLShaderBinding" (ShaderBinding)
-
-
-
-
-
-
-
-function GLSLShaderBinding:GLSLShaderBinding(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ShaderBinding" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.GLSLShaderBinding(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function GLSLShaderBinding:addTexture(name, texture)
-	local retVal = Polycore.GLSLShaderBinding_addTexture(self.__ptr, name, texture.__ptr)
-end
-
-function GLSLShaderBinding:addCubemap(name, cubemap)
-	local retVal = Polycore.GLSLShaderBinding_addCubemap(self.__ptr, name, cubemap.__ptr)
-end
-
-function GLSLShaderBinding:clearTexture(name)
-	local retVal = Polycore.GLSLShaderBinding_clearTexture(self.__ptr, name)
-end
-
-function GLSLShaderBinding:addParam(type, name, value)
-	local retVal = Polycore.GLSLShaderBinding_addParam(self.__ptr, type, name, value)
-end
-
-
-
-function GLSLShaderBinding:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_GLSLShaderBinding(self.__ptr)
-end

+ 0 - 73
Bindings/Contents/LUA/API/Polycode/GLSLShaderModule.lua

@@ -1,73 +0,0 @@
-class "GLSLShaderModule"
-
-
-
-
-
-
-
-function GLSLShaderModule:GLSLShaderModule(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.GLSLShaderModule(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function GLSLShaderModule:acceptsExtension(extension)
-	local retVal = Polycore.GLSLShaderModule_acceptsExtension(self.__ptr, extension)
-	return retVal
-end
-
-function GLSLShaderModule:createProgramFromFile(extension, fullPath)
-	local retVal = Polycore.GLSLShaderModule_createProgramFromFile(self.__ptr, extension, fullPath)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Resource("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function GLSLShaderModule:reloadPrograms()
-	local retVal =  Polycore.GLSLShaderModule_reloadPrograms(self.__ptr)
-end
-
-function GLSLShaderModule:getShaderType()
-	local retVal =  Polycore.GLSLShaderModule_getShaderType(self.__ptr)
-	return retVal
-end
-
-function GLSLShaderModule:createShader(node)
-	local retVal = Polycore.GLSLShaderModule_createShader(self.__ptr, node.__ptr)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Shader("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function GLSLShaderModule:applyShaderMaterial(r_enderer, material, localOptions, shaderIndex)
-	local retVal = Polycore.GLSLShaderModule_applyShaderMaterial(self.__ptr, r_enderer.__ptr, material.__ptr, localOptions.__ptr, shaderIndex)
-	return retVal
-end
-
-function GLSLShaderModule:clearShader()
-	local retVal =  Polycore.GLSLShaderModule_clearShader(self.__ptr)
-end
-
-
-
-function GLSLShaderModule:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_GLSLShaderModule(self.__ptr)
-end

+ 0 - 127
Bindings/Contents/LUA/API/Polycode/GenericScene.lua

@@ -1,127 +0,0 @@
-require "Polycode/Scene"
-
-class "GenericScene" (Scene)
-
-
-
-ENTITY_MESH = 0
-ENTITY_LIGHT = 1
-ENTITY_CAMERA = 2
-ENTITY_ENTITY = 3
-ENTITY_COLLMESH = 4
-
-
-
-
-function GenericScene:GenericScene(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.GenericScene(unpack(arg))
-	end
-end
-
-function GenericScene:Render()
-	local retVal =  Polycore.GenericScene_Render(self.__ptr)
-end
-
-function GenericScene:RenderDepthOnly(targetCamera)
-	local retVal = Polycore.GenericScene_RenderDepthOnly(self.__ptr, targetCamera.__ptr)
-end
-
-function GenericScene:addGrid(gridTexture)
-	local retVal = Polycore.GenericScene_addGrid(self.__ptr, gridTexture)
-end
-
-function GenericScene:readString(inFile)
-	local retVal = Polycore.GenericScene_readString(inFile.__ptr)
-	return retVal
-end
-
-function GenericScene:loadScene(fileName)
-	local retVal = Polycore.GenericScene_loadScene(self.__ptr, fileName)
-end
-
-function GenericScene:generateLightmaps(lightMapRes, lightMapQuality, numRadPasses)
-	local retVal = Polycore.GenericScene_generateLightmaps(self.__ptr, lightMapRes, lightMapQuality, numRadPasses)
-end
-
-function GenericScene:addLight(light)
-	local retVal = Polycore.GenericScene_addLight(self.__ptr, light.__ptr)
-end
-
-function GenericScene:getNearestLight(pos)
-	local retVal = Polycore.GenericScene_getNearestLight(self.__ptr, pos.__ptr)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneLight("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function GenericScene:writeEntityMatrix(entity, outFile)
-	local retVal = Polycore.GenericScene_writeEntityMatrix(self.__ptr, entity.__ptr, outFile.__ptr)
-end
-
-function GenericScene:writeString(str, outFile)
-	local retVal = Polycore.GenericScene_writeString(self.__ptr, str, outFile.__ptr)
-end
-
-function GenericScene:saveScene(fileName)
-	local retVal = Polycore.GenericScene_saveScene(self.__ptr, fileName)
-end
-
-function GenericScene:getNumStaticGeometry()
-	local retVal =  Polycore.GenericScene_getNumStaticGeometry(self.__ptr)
-	return retVal
-end
-
-function GenericScene:getStaticGeometry(index)
-	local retVal = Polycore.GenericScene_getStaticGeometry(self.__ptr, index)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneMesh("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function GenericScene:loadCollisionChild(entity, autoCollide, type)
-	local retVal = Polycore.GenericScene_loadCollisionChild(self.__ptr, entity.__ptr, autoCollide, type)
-end
-
-function GenericScene:getNumLights()
-	local retVal =  Polycore.GenericScene_getNumLights(self.__ptr)
-	return retVal
-end
-
-function GenericScene:getLight(index)
-	local retVal = Polycore.GenericScene_getLight(self.__ptr, index)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneLight("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function GenericScene:getCustomEntityByType(type)
-	local retVal = Polycore.GenericScene_getCustomEntityByType(self.__ptr, type)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-

+ 0 - 162
Bindings/Contents/LUA/API/Polycode/Image.lua

@@ -1,162 +0,0 @@
-class "Image"
-
-
-
-IMAGE_RGB = 0
-IMAGE_RGBA = 1
-
-
-
-
-function Image:Image(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Image(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Image:loadImage(fileName)
-	local retVal = Polycore.Image_loadImage(self.__ptr, fileName.__ptr)
-	return retVal
-end
-
-function Image:loadPNG(fileName)
-	local retVal = Polycore.Image_loadPNG(self.__ptr, fileName.__ptr)
-	return retVal
-end
-
-function Image:createEmpty(width, height)
-	local retVal = Polycore.Image_createEmpty(self.__ptr, width, height)
-end
-
-function Image:fill(r, g, b, a)
-	local retVal = Polycore.Image_fill(self.__ptr, r, g, b, a)
-end
-
-function Image:setPixel(x, y, r, g, b, a)
-	local retVal = Polycore.Image_setPixel(self.__ptr, x, y, r, g, b, a)
-end
-
-function Image:getPixel(x, y)
-	local retVal = Polycore.Image_getPixel(self.__ptr, x, y)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Image:swap(v1, v2)
-	local retVal = Polycore.Image_swap(self.__ptr, v1.__ptr, v2.__ptr)
-end
-
-function Image:line(x0, y0, x1, y1, col)
-	local retVal = Polycore.Image_line(self.__ptr, x0, y0, x1, y1, col.__ptr)
-end
-
-function Image:moveTo(x, y)
-	local retVal = Polycore.Image_moveTo(self.__ptr, x, y)
-end
-
-function Image:move(x, y)
-	local retVal = Polycore.Image_move(self.__ptr, x, y)
-end
-
-function Image:lineTo(x, y, col)
-	local retVal = Polycore.Image_lineTo(self.__ptr, x, y, col.__ptr)
-end
-
-function Image:drawRect(x, y, w, h, col)
-	local retVal = Polycore.Image_drawRect(self.__ptr, x, y, w, h, col.__ptr)
-end
-
-function Image:perlinNoise(seed, alpha)
-	local retVal = Polycore.Image_perlinNoise(self.__ptr, seed, alpha)
-end
-
-function Image:fastBlur(blurSize)
-	local retVal = Polycore.Image_fastBlur(self.__ptr, blurSize)
-end
-
-function Image:fastBlurVert(blurSize)
-	local retVal = Polycore.Image_fastBlurVert(self.__ptr, blurSize)
-end
-
-function Image:fastBlurHor(blurSize)
-	local retVal = Polycore.Image_fastBlurHor(self.__ptr, blurSize)
-end
-
-function Image:darken(amt, color, alpha)
-	local retVal = Polycore.Image_darken(self.__ptr, amt, color, alpha)
-end
-
-function Image:lighten(amt, color, alpha)
-	local retVal = Polycore.Image_lighten(self.__ptr, amt, color, alpha)
-end
-
-function Image:multiply(amt, color, alpha)
-	local retVal = Polycore.Image_multiply(self.__ptr, amt, color, alpha)
-end
-
-function Image:getBrushX()
-	local retVal =  Polycore.Image_getBrushX(self.__ptr)
-	return retVal
-end
-
-function Image:getBrushY()
-	local retVal =  Polycore.Image_getBrushY(self.__ptr)
-	return retVal
-end
-
-function Image:isLoaded()
-	local retVal =  Polycore.Image_isLoaded(self.__ptr)
-	return retVal
-end
-
-function Image:getType()
-	local retVal =  Polycore.Image_getType(self.__ptr)
-	return retVal
-end
-
-function Image:writeBMP(fileName)
-	local retVal = Polycore.Image_writeBMP(self.__ptr, fileName.__ptr)
-end
-
-function Image:getWidth()
-	local retVal =  Polycore.Image_getWidth(self.__ptr)
-	return retVal
-end
-
-function Image:getHeight()
-	local retVal =  Polycore.Image_getHeight(self.__ptr)
-	return retVal
-end
-
-function Image:getPixels()
-	local retVal =  Polycore.Image_getPixels(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = char("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Image:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Image(self.__ptr)
-end

+ 0 - 125
Bindings/Contents/LUA/API/Polycode/InputEvent.lua

@@ -1,125 +0,0 @@
-require "Polycode/Event"
-
-class "InputEvent" (Event)
-
-
-
-EVENT_MOUSEDOWN = 0
-EVENT_MOUSEUP = 1
-EVENT_MOUSEMOVE = 2
-EVENT_MOUSEOVER = 3
-EVENT_MOUSEOUT = 4
-EVENT_DOUBLECLICK = 5
-EVENT_MOUSEUP_OUTSIDE = 6
-EVENT_MOUSEWHEEL_UP = 7
-EVENT_MOUSEWHEEL_DOWN = 8
-EVENT_KEYDOWN = 13
-EVENT_KEYUP = 14
-function InputEvent:__index__(name)
-	if name == "mouseButton" then
-		return Polycore.InputEvent_get_mouseButton(self.__ptr)
-	elseif name == "mousePosition" then
-		retVal = Polycore.InputEvent_get_mousePosition(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector2("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "key" then
-		retVal = Polycore.InputEvent_get_key(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = PolyKEY("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "charCode" then
-		retVal = Polycore.InputEvent_get_charCode(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = wchar_t("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "timestamp" then
-		return Polycore.InputEvent_get_timestamp(self.__ptr)
-	end
-end
-
-
-function InputEvent:__set_callback(name,value)
-	if name == "mouseButton" then
-		Polycore.InputEvent_set_mouseButton(self.__ptr, value)
-		return true
-	elseif name == "timestamp" then
-		Polycore.InputEvent_set_timestamp(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function InputEvent:InputEvent(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Event" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.InputEvent(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function InputEvent:getMousePosition()
-	local retVal =  Polycore.InputEvent_getMousePosition(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector2("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function InputEvent:getKey()
-	local retVal =  Polycore.InputEvent_getKey(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = PolyKEY("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function InputEvent:getMouseButton()
-	local retVal =  Polycore.InputEvent_getMouseButton(self.__ptr)
-	return retVal
-end
-
-function InputEvent:keyCode()
-	local retVal =  Polycore.InputEvent_keyCode(self.__ptr)
-	return retVal
-end
-
-
-
-function InputEvent:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_InputEvent(self.__ptr)
-end

+ 0 - 76
Bindings/Contents/LUA/API/Polycode/Label.lua

@@ -1,76 +0,0 @@
-require "Polycode/Image"
-
-class "Label" (Image)
-
-
-
-ANTIALIAS_FULL = 0
-ANTIALIAS_NONE = 1
-
-
-
-
-function Label:Label(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Image" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Label(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Label:setText(text)
-	local retVal = Polycore.Label_setText(self.__ptr, text.__ptr)
-end
-
-function Label:getText()
-	local retVal =  Polycore.Label_getText(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Label:getTextWidth(font, text, size)
-	local retVal = Polycore.Label_getTextWidth(self.__ptr, font.__ptr, text.__ptr, size)
-	return retVal
-end
-
-function Label:getTextHeight(font, text, size)
-	local retVal = Polycore.Label_getTextHeight(self.__ptr, font.__ptr, text.__ptr, size)
-	return retVal
-end
-
-function Label:getFont()
-	local retVal =  Polycore.Label_getFont(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Font("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Label:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Label(self.__ptr)
-end

+ 0 - 36
Bindings/Contents/LUA/API/Polycode/Logger.lua

@@ -1,36 +0,0 @@
-class "Logger"
-
-
-
-
-
-
-
-function Logger:Logger(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Logger(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Logger:log(format)
-	local retVal = Polycore.Logger_log(format.__ptr)
-end
-
-function Logger:logw(str)
-	local retVal = Polycore.Logger_logw(str.__ptr)
-end
-
-
-
-function Logger:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Logger(self.__ptr)
-end

+ 0 - 136
Bindings/Contents/LUA/API/Polycode/Material.lua

@@ -1,136 +0,0 @@
-require "Polycode/Resource"
-
-class "Material" (Resource)
-
-
-
-function Material:__index__(name)
-	if name == "specularValue" then
-		return Polycore.Material_get_specularValue(self.__ptr)
-	elseif name == "specularColor" then
-		retVal = Polycore.Material_get_specularColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "diffuseColor" then
-		retVal = Polycore.Material_get_diffuseColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	end
-end
-
-
-function Material:__set_callback(name,value)
-	if name == "specularValue" then
-		Polycore.Material_set_specularValue(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Material:Material(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Resource" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Material(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Material:addShader(shader, shaderBinding)
-	local retVal = Polycore.Material_addShader(self.__ptr, shader.__ptr, shaderBinding.__ptr)
-end
-
-function Material:getNumShaders()
-	local retVal =  Polycore.Material_getNumShaders(self.__ptr)
-	return retVal
-end
-
-function Material:addShaderRenderTarget(newTarget)
-	local retVal = Polycore.Material_addShaderRenderTarget(self.__ptr, newTarget.__ptr)
-end
-
-function Material:getNumShaderRenderTargets()
-	local retVal =  Polycore.Material_getNumShaderRenderTargets(self.__ptr)
-	return retVal
-end
-
-function Material:getShaderRenderTarget(index)
-	local retVal = Polycore.Material_getShaderRenderTarget(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ShaderRenderTarget("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Material:getName()
-	local retVal =  Polycore.Material_getName(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Material:getShader(index)
-	local retVal = Polycore.Material_getShader(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Shader("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Material:getShaderBinding(index)
-	local retVal = Polycore.Material_getShaderBinding(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ShaderBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Material:loadMaterial(fileName)
-	local retVal = Polycore.Material_loadMaterial(self.__ptr, fileName.__ptr)
-end
-
-
-
-function Material:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Material(self.__ptr)
-end

+ 0 - 176
Bindings/Contents/LUA/API/Polycode/MaterialManager.lua

@@ -1,176 +0,0 @@
-class "MaterialManager"
-
-
-
-
-
-
-
-function MaterialManager:MaterialManager(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.MaterialManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function MaterialManager:Update(elapsed)
-	local retVal = Polycore.MaterialManager_Update(self.__ptr, elapsed)
-end
-
-function MaterialManager:createFramebufferTexture(width, height, type)
-	local retVal = Polycore.MaterialManager_createFramebufferTexture(self.__ptr, width, height, type)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:createTexture(width, height, imageData, clamp, type)
-	local retVal = Polycore.MaterialManager_createTexture(self.__ptr, width, height, imageData.__ptr, clamp, type)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:createNewTexture(width, height, clamp, type)
-	local retVal = Polycore.MaterialManager_createNewTexture(self.__ptr, width, height, clamp, type)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:createTextureFromImage(image, clamp)
-	local retVal = Polycore.MaterialManager_createTextureFromImage(self.__ptr, image.__ptr, clamp)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:createTextureFromFile(fileName, clamp)
-	local retVal = Polycore.MaterialManager_createTextureFromFile(self.__ptr, fileName.__ptr, clamp)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:deleteTexture(texture)
-	local retVal = Polycore.MaterialManager_deleteTexture(self.__ptr, texture.__ptr)
-end
-
-function MaterialManager:reloadTextures()
-	local retVal =  Polycore.MaterialManager_reloadTextures(self.__ptr)
-end
-
-function MaterialManager:reloadProgramsAndTextures()
-	local retVal =  Polycore.MaterialManager_reloadProgramsAndTextures(self.__ptr)
-end
-
-function MaterialManager:reloadPrograms()
-	local retVal =  Polycore.MaterialManager_reloadPrograms(self.__ptr)
-end
-
-function MaterialManager:addShaderModule(module)
-	local retVal = Polycore.MaterialManager_addShaderModule(self.__ptr, module.__ptr)
-end
-
-function MaterialManager:getTextureByResourcePath(resourcePath)
-	local retVal = Polycore.MaterialManager_getTextureByResourcePath(self.__ptr, resourcePath.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:cubemapFromXMLNode(node)
-	local retVal = Polycore.MaterialManager_cubemapFromXMLNode(self.__ptr, node.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Cubemap("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:loadMaterialsFromFile(fileName)
-	local retVal = Polycore.MaterialManager_loadMaterialsFromFile(self.__ptr, fileName)
-end
-
-function MaterialManager:materialFromXMLNode(node)
-	local retVal = Polycore.MaterialManager_materialFromXMLNode(self.__ptr, node.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Material("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:setShaderFromXMLNode(node)
-	local retVal = Polycore.MaterialManager_setShaderFromXMLNode(self.__ptr, node.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Shader("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function MaterialManager:createShaderFromXMLNode(node)
-	local retVal = Polycore.MaterialManager_createShaderFromXMLNode(self.__ptr, node.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Shader("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function MaterialManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_MaterialManager(self.__ptr)
-end

+ 0 - 92
Bindings/Contents/LUA/API/Polycode/Matrix4.lua

@@ -1,92 +0,0 @@
-class "Matrix4"
-
-
-
-
-
-
-
-function Matrix4:Matrix4(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Matrix4(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Matrix4:identity()
-	local retVal =  Polycore.Matrix4_identity(self.__ptr)
-end
-
-function Matrix4:rotateVector(v2)
-	local retVal = Polycore.Matrix4_rotateVector(self.__ptr, v2.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Matrix4:getPosition()
-	local retVal =  Polycore.Matrix4_getPosition(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Matrix4:setPosition(x, y, z)
-	local retVal = Polycore.Matrix4_setPosition(self.__ptr, x, y, z)
-end
-
-function Matrix4:setScale(scale)
-	local retVal = Polycore.Matrix4_setScale(self.__ptr, scale.__ptr)
-end
-
-function Matrix4:getEulerAngles(ax, ay, az)
-	local retVal = Polycore.Matrix4_getEulerAngles(self.__ptr, ax.__ptr, ay.__ptr, az.__ptr)
-end
-
-function Matrix4:inverse()
-	local retVal =  Polycore.Matrix4_inverse(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Matrix4:inverseAffine()
-	local retVal =  Polycore.Matrix4_inverseAffine(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Matrix4:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Matrix4(self.__ptr)
-end

+ 0 - 183
Bindings/Contents/LUA/API/Polycode/Mesh.lua

@@ -1,183 +0,0 @@
-class "Mesh"
-
-
-
-QUAD_MESH = 0
-TRI_MESH = 1
-TRIFAN_MESH = 2
-TRISTRIP_MESH = 3
-LINE_MESH = 4
-POINT_MESH = 5
-function Mesh:__index__(name)
-	if name == "useVertexColors" then
-		return Polycore.Mesh_get_useVertexColors(self.__ptr)
-	end
-end
-
-
-function Mesh:__set_callback(name,value)
-	if name == "useVertexColors" then
-		Polycore.Mesh_set_useVertexColors(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Mesh:Mesh(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Mesh(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Mesh:addPolygon(newPolygon)
-	local retVal = Polycore.Mesh_addPolygon(self.__ptr, newPolygon.__ptr)
-end
-
-function Mesh:loadMesh(fileName)
-	local retVal = Polycore.Mesh_loadMesh(self.__ptr, fileName.__ptr)
-end
-
-function Mesh:clearMesh()
-	local retVal =  Polycore.Mesh_clearMesh(self.__ptr)
-end
-
-function Mesh:saveToFile(fileName)
-	local retVal = Polycore.Mesh_saveToFile(self.__ptr, fileName.__ptr)
-end
-
-function Mesh:loadFromFile(inFile)
-	local retVal = Polycore.Mesh_loadFromFile(self.__ptr, inFile.__ptr)
-end
-
-function Mesh:getPolygonCount()
-	local retVal =  Polycore.Mesh_getPolygonCount(self.__ptr)
-	return retVal
-end
-
-function Mesh:getVertexCount()
-	local retVal =  Polycore.Mesh_getVertexCount(self.__ptr)
-	return retVal
-end
-
-function Mesh:getPolygon(index)
-	local retVal = Polycore.Mesh_getPolygon(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Polygon("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Mesh:createPlane(w, h)
-	local retVal = Polycore.Mesh_createPlane(self.__ptr, w, h)
-end
-
-function Mesh:createVPlane(w, h)
-	local retVal = Polycore.Mesh_createVPlane(self.__ptr, w, h)
-end
-
-function Mesh:createTorus(radius, tubeRadius, rSegments, tSegments)
-	local retVal = Polycore.Mesh_createTorus(self.__ptr, radius, tubeRadius, rSegments, tSegments)
-end
-
-function Mesh:createBox(w, d, h)
-	local retVal = Polycore.Mesh_createBox(self.__ptr, w, d, h)
-end
-
-function Mesh:createSphere(radius, numRings, numSegments)
-	local retVal = Polycore.Mesh_createSphere(self.__ptr, radius, numRings, numSegments)
-end
-
-function Mesh:createCylinder(height, radius, numSegments)
-	local retVal = Polycore.Mesh_createCylinder(self.__ptr, height, radius, numSegments)
-end
-
-function Mesh:createCone(height, radius, numSegments)
-	local retVal = Polycore.Mesh_createCone(self.__ptr, height, radius, numSegments)
-end
-
-function Mesh:recenterMesh()
-	local retVal =  Polycore.Mesh_recenterMesh(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Mesh:useVertexNormals(val)
-	local retVal = Polycore.Mesh_useVertexNormals(self.__ptr, val)
-end
-
-function Mesh:setVertexBuffer(buffer)
-	local retVal = Polycore.Mesh_setVertexBuffer(self.__ptr, buffer.__ptr)
-end
-
-function Mesh:getVertexBuffer()
-	local retVal =  Polycore.Mesh_getVertexBuffer(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = VertexBuffer("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Mesh:getRadius()
-	local retVal =  Polycore.Mesh_getRadius(self.__ptr)
-	return retVal
-end
-
-function Mesh:calculateNormals(smooth, smoothAngle)
-	local retVal = Polycore.Mesh_calculateNormals(self.__ptr, smooth, smoothAngle)
-end
-
-function Mesh:getMeshType()
-	local retVal =  Polycore.Mesh_getMeshType(self.__ptr)
-	return retVal
-end
-
-function Mesh:setMeshType(newType)
-	local retVal = Polycore.Mesh_setMeshType(self.__ptr, newType)
-end
-
-function Mesh:calculateBBox()
-	local retVal =  Polycore.Mesh_calculateBBox(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Mesh:hasVertexBuffer()
-	local retVal =  Polycore.Mesh_hasVertexBuffer(self.__ptr)
-	return retVal
-end
-
-
-
-function Mesh:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Mesh(self.__ptr)
-end

+ 0 - 64
Bindings/Contents/LUA/API/Polycode/OSBasics.lua

@@ -1,64 +0,0 @@
-class "OSBasics"
-
-
-
-
-
-
-
-function OSBasics:open(filename, opts)
-	local retVal = Polycore.OSBasics_open(filename.__ptr, opts.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = OSFILE("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function OSBasics:close(file)
-	local retVal = Polycore.OSBasics_close(file.__ptr)
-	return retVal
-end
-
-function OSBasics:read(ptr, size, count, stream)
-	local retVal = Polycore.OSBasics_read(ptr.__ptr, size.__ptr, count.__ptr, stream.__ptr)
-	return retVal
-end
-
-function OSBasics:write(ptr, size, count, stream)
-	local retVal = Polycore.OSBasics_write(ptr.__ptr, size.__ptr, count.__ptr, stream.__ptr)
-	return retVal
-end
-
-function OSBasics:seek(stream, offset, origin)
-	local retVal = Polycore.OSBasics_seek(stream.__ptr, offset.__ptr, origin)
-	return retVal
-end
-
-function OSBasics:tell(stream)
-	local retVal = Polycore.OSBasics_tell(stream.__ptr)
-	return retVal
-end
-
-function OSBasics:isFolder(pathString)
-	local retVal = Polycore.OSBasics_isFolder(pathString.__ptr)
-	return retVal
-end
-
-function OSBasics:createFolder(pathString)
-	local retVal = Polycore.OSBasics_createFolder(pathString.__ptr)
-end
-
-function OSBasics:removeItem(pathString)
-	local retVal = Polycore.OSBasics_removeItem(pathString.__ptr)
-end
-
-
-
-function OSBasics:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_OSBasics(self.__ptr)
-end

+ 0 - 46
Bindings/Contents/LUA/API/Polycode/OSFILE.lua

@@ -1,46 +0,0 @@
-class "OSFILE"
-
-
-
-TYPE_FILE = 0
-TYPE_ARCHIVE_FILE = 1
-function OSFILE:__index__(name)
-	if name == "fileType" then
-		return Polycore.OSFILE_get_fileType(self.__ptr)
-	end
-end
-
-
-function OSFILE:__set_callback(name,value)
-	if name == "fileType" then
-		Polycore.OSFILE_set_fileType(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function OSFILE:OSFILE(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.OSFILE(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function OSFILE:debugDump()
-	local retVal =  Polycore.OSFILE_debugDump(self.__ptr)
-end
-
-
-
-function OSFILE:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_OSFILE(self.__ptr)
-end

+ 0 - 87
Bindings/Contents/LUA/API/Polycode/OSFileEntry.lua

@@ -1,87 +0,0 @@
-class "OSFileEntry"
-
-
-
-TYPE_FILE = 0
-TYPE_FOLDER = 1
-function OSFileEntry:__index__(name)
-	if name == "name" then
-		retVal = Polycore.OSFileEntry_get_name(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Polycode::String("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "extension" then
-		retVal = Polycore.OSFileEntry_get_extension(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Polycode::String("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "nameWithoutExtension" then
-		retVal = Polycore.OSFileEntry_get_nameWithoutExtension(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Polycode::String("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "basePath" then
-		retVal = Polycore.OSFileEntry_get_basePath(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Polycode::String("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "fullPath" then
-		retVal = Polycore.OSFileEntry_get_fullPath(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Polycode::String("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "type" then
-		return Polycore.OSFileEntry_get_type(self.__ptr)
-	end
-end
-
-
-function OSFileEntry:__set_callback(name,value)
-	if name == "type" then
-		Polycore.OSFileEntry_set_type(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function OSFileEntry:OSFileEntry(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.OSFileEntry(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function OSFileEntry:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_OSFileEntry(self.__ptr)
-end

+ 0 - 88
Bindings/Contents/LUA/API/Polycode/ObjectEntry.lua

@@ -1,88 +0,0 @@
-class "ObjectEntry"
-
-
-
-FLOAT_ENTRY = 0
-INT_ENTRY = 1
-BOOL_ENTRY = 2
-ARRAY_ENTRY = 3
-STRING_ENTRY = 4
-CONTAINER_ENTRY = 5
-function ObjectEntry:__index__(name)
-	if name == "type" then
-		return Polycore.ObjectEntry_get_type(self.__ptr)
-	elseif name == "name" then
-		return Polycore.ObjectEntry_get_name(self.__ptr)
-	elseif name == "NumberVal" then
-		return Polycore.ObjectEntry_get_NumberVal(self.__ptr)
-	elseif name == "intVal" then
-		return Polycore.ObjectEntry_get_intVal(self.__ptr)
-	elseif name == "stringVal" then
-		return Polycore.ObjectEntry_get_stringVal(self.__ptr)
-	elseif name == "boolVal" then
-		return Polycore.ObjectEntry_get_boolVal(self.__ptr)
-	elseif name == "length" then
-		return Polycore.ObjectEntry_get_length(self.__ptr)
-	end
-end
-
-
-function ObjectEntry:__set_callback(name,value)
-	if name == "type" then
-		Polycore.ObjectEntry_set_type(self.__ptr, value)
-		return true
-	elseif name == "name" then
-		Polycore.ObjectEntry_set_name(self.__ptr, value)
-		return true
-	elseif name == "NumberVal" then
-		Polycore.ObjectEntry_set_NumberVal(self.__ptr, value)
-		return true
-	elseif name == "intVal" then
-		Polycore.ObjectEntry_set_intVal(self.__ptr, value)
-		return true
-	elseif name == "stringVal" then
-		Polycore.ObjectEntry_set_stringVal(self.__ptr, value)
-		return true
-	elseif name == "boolVal" then
-		Polycore.ObjectEntry_set_boolVal(self.__ptr, value)
-		return true
-	elseif name == "length" then
-		Polycore.ObjectEntry_set_length(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function ObjectEntry:ObjectEntry(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ObjectEntry(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ObjectEntry:addChild(name)
-	local retVal = Polycore.ObjectEntry_addChild(self.__ptr, name.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ObjectEntry("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function ObjectEntry:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ObjectEntry(self.__ptr)
-end

+ 0 - 47
Bindings/Contents/LUA/API/Polycode/OpenGLCubemap.lua

@@ -1,47 +0,0 @@
-require "Polycode/Cubemap"
-
-class "OpenGLCubemap" (Cubemap)
-
-
-
-
-
-
-
-function OpenGLCubemap:OpenGLCubemap(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Cubemap" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.OpenGLCubemap(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function OpenGLCubemap:getTextureID()
-	local retVal =  Polycore.OpenGLCubemap_getTextureID(self.__ptr)
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = GLuint("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function OpenGLCubemap:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_OpenGLCubemap(self.__ptr)
-end

+ 0 - 106
Bindings/Contents/LUA/API/Polycode/Particle.lua

@@ -1,106 +0,0 @@
-class "Particle"
-
-
-
-BILLBOARD_PARTICLE = 0
-MESH_PARTICLE = 1
-function Particle:__index__(name)
-	if name == "velVector" then
-		retVal = Polycore.Particle_get_velVector(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "dirVector" then
-		retVal = Polycore.Particle_get_dirVector(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "deviation" then
-		retVal = Polycore.Particle_get_deviation(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "life" then
-		return Polycore.Particle_get_life(self.__ptr)
-	elseif name == "lifespan" then
-		return Polycore.Particle_get_lifespan(self.__ptr)
-	elseif name == "brightnessDeviation" then
-		return Polycore.Particle_get_brightnessDeviation(self.__ptr)
-	elseif name == "perlinPosX" then
-		return Polycore.Particle_get_perlinPosX(self.__ptr)
-	elseif name == "perlinPosY" then
-		return Polycore.Particle_get_perlinPosY(self.__ptr)
-	elseif name == "perlinPosZ" then
-		return Polycore.Particle_get_perlinPosZ(self.__ptr)
-	end
-end
-
-
-function Particle:__set_callback(name,value)
-	if name == "life" then
-		Polycore.Particle_set_life(self.__ptr, value)
-		return true
-	elseif name == "lifespan" then
-		Polycore.Particle_set_lifespan(self.__ptr, value)
-		return true
-	elseif name == "brightnessDeviation" then
-		Polycore.Particle_set_brightnessDeviation(self.__ptr, value)
-		return true
-	elseif name == "perlinPosX" then
-		Polycore.Particle_set_perlinPosX(self.__ptr, value)
-		return true
-	elseif name == "perlinPosY" then
-		Polycore.Particle_set_perlinPosY(self.__ptr, value)
-		return true
-	elseif name == "perlinPosZ" then
-		Polycore.Particle_set_perlinPosZ(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Particle:Particle(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Particle(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Particle:Reset(continuious)
-	local retVal = Polycore.Particle_Reset(self.__ptr, continuious)
-end
-
-function Particle:createSceneParticle(particleType, material, particleMesh)
-	local retVal = Polycore.Particle_createSceneParticle(self.__ptr, particleType, material.__ptr, particleMesh.__ptr)
-end
-
-function Particle:createScreenParticle(particleType, texture, particleMesh)
-	local retVal = Polycore.Particle_createScreenParticle(self.__ptr, particleType, texture.__ptr, particleMesh.__ptr)
-end
-
-
-
-function Particle:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Particle(self.__ptr)
-end

+ 0 - 228
Bindings/Contents/LUA/API/Polycode/ParticleEmitter.lua

@@ -1,228 +0,0 @@
-class "ParticleEmitter"
-
-
-
-CONTINUOUS_EMITTER = 0
-TRIGGERED_EMITTER = 1
-function ParticleEmitter:__index__(name)
-	if name == "particleSpeedMod" then
-		return Polycore.ParticleEmitter_get_particleSpeedMod(self.__ptr)
-	elseif name == "brightnessDeviation" then
-		return Polycore.ParticleEmitter_get_brightnessDeviation(self.__ptr)
-	elseif name == "deviation" then
-		retVal = Polycore.ParticleEmitter_get_deviation(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "dirVector" then
-		retVal = Polycore.ParticleEmitter_get_dirVector(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "gravVector" then
-		retVal = Polycore.ParticleEmitter_get_gravVector(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "lifespan" then
-		return Polycore.ParticleEmitter_get_lifespan(self.__ptr)
-	elseif name == "rotationFollowsPath" then
-		return Polycore.ParticleEmitter_get_rotationFollowsPath(self.__ptr)
-	elseif name == "scaleCurve" then
-		retVal = Polycore.ParticleEmitter_get_scaleCurve(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = BezierCurve("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "colorCurveR" then
-		retVal = Polycore.ParticleEmitter_get_colorCurveR(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = BezierCurve("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "colorCurveG" then
-		retVal = Polycore.ParticleEmitter_get_colorCurveG(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = BezierCurve("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "colorCurveB" then
-		retVal = Polycore.ParticleEmitter_get_colorCurveB(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = BezierCurve("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "colorCurveA" then
-		retVal = Polycore.ParticleEmitter_get_colorCurveA(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = BezierCurve("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "useColorCurves" then
-		return Polycore.ParticleEmitter_get_useColorCurves(self.__ptr)
-	elseif name == "useScaleCurves" then
-		return Polycore.ParticleEmitter_get_useScaleCurves(self.__ptr)
-	end
-end
-
-
-function ParticleEmitter:__set_callback(name,value)
-	if name == "particleSpeedMod" then
-		Polycore.ParticleEmitter_set_particleSpeedMod(self.__ptr, value)
-		return true
-	elseif name == "brightnessDeviation" then
-		Polycore.ParticleEmitter_set_brightnessDeviation(self.__ptr, value)
-		return true
-	elseif name == "lifespan" then
-		Polycore.ParticleEmitter_set_lifespan(self.__ptr, value)
-		return true
-	elseif name == "rotationFollowsPath" then
-		Polycore.ParticleEmitter_set_rotationFollowsPath(self.__ptr, value)
-		return true
-	elseif name == "useColorCurves" then
-		Polycore.ParticleEmitter_set_useColorCurves(self.__ptr, value)
-		return true
-	elseif name == "useScaleCurves" then
-		Polycore.ParticleEmitter_set_useScaleCurves(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function ParticleEmitter:ParticleEmitter(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ParticleEmitter(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ParticleEmitter:createParticles()
-	local retVal =  Polycore.ParticleEmitter_createParticles(self.__ptr)
-end
-
-function ParticleEmitter:setRotationSpeed(speed)
-	local retVal = Polycore.ParticleEmitter_setRotationSpeed(self.__ptr, speed)
-end
-
-function ParticleEmitter:setParticleBlendingMode(mode)
-	local retVal = Polycore.ParticleEmitter_setParticleBlendingMode(self.__ptr, mode)
-end
-
-function ParticleEmitter:setDepthWrite(val)
-	local retVal = Polycore.ParticleEmitter_setDepthWrite(self.__ptr, val)
-end
-
-function ParticleEmitter:setDepthTest(val)
-	local retVal = Polycore.ParticleEmitter_setDepthTest(self.__ptr, val)
-end
-
-function ParticleEmitter:setAlphaTest(val)
-	local retVal = Polycore.ParticleEmitter_setAlphaTest(self.__ptr, val)
-end
-
-function ParticleEmitter:enablePerlin(val)
-	local retVal = Polycore.ParticleEmitter_enablePerlin(self.__ptr, val)
-end
-
-function ParticleEmitter:setParticleVisibility(val)
-	local retVal = Polycore.ParticleEmitter_setParticleVisibility(self.__ptr, val)
-end
-
-function ParticleEmitter:setPerlinModSize(size)
-	local retVal = Polycore.ParticleEmitter_setPerlinModSize(self.__ptr, size)
-end
-
-function ParticleEmitter:setBillboardMode(mode)
-	local retVal = Polycore.ParticleEmitter_setBillboardMode(self.__ptr, mode)
-end
-
-function ParticleEmitter:enableEmitter(val)
-	local retVal = Polycore.ParticleEmitter_enableEmitter(self.__ptr, val)
-end
-
-function ParticleEmitter:emitterEnabled()
-	local retVal =  Polycore.ParticleEmitter_emitterEnabled(self.__ptr)
-	return retVal
-end
-
-function ParticleEmitter:setEmitterRadius(rad)
-	local retVal = Polycore.ParticleEmitter_setEmitterRadius(self.__ptr, rad.__ptr)
-end
-
-function ParticleEmitter:setAllAtOnce(val)
-	local retVal = Polycore.ParticleEmitter_setAllAtOnce(self.__ptr, val)
-end
-
-function ParticleEmitter:Trigger()
-	local retVal =  Polycore.ParticleEmitter_Trigger(self.__ptr)
-end
-
-function ParticleEmitter:resetParticle(particle)
-	local retVal = Polycore.ParticleEmitter_resetParticle(self.__ptr, particle.__ptr)
-end
-
-function ParticleEmitter:setParticleCount(count)
-	local retVal = Polycore.ParticleEmitter_setParticleCount(self.__ptr, count)
-end
-
-function ParticleEmitter:addParticleBody(particleBody)
-	local retVal = Polycore.ParticleEmitter_addParticleBody(self.__ptr, particleBody.__ptr)
-end
-
-function ParticleEmitter:getBaseMatrix()
-	local retVal =  Polycore.ParticleEmitter_getBaseMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ParticleEmitter:updateEmitter()
-	local retVal =  Polycore.ParticleEmitter_updateEmitter(self.__ptr)
-end
-
-
-
-function ParticleEmitter:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ParticleEmitter(self.__ptr)
-end

+ 0 - 33
Bindings/Contents/LUA/API/Polycode/Perlin.lua

@@ -1,33 +0,0 @@
-class "Perlin"
-
-
-
-
-
-
-
-function Perlin:Perlin(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Perlin(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Perlin:Get(x, y)
-	local retVal = Polycore.Perlin_Get(self.__ptr, x, y)
-	return retVal
-end
-
-
-
-function Perlin:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Perlin(self.__ptr)
-end

+ 0 - 35
Bindings/Contents/LUA/API/Polycode/PolycodeModule.lua

@@ -1,35 +0,0 @@
-class "PolycodeModule"
-
-
-
-TYPE_GENERIC = 0
-TYPE_SHADER = 0
-
-
-
-
-function PolycodeModule:PolycodeModule(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.PolycodeModule(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function PolycodeModule:getType()
-	local retVal =  Polycore.PolycodeModule_getType(self.__ptr)
-	return retVal
-end
-
-
-
-function PolycodeModule:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_PolycodeModule(self.__ptr)
-end

+ 0 - 28
Bindings/Contents/LUA/API/Polycode/PolycodeViewBase.lua

@@ -1,28 +0,0 @@
-class "PolycodeViewBase"
-
-
-
-
-
-
-
-function PolycodeViewBase:PolycodeViewBase(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.PolycodeViewBase(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function PolycodeViewBase:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_PolycodeViewBase(self.__ptr)
-end

+ 0 - 109
Bindings/Contents/LUA/API/Polycode/Polygon.lua

@@ -1,109 +0,0 @@
-class "Polygon"
-
-
-
-function Polygon:__index__(name)
-	if name == "useVertexNormals" then
-		return Polycore.Polygon_get_useVertexNormals(self.__ptr)
-	end
-end
-
-
-function Polygon:__set_callback(name,value)
-	if name == "useVertexNormals" then
-		Polycore.Polygon_set_useVertexNormals(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Polygon:Polygon(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Polygon(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Polygon:getVertexCount()
-	local retVal =  Polycore.Polygon_getVertexCount(self.__ptr)
-	return retVal
-end
-
-function Polygon:getVertex(index)
-	local retVal = Polycore.Polygon_getVertex(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vertex("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Polygon:addVertex(x, y, z)
-	local retVal = Polycore.Polygon_addVertex(self.__ptr, x, y, z)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vertex("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Polygon:removeVertex(index)
-	local retVal = Polycore.Polygon_removeVertex(self.__ptr, index)
-end
-
-function Polygon:calculateNormal()
-	local retVal =  Polycore.Polygon_calculateNormal(self.__ptr)
-end
-
-function Polygon:getFaceNormal()
-	local retVal =  Polycore.Polygon_getFaceNormal(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Polygon:getBounds2D()
-	local retVal =  Polycore.Polygon_getBounds2D(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Rectangle("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Polygon:setNormal(normal)
-	local retVal = Polycore.Polygon_setNormal(self.__ptr, normal.__ptr)
-end
-
-function Polygon:flipUVY()
-	local retVal =  Polycore.Polygon_flipUVY(self.__ptr)
-end
-
-
-
-function Polygon:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Polygon(self.__ptr)
-end

+ 0 - 191
Bindings/Contents/LUA/API/Polycode/Quaternion.lua

@@ -1,191 +0,0 @@
-class "Quaternion"
-
-
-
-function Quaternion:__index__(name)
-	if name == "x" then
-		return Polycore.Quaternion_get_x(self.__ptr)
-	elseif name == "y" then
-		return Polycore.Quaternion_get_y(self.__ptr)
-	elseif name == "z" then
-		return Polycore.Quaternion_get_z(self.__ptr)
-	elseif name == "w" then
-		return Polycore.Quaternion_get_w(self.__ptr)
-	end
-end
-
-
-function Quaternion:__set_callback(name,value)
-	if name == "x" then
-		Polycore.Quaternion_set_x(self.__ptr, value)
-		return true
-	elseif name == "y" then
-		Polycore.Quaternion_set_y(self.__ptr, value)
-		return true
-	elseif name == "z" then
-		Polycore.Quaternion_set_z(self.__ptr, value)
-		return true
-	elseif name == "w" then
-		Polycore.Quaternion_set_w(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Quaternion:Quaternion(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Quaternion(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Quaternion:setFromMatrix(_mat)
-	local retVal = Polycore.Quaternion_setFromMatrix(self.__ptr, _mat.__ptr)
-end
-
-function Quaternion:Slerp(fT, rkP, rkQ, shortestPath)
-	local retVal = Polycore.Quaternion_Slerp(fT, rkP.__ptr, rkQ.__ptr, shortestPath)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Quaternion:Dot(rkQ)
-	local retVal = Polycore.Quaternion_Dot(self.__ptr, rkQ.__ptr)
-	return retVal
-end
-
-function Quaternion:Log()
-	local retVal =  Polycore.Quaternion_Log(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Quaternion:Exp()
-	local retVal =  Polycore.Quaternion_Exp(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Quaternion:Norm()
-	local retVal =  Polycore.Quaternion_Norm(self.__ptr)
-	return retVal
-end
-
-function Quaternion:normalize()
-	local retVal =  Polycore.Quaternion_normalize(self.__ptr)
-	return retVal
-end
-
-function Quaternion:lookAt(D, upVector)
-	local retVal = Polycore.Quaternion_lookAt(self.__ptr, D.__ptr, upVector.__ptr)
-end
-
-function Quaternion:createFromMatrix(matrix)
-	local retVal = Polycore.Quaternion_createFromMatrix(self.__ptr, matrix.__ptr)
-end
-
-function Quaternion:Squad(fT, rkP, rkA, rkB, rkQ, shortestPath)
-	local retVal = Polycore.Quaternion_Squad(fT, rkP.__ptr, rkA.__ptr, rkB.__ptr, rkQ.__ptr, shortestPath)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Quaternion:Inverse()
-	local retVal =  Polycore.Quaternion_Inverse(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Quaternion:set(w, x, y, z)
-	local retVal = Polycore.Quaternion_set(self.__ptr, w, x, y, z)
-end
-
-function Quaternion:inverse()
-	local retVal =  Polycore.Quaternion_inverse(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Quaternion:InvSqrt(x)
-	local retVal = Polycore.Quaternion_InvSqrt(self.__ptr, x)
-	return retVal
-end
-
-function Quaternion:fromAxes(az, ay, ax)
-	local retVal = Polycore.Quaternion_fromAxes(self.__ptr, az, ay, ax)
-end
-
-function Quaternion:FromAngleAxis(rfAngle, rkAxis)
-	local retVal = Polycore.Quaternion_FromAngleAxis(self.__ptr, rfAngle.__ptr, rkAxis.__ptr)
-end
-
-function Quaternion:ToAngleAxis(rfAngle, rkAxis)
-	local retVal = Polycore.Quaternion_ToAngleAxis(self.__ptr, rfAngle.__ptr, rkAxis.__ptr)
-end
-
-function Quaternion:createFromAxisAngle(x, y, z, degrees)
-	local retVal = Polycore.Quaternion_createFromAxisAngle(self.__ptr, x, y, z, degrees)
-end
-
-function Quaternion:createMatrix()
-	local retVal =  Polycore.Quaternion_createMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Quaternion:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Quaternion(self.__ptr)
-end

+ 0 - 48
Bindings/Contents/LUA/API/Polycode/QuaternionCurve.lua

@@ -1,48 +0,0 @@
-class "QuaternionCurve"
-
-
-
-
-
-
-
-function QuaternionCurve:QuaternionCurve(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.QuaternionCurve(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function QuaternionCurve:interpolate(t, useShortestPath)
-	local retVal = Polycore.QuaternionCurve_interpolate(self.__ptr, t, useShortestPath)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Quaternion("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function QuaternionCurve:generatePointsFromCurves(wCurve, xCurve, yCurve, zCurve)
-	local retVal = Polycore.QuaternionCurve_generatePointsFromCurves(self.__ptr, wCurve.__ptr, xCurve.__ptr, yCurve.__ptr, zCurve.__ptr)
-end
-
-function QuaternionCurve:recalcTangents()
-	local retVal =  Polycore.QuaternionCurve_recalcTangents(self.__ptr)
-end
-
-
-
-function QuaternionCurve:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_QuaternionCurve(self.__ptr)
-end

+ 0 - 40
Bindings/Contents/LUA/API/Polycode/QuaternionTween.lua

@@ -1,40 +0,0 @@
-require "Polycode/Tween"
-
-class "QuaternionTween" (Tween)
-
-
-
-
-
-
-
-function QuaternionTween:QuaternionTween(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Tween" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.QuaternionTween(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function QuaternionTween:updateCustomTween()
-	local retVal =  Polycore.QuaternionTween_updateCustomTween(self.__ptr)
-end
-
-
-
-function QuaternionTween:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_QuaternionTween(self.__ptr)
-end

+ 0 - 59
Bindings/Contents/LUA/API/Polycode/Rectangle.lua

@@ -1,59 +0,0 @@
-class "Rectangle"
-
-
-
-function Rectangle:__index__(name)
-	if name == "x" then
-		return Polycore.Rectangle_get_x(self.__ptr)
-	elseif name == "y" then
-		return Polycore.Rectangle_get_y(self.__ptr)
-	elseif name == "w" then
-		return Polycore.Rectangle_get_w(self.__ptr)
-	elseif name == "h" then
-		return Polycore.Rectangle_get_h(self.__ptr)
-	end
-end
-
-
-function Rectangle:__set_callback(name,value)
-	if name == "x" then
-		Polycore.Rectangle_set_x(self.__ptr, value)
-		return true
-	elseif name == "y" then
-		Polycore.Rectangle_set_y(self.__ptr, value)
-		return true
-	elseif name == "w" then
-		Polycore.Rectangle_set_w(self.__ptr, value)
-		return true
-	elseif name == "h" then
-		Polycore.Rectangle_set_h(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Rectangle:Rectangle(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Rectangle(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Rectangle:setRect(x, y, w, h)
-	local retVal = Polycore.Rectangle_setRect(self.__ptr, x, y, w, h)
-end
-
-
-
-function Rectangle:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Rectangle(self.__ptr)
-end

+ 0 - 510
Bindings/Contents/LUA/API/Polycode/Renderer.lua

@@ -1,510 +0,0 @@
-class "Renderer"
-
-
-
-RENDER_MODE_NORMAL = 0
-RENDER_MODE_WIREFRAME = 1
-BLEND_MODE_NORMAL = 0
-BLEND_MODE_LIGHTEN = 1
-BLEND_MODE_COLOR = 2
-FOG_LINEAR = 0
-FOG_EXP = 1
-FOG_EXP2 = 2
-DEPTH_FUNCTION_GREATER = 0
-DEPTH_FUNCTION_LEQUAL = 1
-TEX_FILTERING_NEAREST = 0
-TEX_FILTERING_LINEAR = 1
-function Renderer:__index__(name)
-	if name == "ambientColor" then
-		retVal = Polycore.Renderer_get_ambientColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "clearColor" then
-		retVal = Polycore.Renderer_get_clearColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "exposureLevel" then
-		return Polycore.Renderer_get_exposureLevel(self.__ptr)
-	elseif name == "cameraPosition" then
-		retVal = Polycore.Renderer_get_cameraPosition(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	end
-end
-
-
-function Renderer:__set_callback(name,value)
-	if name == "exposureLevel" then
-		Polycore.Renderer_set_exposureLevel(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Renderer:Resize(xRes, yRes)
-	local retVal = Polycore.Renderer_Resize(self.__ptr, xRes, yRes)
-end
-
-function Renderer:BeginRender()
-	local retVal =  Polycore.Renderer_BeginRender(self.__ptr)
-end
-
-function Renderer:EndRender()
-	local retVal =  Polycore.Renderer_EndRender(self.__ptr)
-end
-
-function Renderer:createCubemap(t0, t1, t2, t3, t4, t5)
-	local retVal = Polycore.Renderer_createCubemap(self.__ptr, t0.__ptr, t1.__ptr, t2.__ptr, t3.__ptr, t4.__ptr, t5.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Cubemap("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:createTexture(width, height, textureData, clamp, type)
-	local retVal = Polycore.Renderer_createTexture(self.__ptr, width, height, textureData.__ptr, clamp, type)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:createRenderTextures(colorBuffer, depthBuffer, width, height)
-	local retVal = Polycore.Renderer_createRenderTextures(self.__ptr, colorBuffer.__ptr, depthBuffer.__ptr, width, height)
-end
-
-function Renderer:createFramebufferTexture(width, height)
-	local retVal = Polycore.Renderer_createFramebufferTexture(self.__ptr, width, height)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:bindFrameBufferTexture(texture)
-	local retVal = Polycore.Renderer_bindFrameBufferTexture(self.__ptr, texture.__ptr)
-end
-
-function Renderer:unbindFramebuffers()
-	local retVal =  Polycore.Renderer_unbindFramebuffers(self.__ptr)
-end
-
-function Renderer:renderToTexture(targetTexture)
-	local retVal = Polycore.Renderer_renderToTexture(self.__ptr, targetTexture.__ptr)
-end
-
-function Renderer:renderZBufferToTexture(targetTexture)
-	local retVal = Polycore.Renderer_renderZBufferToTexture(self.__ptr, targetTexture.__ptr)
-end
-
-function Renderer:setViewportSize(w, h, fov)
-	local retVal = Polycore.Renderer_setViewportSize(self.__ptr, w, h, fov)
-end
-
-function Renderer:loadIdentity()
-	local retVal =  Polycore.Renderer_loadIdentity(self.__ptr)
-end
-
-function Renderer:setOrthoMode(xSize, ySize)
-	local retVal = Polycore.Renderer_setOrthoMode(self.__ptr, xSize, ySize)
-end
-
-function Renderer:_setOrthoMode()
-	local retVal =  Polycore.Renderer__setOrthoMode(self.__ptr)
-end
-
-function Renderer:setPerspectiveMode()
-	local retVal =  Polycore.Renderer_setPerspectiveMode(self.__ptr)
-end
-
-function Renderer:setTexture(texture)
-	local retVal = Polycore.Renderer_setTexture(self.__ptr, texture.__ptr)
-end
-
-function Renderer:enableBackfaceCulling(val)
-	local retVal = Polycore.Renderer_enableBackfaceCulling(self.__ptr, val)
-end
-
-function Renderer:setClearColor(r, g, b)
-	local retVal = Polycore.Renderer_setClearColor(self.__ptr, r, g, b)
-end
-
-function Renderer:setAmbientColor(r, g, b)
-	local retVal = Polycore.Renderer_setAmbientColor(self.__ptr, r, g, b)
-end
-
-function Renderer:clearScreen()
-	local retVal =  Polycore.Renderer_clearScreen(self.__ptr)
-end
-
-function Renderer:translate2D(x, y)
-	local retVal = Polycore.Renderer_translate2D(self.__ptr, x, y)
-end
-
-function Renderer:rotate2D(angle)
-	local retVal = Polycore.Renderer_rotate2D(self.__ptr, angle)
-end
-
-function Renderer:scale2D(scale)
-	local retVal = Polycore.Renderer_scale2D(self.__ptr, scale.__ptr)
-end
-
-function Renderer:setFOV(fov)
-	local retVal = Polycore.Renderer_setFOV(self.__ptr, fov)
-end
-
-function Renderer:setVertexColor(r, g, b, a)
-	local retVal = Polycore.Renderer_setVertexColor(self.__ptr, r, g, b, a)
-end
-
-function Renderer:pushDataArrayForMesh(mesh, arrayType)
-	local retVal = Polycore.Renderer_pushDataArrayForMesh(self.__ptr, mesh.__ptr, arrayType)
-end
-
-function Renderer:pushRenderDataArray(array)
-	local retVal = Polycore.Renderer_pushRenderDataArray(self.__ptr, array.__ptr)
-end
-
-function Renderer:createRenderDataArrayForMesh(mesh, arrayType)
-	local retVal = Polycore.Renderer_createRenderDataArrayForMesh(self.__ptr, mesh.__ptr, arrayType)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = RenderDataArray("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:createRenderDataArray(arrayType)
-	local retVal = Polycore.Renderer_createRenderDataArray(self.__ptr, arrayType)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = RenderDataArray("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:setRenderArrayData(array, arrayData)
-	local retVal = Polycore.Renderer_setRenderArrayData(self.__ptr, array.__ptr, arrayData.__ptr)
-end
-
-function Renderer:drawArrays(drawType)
-	local retVal = Polycore.Renderer_drawArrays(self.__ptr, drawType)
-end
-
-function Renderer:translate3D(position)
-	local retVal = Polycore.Renderer_translate3D(self.__ptr, position.__ptr)
-end
-
-function Renderer:scale3D(scale)
-	local retVal = Polycore.Renderer_scale3D(self.__ptr, scale.__ptr)
-end
-
-function Renderer:pushMatrix()
-	local retVal =  Polycore.Renderer_pushMatrix(self.__ptr)
-end
-
-function Renderer:popMatrix()
-	local retVal =  Polycore.Renderer_popMatrix(self.__ptr)
-end
-
-function Renderer:setLineSmooth(val)
-	local retVal = Polycore.Renderer_setLineSmooth(self.__ptr, val)
-end
-
-function Renderer:setLineSize(lineSize)
-	local retVal = Polycore.Renderer_setLineSize(self.__ptr, lineSize)
-end
-
-function Renderer:enableLighting(enable)
-	local retVal = Polycore.Renderer_enableLighting(self.__ptr, enable)
-end
-
-function Renderer:enableFog(enable)
-	local retVal = Polycore.Renderer_enableFog(self.__ptr, enable)
-end
-
-function Renderer:setFogProperties(fogMode, color, density, startDepth, _endDepth)
-	local retVal = Polycore.Renderer_setFogProperties(self.__ptr, fogMode, color.__ptr, density, startDepth, _endDepth)
-end
-
-function Renderer:multModelviewMatrix(m)
-	local retVal = Polycore.Renderer_multModelviewMatrix(self.__ptr, m.__ptr)
-end
-
-function Renderer:setModelviewMatrix(m)
-	local retVal = Polycore.Renderer_setModelviewMatrix(self.__ptr, m.__ptr)
-end
-
-function Renderer:setCurrentModelMatrix(m)
-	local retVal = Polycore.Renderer_setCurrentModelMatrix(self.__ptr, m.__ptr)
-end
-
-function Renderer:getCurrentModelMatrix()
-	local retVal =  Polycore.Renderer_getCurrentModelMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:setBlendingMode(bl_endingMode)
-	local retVal = Polycore.Renderer_setBlendingMode(self.__ptr, bl_endingMode)
-end
-
-function Renderer:applyMaterial(material, localOptions, shaderIndex)
-	local retVal = Polycore.Renderer_applyMaterial(self.__ptr, material.__ptr, localOptions.__ptr, shaderIndex)
-end
-
-function Renderer:clearShader()
-	local retVal =  Polycore.Renderer_clearShader(self.__ptr)
-end
-
-function Renderer:setDepthFunction(depthFunction)
-	local retVal = Polycore.Renderer_setDepthFunction(self.__ptr, depthFunction)
-end
-
-function Renderer:createVertexBufferForMesh(mesh)
-	local retVal = Polycore.Renderer_createVertexBufferForMesh(self.__ptr, mesh.__ptr)
-end
-
-function Renderer:drawVertexBuffer(buffer)
-	local retVal = Polycore.Renderer_drawVertexBuffer(self.__ptr, buffer.__ptr)
-end
-
-function Renderer:setRenderMode(newR_enderMode)
-	local retVal = Polycore.Renderer_setRenderMode(self.__ptr, newR_enderMode)
-end
-
-function Renderer:getRenderMode()
-	local retVal =  Polycore.Renderer_getRenderMode(self.__ptr)
-	return retVal
-end
-
-function Renderer:enableDepthTest(val)
-	local retVal = Polycore.Renderer_enableDepthTest(self.__ptr, val)
-end
-
-function Renderer:enableDepthWrite(val)
-	local retVal = Polycore.Renderer_enableDepthWrite(self.__ptr, val)
-end
-
-function Renderer:billboardMatrix()
-	local retVal =  Polycore.Renderer_billboardMatrix(self.__ptr)
-end
-
-function Renderer:billboardMatrixWithScale(scale)
-	local retVal = Polycore.Renderer_billboardMatrixWithScale(self.__ptr, scale.__ptr)
-end
-
-function Renderer:setTextureFilteringMode(mode)
-	local retVal = Polycore.Renderer_setTextureFilteringMode(self.__ptr, mode)
-end
-
-function Renderer:setClippingPlanes(near, far)
-	local retVal = Polycore.Renderer_setClippingPlanes(self.__ptr, near, far)
-end
-
-function Renderer:enableAlphaTest(val)
-	local retVal = Polycore.Renderer_enableAlphaTest(self.__ptr, val)
-end
-
-function Renderer:clearBuffer(colorBuffer, depthBuffer)
-	local retVal = Polycore.Renderer_clearBuffer(self.__ptr, colorBuffer, depthBuffer)
-end
-
-function Renderer:drawToColorBuffer(val)
-	local retVal = Polycore.Renderer_drawToColorBuffer(self.__ptr, val)
-end
-
-function Renderer:getCameraMatrix()
-	local retVal =  Polycore.Renderer_getCameraMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:setCameraMatrix(matrix)
-	local retVal = Polycore.Renderer_setCameraMatrix(self.__ptr, matrix.__ptr)
-end
-
-function Renderer:setCameraPosition(pos)
-	local retVal = Polycore.Renderer_setCameraPosition(self.__ptr, pos.__ptr)
-end
-
-function Renderer:drawScreenQuad(qx, qy)
-	local retVal = Polycore.Renderer_drawScreenQuad(self.__ptr, qx, qy)
-end
-
-function Renderer:getXRes()
-	local retVal =  Polycore.Renderer_getXRes(self.__ptr)
-	return retVal
-end
-
-function Renderer:getYRes()
-	local retVal =  Polycore.Renderer_getYRes(self.__ptr)
-	return retVal
-end
-
-function Renderer:setAnisotropyAmount(amount)
-	local retVal = Polycore.Renderer_setAnisotropyAmount(self.__ptr, amount)
-end
-
-function Renderer:getAnisotropyAmount()
-	local retVal =  Polycore.Renderer_getAnisotropyAmount(self.__ptr)
-	return retVal
-end
-
-function Renderer:cullFrontFaces(val)
-	local retVal = Polycore.Renderer_cullFrontFaces(self.__ptr, val)
-end
-
-function Renderer:clearLights()
-	local retVal =  Polycore.Renderer_clearLights(self.__ptr)
-end
-
-function Renderer:addLight(lightImportance, position, direction, type, color, specularColor, constantAttenuation, linearAttenuation, quadraticAttenuation, intensity, spotlightCutoff, spotlightExponent, shadowsEnabled, textureMatrix, shadowMapTexture)
-	local retVal = Polycore.Renderer_addLight(self.__ptr, lightImportance, position.__ptr, direction.__ptr, type, color.__ptr, specularColor.__ptr, constantAttenuation, linearAttenuation, quadraticAttenuation, intensity, spotlightCutoff, spotlightExponent, shadowsEnabled, textureMatrix.__ptr, shadowMapTexture.__ptr)
-end
-
-function Renderer:setExposureLevel(level)
-	local retVal = Polycore.Renderer_setExposureLevel(self.__ptr, level)
-end
-
-function Renderer:rayTriangleIntersect(ray_origin, ray_direction, vert0, vert1, vert2, hitPoint)
-	local retVal = Polycore.Renderer_rayTriangleIntersect(self.__ptr, ray_origin.__ptr, ray_direction.__ptr, vert0.__ptr, vert1.__ptr, vert2.__ptr, hitPoint.__ptr)
-	return retVal
-end
-
-function Renderer:projectRayFrom2DCoordinate(x, y)
-	local retVal = Polycore.Renderer_projectRayFrom2DCoordinate(self.__ptr, x, y)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:enableShaders(flag)
-	local retVal = Polycore.Renderer_enableShaders(self.__ptr, flag)
-end
-
-function Renderer:initOSSpecific()
-	local retVal =  Polycore.Renderer_initOSSpecific(self.__ptr)
-end
-
-function Renderer:addShaderModule(module)
-	local retVal = Polycore.Renderer_addShaderModule(self.__ptr, module.__ptr)
-end
-
-function Renderer:test2DCoordinate(x, y, poly, matrix, billboardMode)
-	local retVal = Polycore.Renderer_test2DCoordinate(self.__ptr, x, y, poly.__ptr, matrix.__ptr, billboardMode)
-	return retVal
-end
-
-function Renderer:getProjectionMatrix()
-	local retVal =  Polycore.Renderer_getProjectionMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:getModelviewMatrix()
-	local retVal =  Polycore.Renderer_getModelviewMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:Unproject(x, y)
-	local retVal = Polycore.Renderer_Unproject(self.__ptr, x, y)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector3("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Renderer:sortLights()
-	local retVal =  Polycore.Renderer_sortLights(self.__ptr)
-end
-
-function Renderer:getNumAreaLights()
-	local retVal =  Polycore.Renderer_getNumAreaLights(self.__ptr)
-	return retVal
-end
-
-function Renderer:getNumSpotLights()
-	local retVal =  Polycore.Renderer_getNumSpotLights(self.__ptr)
-	return retVal
-end
-
-function Renderer:getNumLights()
-	local retVal =  Polycore.Renderer_getNumLights(self.__ptr)
-	return retVal
-end
-
-
-
-function Renderer:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Renderer(self.__ptr)
-end

+ 0 - 71
Bindings/Contents/LUA/API/Polycode/Resource.lua

@@ -1,71 +0,0 @@
-class "Resource"
-
-
-
-RESOURCE_TEXTURE = 0
-RESOURCE_MATERIAL = 1
-RESOURCE_SHADER = 2
-RESOURCE_PROGRAM = 3
-RESOURCE_MESH = 5
-RESOURCE_CUBEMAP = 6
-
-
-
-
-function Resource:Resource(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Resource(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Resource:getResourceName()
-	local retVal =  Polycore.Resource_getResourceName(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Resource:getResourceType()
-	local retVal =  Polycore.Resource_getResourceType(self.__ptr)
-	return retVal
-end
-
-function Resource:setResourceName(newName)
-	local retVal = Polycore.Resource_setResourceName(self.__ptr, newName.__ptr)
-end
-
-function Resource:setResourcePath(path)
-	local retVal = Polycore.Resource_setResourcePath(self.__ptr, path.__ptr)
-end
-
-function Resource:getResourcePath()
-	local retVal =  Polycore.Resource_getResourcePath(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = String("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Resource:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Resource(self.__ptr)
-end

+ 0 - 85
Bindings/Contents/LUA/API/Polycode/ResourceManager.lua

@@ -1,85 +0,0 @@
-class "ResourceManager"
-
-
-
-
-
-
-
-function ResourceManager:ResourceManager(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ResourceManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ResourceManager:addResource(resource)
-	local retVal = Polycore.ResourceManager_addResource(self.__ptr, resource.__ptr)
-end
-
-function ResourceManager:addDirResource(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_addDirResource(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:addArchive(zipPath)
-	local retVal = Polycore.ResourceManager_addArchive(self.__ptr, zipPath.__ptr)
-end
-
-function ResourceManager:readFile(fileName)
-	local retVal = Polycore.ResourceManager_readFile(self.__ptr, fileName.__ptr)
-	return retVal
-end
-
-function ResourceManager:parseTextures(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseTextures(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:parseMaterials(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseMaterials(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:parseShaders(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseShaders(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:parsePrograms(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parsePrograms(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:parseCubemaps(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseCubemaps(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:parseOthers(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseOthers(self.__ptr, dirPath.__ptr, recursive)
-end
-
-function ResourceManager:getResource(resourceType, resourceName)
-	local retVal = Polycore.ResourceManager_getResource(self.__ptr, resourceType, resourceName.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Resource("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ResourceManager:addShaderModule(module)
-	local retVal = Polycore.ResourceManager_addShaderModule(self.__ptr, module.__ptr)
-end
-
-
-
-function ResourceManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ResourceManager(self.__ptr)
-end

+ 0 - 271
Bindings/Contents/LUA/API/Polycode/Scene.lua

@@ -1,271 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "Scene" (EventDispatcher)
-
-
-
-ENTITY_MESH = 0
-ENTITY_LIGHT = 1
-ENTITY_CAMERA = 2
-ENTITY_ENTITY = 3
-ENTITY_COLLMESH = 4
-function Scene:__index__(name)
-	if name == "clearColor" then
-		retVal = Polycore.Scene_get_clearColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "useClearColor" then
-		return Polycore.Scene_get_useClearColor(self.__ptr)
-	elseif name == "ambientColor" then
-		retVal = Polycore.Scene_get_ambientColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "fogColor" then
-		retVal = Polycore.Scene_get_fogColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "enabled" then
-		return Polycore.Scene_get_enabled(self.__ptr)
-	end
-end
-
-
-function Scene:__set_callback(name,value)
-	if name == "useClearColor" then
-		Polycore.Scene_set_useClearColor(self.__ptr, value)
-		return true
-	elseif name == "enabled" then
-		Polycore.Scene_set_enabled(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Scene:Scene(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "EventDispatcher" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Scene(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Scene:addEntity(entity)
-	local retVal = Polycore.Scene_addEntity(self.__ptr, entity.__ptr)
-end
-
-function Scene:removeEntity(entity)
-	local retVal = Polycore.Scene_removeEntity(self.__ptr, entity.__ptr)
-end
-
-function Scene:getDefaultCamera()
-	local retVal =  Polycore.Scene_getDefaultCamera(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Camera("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Scene:enableLighting(enable)
-	local retVal = Polycore.Scene_enableLighting(self.__ptr, enable)
-end
-
-function Scene:enableFog(enable)
-	local retVal = Polycore.Scene_enableFog(self.__ptr, enable)
-end
-
-function Scene:setFogProperties(fogMode, color, density, startDepth, _endDepth)
-	local retVal = Polycore.Scene_setFogProperties(self.__ptr, fogMode, color.__ptr, density, startDepth, _endDepth)
-end
-
-function Scene:Update()
-	local retVal =  Polycore.Scene_Update(self.__ptr)
-end
-
-function Scene:setVirtual(val)
-	local retVal = Polycore.Scene_setVirtual(self.__ptr, val)
-end
-
-function Scene:isVirtual()
-	local retVal =  Polycore.Scene_isVirtual(self.__ptr)
-	return retVal
-end
-
-function Scene:isEnabled()
-	local retVal =  Polycore.Scene_isEnabled(self.__ptr)
-	return retVal
-end
-
-function Scene:setEnabled(enabled)
-	local retVal = Polycore.Scene_setEnabled(self.__ptr, enabled)
-end
-
-function Scene:getNumEntities()
-	local retVal =  Polycore.Scene_getNumEntities(self.__ptr)
-	return retVal
-end
-
-function Scene:getEntity(index)
-	local retVal = Polycore.Scene_getEntity(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Scene:getEntityAtScreenPosition(x, y)
-	local retVal = Polycore.Scene_getEntityAtScreenPosition(self.__ptr, x, y)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Scene:Render(targetCamera)
-	local retVal = Polycore.Scene_Render(self.__ptr, targetCamera.__ptr)
-end
-
-function Scene:RenderDepthOnly(targetCamera)
-	local retVal = Polycore.Scene_RenderDepthOnly(self.__ptr, targetCamera.__ptr)
-end
-
-function Scene:readString(inFile)
-	local retVal = Polycore.Scene_readString(inFile.__ptr)
-	return retVal
-end
-
-function Scene:loadScene(fileName)
-	local retVal = Polycore.Scene_loadScene(self.__ptr, fileName.__ptr)
-end
-
-function Scene:generateLightmaps(lightMapRes, lightMapQuality, numRadPasses)
-	local retVal = Polycore.Scene_generateLightmaps(self.__ptr, lightMapRes, lightMapQuality, numRadPasses)
-end
-
-function Scene:addLight(light)
-	local retVal = Polycore.Scene_addLight(self.__ptr, light.__ptr)
-end
-
-function Scene:removeLight(light)
-	local retVal = Polycore.Scene_removeLight(self.__ptr, light.__ptr)
-end
-
-function Scene:getNearestLight(pos)
-	local retVal = Polycore.Scene_getNearestLight(self.__ptr, pos.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneLight("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Scene:writeEntityMatrix(entity, outFile)
-	local retVal = Polycore.Scene_writeEntityMatrix(self.__ptr, entity.__ptr, outFile.__ptr)
-end
-
-function Scene:writeString(str, outFile)
-	local retVal = Polycore.Scene_writeString(self.__ptr, str.__ptr, outFile.__ptr)
-end
-
-function Scene:saveScene(fileName)
-	local retVal = Polycore.Scene_saveScene(self.__ptr, fileName.__ptr)
-end
-
-function Scene:getNumStaticGeometry()
-	local retVal =  Polycore.Scene_getNumStaticGeometry(self.__ptr)
-	return retVal
-end
-
-function Scene:getStaticGeometry(index)
-	local retVal = Polycore.Scene_getStaticGeometry(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneMesh("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Scene:loadCollisionChild(entity, autoCollide, type)
-	local retVal = Polycore.Scene_loadCollisionChild(self.__ptr, entity.__ptr, autoCollide, type)
-end
-
-function Scene:getNumLights()
-	local retVal =  Polycore.Scene_getNumLights(self.__ptr)
-	return retVal
-end
-
-function Scene:getLight(index)
-	local retVal = Polycore.Scene_getLight(self.__ptr, index)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneLight("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Scene:getCustomEntityByType(type)
-	local retVal = Polycore.Scene_getCustomEntityByType(self.__ptr, type.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SceneEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Scene:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Scene(self.__ptr)
-end

+ 0 - 53
Bindings/Contents/LUA/API/Polycode/SceneEntity.lua

@@ -1,53 +0,0 @@
-require "Polycode/Entity"
-
-class "SceneEntity" (Entity)
-
-
-
-function SceneEntity:__index__(name)
-	if name == "castShadows" then
-		return Polycore.SceneEntity_get_castShadows(self.__ptr)
-	end
-end
-
-
-function SceneEntity:__set_callback(name,value)
-	if name == "castShadows" then
-		Polycore.SceneEntity_set_castShadows(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function SceneEntity:SceneEntity(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Entity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneEntity(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneEntity:testMouseCollision(x, y)
-	local retVal = Polycore.SceneEntity_testMouseCollision(self.__ptr, x, y)
-	return retVal
-end
-
-
-
-function SceneEntity:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneEntity(self.__ptr)
-end

+ 0 - 61
Bindings/Contents/LUA/API/Polycode/SceneLabel.lua

@@ -1,61 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneLabel" (SceneEntity)
-
-
-
-
-
-
-
-function SceneLabel:SceneLabel(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneLabel(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneLabel:testMouseCollision(x, y)
-	local retVal = Polycore.SceneLabel_testMouseCollision(self.__ptr, x, y)
-	return retVal
-end
-
-function SceneLabel:setText(newText)
-	local retVal = Polycore.SceneLabel_setText(self.__ptr, newText.__ptr)
-end
-
-function SceneLabel:getLabel()
-	local retVal =  Polycore.SceneLabel_getLabel(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Label("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneLabel:Render()
-	local retVal =  Polycore.SceneLabel_Render(self.__ptr)
-end
-
-
-
-function SceneLabel:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneLabel(self.__ptr)
-end

+ 0 - 184
Bindings/Contents/LUA/API/Polycode/SceneLight.lua

@@ -1,184 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneLight" (SceneEntity)
-
-
-
-AREA_LIGHT = 0
-SPOT_LIGHT = 1
-function SceneLight:__index__(name)
-	if name == "specularLightColor" then
-		retVal = Polycore.SceneLight_get_specularLightColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "lightColor" then
-		retVal = Polycore.SceneLight_get_lightColor(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = Color("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	end
-end
-
-
-function SceneLight:__set_callback(name,value)
-	return false
-end
-
-
-function SceneLight:SceneLight(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneLight(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneLight:getIntensity()
-	local retVal =  Polycore.SceneLight_getIntensity(self.__ptr)
-	return retVal
-end
-
-function SceneLight:setIntensity(newIntensity)
-	local retVal = Polycore.SceneLight_setIntensity(self.__ptr, newIntensity)
-end
-
-function SceneLight:setAttenuation(constantAttenuation, linearAttenuation, quadraticAttenuation)
-	local retVal = Polycore.SceneLight_setAttenuation(self.__ptr, constantAttenuation, linearAttenuation, quadraticAttenuation)
-end
-
-function SceneLight:getConstantAttenuation()
-	local retVal =  Polycore.SceneLight_getConstantAttenuation(self.__ptr)
-	return retVal
-end
-
-function SceneLight:getLinearAttenuation()
-	local retVal =  Polycore.SceneLight_getLinearAttenuation(self.__ptr)
-	return retVal
-end
-
-function SceneLight:getQuadraticAttenuation()
-	local retVal =  Polycore.SceneLight_getQuadraticAttenuation(self.__ptr)
-	return retVal
-end
-
-function SceneLight:getType()
-	local retVal =  Polycore.SceneLight_getType(self.__ptr)
-	return retVal
-end
-
-function SceneLight:renderDepthMap(scene)
-	local retVal = Polycore.SceneLight_renderDepthMap(self.__ptr, scene.__ptr)
-end
-
-function SceneLight:Render()
-	local retVal =  Polycore.SceneLight_Render(self.__ptr)
-end
-
-function SceneLight:getLightViewMatrix()
-	local retVal =  Polycore.SceneLight_getLightViewMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneLight:getZBufferTexture()
-	local retVal =  Polycore.SceneLight_getZBufferTexture(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneLight:setSpecularLightColor(r, g, b, a)
-	local retVal = Polycore.SceneLight_setSpecularLightColor(self.__ptr, r, g, b, a)
-end
-
-function SceneLight:setDiffuseLightColor(r, g, b)
-	local retVal = Polycore.SceneLight_setDiffuseLightColor(self.__ptr, r, g, b)
-end
-
-function SceneLight:setLightColor(r, g, b, a)
-	local retVal = Polycore.SceneLight_setLightColor(self.__ptr, r, g, b, a)
-end
-
-function SceneLight:setSpotlightProperties(spotlightCutoff, spotlightExponent)
-	local retVal = Polycore.SceneLight_setSpotlightProperties(self.__ptr, spotlightCutoff, spotlightExponent)
-end
-
-function SceneLight:getSpotlightCutoff()
-	local retVal =  Polycore.SceneLight_getSpotlightCutoff(self.__ptr)
-	return retVal
-end
-
-function SceneLight:getSpotlightExponent()
-	local retVal =  Polycore.SceneLight_getSpotlightExponent(self.__ptr)
-	return retVal
-end
-
-function SceneLight:enableShadows(val, resolution)
-	local retVal = Polycore.SceneLight_enableShadows(self.__ptr, val, resolution)
-end
-
-function SceneLight:setShadowMapFOV(fov)
-	local retVal = Polycore.SceneLight_setShadowMapFOV(self.__ptr, fov)
-end
-
-function SceneLight:areShadowsEnabled()
-	local retVal =  Polycore.SceneLight_areShadowsEnabled(self.__ptr)
-	return retVal
-end
-
-function SceneLight:getLightType()
-	local retVal =  Polycore.SceneLight_getLightType(self.__ptr)
-	return retVal
-end
-
-function SceneLight:enableDebugDraw(val)
-	local retVal = Polycore.SceneLight_enableDebugDraw(self.__ptr, val)
-end
-
-function SceneLight:setLightImportance(newImportance)
-	local retVal = Polycore.SceneLight_setLightImportance(self.__ptr, newImportance)
-end
-
-function SceneLight:getLightImportance()
-	local retVal =  Polycore.SceneLight_getLightImportance(self.__ptr)
-	return retVal
-end
-
-
-
-function SceneLight:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneLight(self.__ptr)
-end

+ 0 - 40
Bindings/Contents/LUA/API/Polycode/SceneLine.lua

@@ -1,40 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneLine" (SceneEntity)
-
-
-
-
-
-
-
-function SceneLine:SceneLine(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneLine(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneLine:Render()
-	local retVal =  Polycore.SceneLine_Render(self.__ptr)
-end
-
-
-
-function SceneLine:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneLine(self.__ptr)
-end

+ 0 - 48
Bindings/Contents/LUA/API/Polycode/SceneManager.lua

@@ -1,48 +0,0 @@
-class "SceneManager"
-
-
-
-
-
-
-
-function SceneManager:SceneManager(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneManager:addScene(newScene)
-	local retVal = Polycore.SceneManager_addScene(self.__ptr, newScene.__ptr)
-end
-
-function SceneManager:Update()
-	local retVal =  Polycore.SceneManager_Update(self.__ptr)
-end
-
-function SceneManager:UpdateVirtual()
-	local retVal =  Polycore.SceneManager_UpdateVirtual(self.__ptr)
-end
-
-function SceneManager:removeScene(scene)
-	local retVal = Polycore.SceneManager_removeScene(self.__ptr, scene.__ptr)
-end
-
-function SceneManager:registerRenderTexture(r_enderTexture)
-	local retVal = Polycore.SceneManager_registerRenderTexture(self.__ptr, r_enderTexture.__ptr)
-end
-
-
-
-function SceneManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneManager(self.__ptr)
-end

+ 0 - 157
Bindings/Contents/LUA/API/Polycode/SceneMesh.lua

@@ -1,157 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneMesh" (SceneEntity)
-
-
-
-function SceneMesh:__index__(name)
-	if name == "lightmapIndex" then
-		retVal = Polycore.SceneMesh_get_lightmapIndex(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = unsigned int("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "showVertexNormals" then
-		return Polycore.SceneMesh_get_showVertexNormals(self.__ptr)
-	end
-end
-
-
-function SceneMesh:__set_callback(name,value)
-	if name == "showVertexNormals" then
-		Polycore.SceneMesh_set_showVertexNormals(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function SceneMesh:SceneMesh(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneMesh(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneMesh:Render()
-	local retVal =  Polycore.SceneMesh_Render(self.__ptr)
-end
-
-function SceneMesh:getLocalShaderOptions()
-	local retVal =  Polycore.SceneMesh_getLocalShaderOptions(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ShaderBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneMesh:getMesh()
-	local retVal =  Polycore.SceneMesh_getMesh(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Mesh("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneMesh:getTexture()
-	local retVal =  Polycore.SceneMesh_getTexture(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneMesh:getMaterial()
-	local retVal =  Polycore.SceneMesh_getMaterial(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Material("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneMesh:loadTexture(fileName, clamp)
-	local retVal = Polycore.SceneMesh_loadTexture(self.__ptr, fileName.__ptr, clamp)
-end
-
-function SceneMesh:loadSkeleton(fileName)
-	local retVal = Polycore.SceneMesh_loadSkeleton(self.__ptr, fileName.__ptr)
-end
-
-function SceneMesh:setTexture(texture)
-	local retVal = Polycore.SceneMesh_setTexture(self.__ptr, texture.__ptr)
-end
-
-function SceneMesh:setMaterial(material)
-	local retVal = Polycore.SceneMesh_setMaterial(self.__ptr, material.__ptr)
-end
-
-function SceneMesh:setMaterialByName(materialName)
-	local retVal = Polycore.SceneMesh_setMaterialByName(self.__ptr, materialName.__ptr)
-end
-
-function SceneMesh:setMesh(mesh)
-	local retVal = Polycore.SceneMesh_setMesh(self.__ptr, mesh.__ptr)
-end
-
-function SceneMesh:setSkeleton(skeleton)
-	local retVal = Polycore.SceneMesh_setSkeleton(self.__ptr, skeleton.__ptr)
-end
-
-function SceneMesh:getSkeleton()
-	local retVal =  Polycore.SceneMesh_getSkeleton(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Skeleton("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneMesh:renderMeshLocally()
-	local retVal =  Polycore.SceneMesh_renderMeshLocally(self.__ptr)
-end
-
-function SceneMesh:cacheToVertexBuffer(cache)
-	local retVal = Polycore.SceneMesh_cacheToVertexBuffer(self.__ptr, cache)
-end
-
-
-
-function SceneMesh:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneMesh(self.__ptr)
-end

+ 0 - 72
Bindings/Contents/LUA/API/Polycode/SceneParticleEmitter.lua

@@ -1,72 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneParticleEmitter" (SceneEntity)
-
-
-
-
-
-
-
-function SceneParticleEmitter:SceneParticleEmitter(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneParticleEmitter(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneParticleEmitter:getEmitter()
-	local retVal =  Polycore.SceneParticleEmitter_getEmitter(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ParticleEmitter("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneParticleEmitter:respawnSceneParticles()
-	local retVal =  Polycore.SceneParticleEmitter_respawnSceneParticles(self.__ptr)
-end
-
-function SceneParticleEmitter:addParticleBody(particleBody)
-	local retVal = Polycore.SceneParticleEmitter_addParticleBody(self.__ptr, particleBody.__ptr)
-end
-
-function SceneParticleEmitter:getBaseMatrix()
-	local retVal =  Polycore.SceneParticleEmitter_getBaseMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneParticleEmitter:Update()
-	local retVal =  Polycore.SceneParticleEmitter_Update(self.__ptr)
-end
-
-
-
-function SceneParticleEmitter:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneParticleEmitter(self.__ptr)
-end

+ 0 - 43
Bindings/Contents/LUA/API/Polycode/ScenePrimitive.lua

@@ -1,43 +0,0 @@
-require "Polycode/SceneMesh"
-
-class "ScenePrimitive" (SceneMesh)
-
-
-
-TYPE_BOX = 0
-TYPE_PLANE = 1
-TYPE_SPHERE = 2
-TYPE_CYLINDER = 3
-TYPE_CONE = 4
-TYPE_VPLANE = 5
-TYPE_TORUS = 6
-
-
-
-
-function ScenePrimitive:ScenePrimitive(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneMesh" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ScenePrimitive(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function ScenePrimitive:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScenePrimitive(self.__ptr)
-end

+ 0 - 68
Bindings/Contents/LUA/API/Polycode/SceneRenderTexture.lua

@@ -1,68 +0,0 @@
-class "SceneRenderTexture"
-
-
-
-
-
-
-
-function SceneRenderTexture:SceneRenderTexture(...)
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneRenderTexture(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneRenderTexture:drawScreen()
-	local retVal =  Polycore.SceneRenderTexture_drawScreen(self.__ptr)
-end
-
-function SceneRenderTexture:getTargetTexture()
-	local retVal =  Polycore.SceneRenderTexture_getTargetTexture(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Texture("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneRenderTexture:getTargetScene()
-	local retVal =  Polycore.SceneRenderTexture_getTargetScene(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Scene("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function SceneRenderTexture:getTargetCamera()
-	local retVal =  Polycore.SceneRenderTexture_getTargetCamera(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Camera("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function SceneRenderTexture:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneRenderTexture(self.__ptr)
-end

+ 0 - 52
Bindings/Contents/LUA/API/Polycode/SceneSound.lua

@@ -1,52 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneSound" (SceneEntity)
-
-
-
-
-
-
-
-function SceneSound:SceneSound(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneSound(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneSound:Update()
-	local retVal =  Polycore.SceneSound_Update(self.__ptr)
-end
-
-function SceneSound:getSound()
-	local retVal =  Polycore.SceneSound_getSound(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Sound("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function SceneSound:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneSound(self.__ptr)
-end

+ 0 - 40
Bindings/Contents/LUA/API/Polycode/SceneSoundListener.lua

@@ -1,40 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "SceneSoundListener" (SceneEntity)
-
-
-
-
-
-
-
-function SceneSoundListener:SceneSoundListener(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "SceneEntity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.SceneSoundListener(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SceneSoundListener:Update()
-	local retVal =  Polycore.SceneSoundListener_Update(self.__ptr)
-end
-
-
-
-function SceneSoundListener:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SceneSoundListener(self.__ptr)
-end

+ 0 - 189
Bindings/Contents/LUA/API/Polycode/Screen.lua

@@ -1,189 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "Screen" (EventDispatcher)
-
-
-
-function Screen:__index__(name)
-	if name == "enabled" then
-		return Polycore.Screen_get_enabled(self.__ptr)
-	end
-end
-
-
-function Screen:__set_callback(name,value)
-	if name == "enabled" then
-		Polycore.Screen_set_enabled(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Screen:Screen(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "EventDispatcher" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.Screen(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Screen:addChild(newEntity)
-	local retVal = Polycore.Screen_addChild(self.__ptr, newEntity.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ScreenEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Screen:removeChild(entityToRemove)
-	local retVal = Polycore.Screen_removeChild(self.__ptr, entityToRemove.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ScreenEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Screen:setScreenOffset(x, y)
-	local retVal = Polycore.Screen_setScreenOffset(self.__ptr, x, y)
-end
-
-function Screen:getScreenOffset()
-	local retVal =  Polycore.Screen_getScreenOffset(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector2("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Screen:Shutdown()
-	local retVal =  Polycore.Screen_Shutdown(self.__ptr)
-end
-
-function Screen:Update()
-	local retVal =  Polycore.Screen_Update(self.__ptr)
-end
-
-function Screen:getEntityAt(x, y)
-	local retVal = Polycore.Screen_getEntityAt(self.__ptr, x, y)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ScreenEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Screen:Render()
-	local retVal =  Polycore.Screen_Render(self.__ptr)
-end
-
-function Screen:setRenderer(r_enderer)
-	local retVal = Polycore.Screen_setRenderer(self.__ptr, r_enderer.__ptr)
-end
-
-function Screen:setNormalizedCoordinates(newVal, yCoordinateSize)
-	local retVal = Polycore.Screen_setNormalizedCoordinates(self.__ptr, newVal, yCoordinateSize)
-end
-
-function Screen:setScreenShader(shaderName)
-	local retVal = Polycore.Screen_setScreenShader(self.__ptr, shaderName.__ptr)
-end
-
-function Screen:clearScreenShader()
-	local retVal =  Polycore.Screen_clearScreenShader(self.__ptr)
-end
-
-function Screen:getHighestZIndex()
-	local retVal =  Polycore.Screen_getHighestZIndex(self.__ptr)
-	return retVal
-end
-
-function Screen:sortChildren()
-	local retVal =  Polycore.Screen_sortChildren(self.__ptr)
-end
-
-function Screen:cmpZindex(left, right)
-	local retVal = Polycore.Screen_cmpZindex(left.__ptr, right.__ptr)
-	return retVal
-end
-
-function Screen:handleInputEvent(inputEvent)
-	local retVal = Polycore.Screen_handleInputEvent(self.__ptr, inputEvent.__ptr)
-end
-
-function Screen:hasFilterShader()
-	local retVal =  Polycore.Screen_hasFilterShader(self.__ptr)
-	return retVal
-end
-
-function Screen:drawFilter()
-	local retVal =  Polycore.Screen_drawFilter(self.__ptr)
-end
-
-function Screen:usesNormalizedCoordinates()
-	local retVal =  Polycore.Screen_usesNormalizedCoordinates(self.__ptr)
-	return retVal
-end
-
-function Screen:getYCoordinateSize()
-	local retVal =  Polycore.Screen_getYCoordinateSize(self.__ptr)
-	return retVal
-end
-
-function Screen:getRootEntity()
-	local retVal =  Polycore.Screen_getRootEntity(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ScreenEntity("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Screen:getScreenShaderMaterial()
-	local retVal =  Polycore.Screen_getScreenShaderMaterial(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Material("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Screen:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Screen(self.__ptr)
-end

+ 0 - 36
Bindings/Contents/LUA/API/Polycode/ScreenCurve.lua

@@ -1,36 +0,0 @@
-require "Polycode/ScreenShape"
-
-class "ScreenCurve" (ScreenShape)
-
-
-
-
-
-
-
-function ScreenCurve:ScreenCurve(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenShape" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ScreenCurve(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function ScreenCurve:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenCurve(self.__ptr)
-end

+ 0 - 236
Bindings/Contents/LUA/API/Polycode/ScreenEntity.lua

@@ -1,236 +0,0 @@
-require "Polycode/Entity"
-
-class "ScreenEntity" (Entity)
-
-
-
-POSITION_TOPLEFT = 0
-POSITION_CENTER = 1
-function ScreenEntity:__index__(name)
-	if name == "hasFocus" then
-		return Polycore.ScreenEntity_get_hasFocus(self.__ptr)
-	elseif name == "blockMouseInput" then
-		return Polycore.ScreenEntity_get_blockMouseInput(self.__ptr)
-	elseif name == "zindex" then
-		return Polycore.ScreenEntity_get_zindex(self.__ptr)
-	elseif name == "snapToPixels" then
-		return Polycore.ScreenEntity_get_snapToPixels(self.__ptr)
-	end
-end
-
-
-function ScreenEntity:__set_callback(name,value)
-	if name == "hasFocus" then
-		Polycore.ScreenEntity_set_hasFocus(self.__ptr, value)
-		return true
-	elseif name == "blockMouseInput" then
-		Polycore.ScreenEntity_set_blockMouseInput(self.__ptr, value)
-		return true
-	elseif name == "zindex" then
-		Polycore.ScreenEntity_set_zindex(self.__ptr, value)
-		return true
-	elseif name == "snapToPixels" then
-		Polycore.ScreenEntity_set_snapToPixels(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function ScreenEntity:ScreenEntity(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Entity" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ScreenEntity(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenEntity:setPosition(x, y)
-	local retVal = Polycore.ScreenEntity_setPosition(self.__ptr, x, y)
-end
-
-function ScreenEntity:setScale(x, y)
-	local retVal = Polycore.ScreenEntity_setScale(self.__ptr, x, y)
-end
-
-function ScreenEntity:setRotation(roatation)
-	local retVal = Polycore.ScreenEntity_setRotation(self.__ptr, roatation)
-end
-
-function ScreenEntity:getRotation()
-	local retVal =  Polycore.ScreenEntity_getRotation(self.__ptr)
-	return retVal
-end
-
-function ScreenEntity:_onMouseDown(x, y, mouseButton, timestamp)
-	local retVal = Polycore.ScreenEntity__onMouseDown(self.__ptr, x, y, mouseButton, timestamp)
-	return retVal
-end
-
-function ScreenEntity:_onMouseUp(x, y, mouseButton, timestamp)
-	local retVal = Polycore.ScreenEntity__onMouseUp(self.__ptr, x, y, mouseButton, timestamp)
-	return retVal
-end
-
-function ScreenEntity:_onMouseMove(x, y, timestamp)
-	local retVal = Polycore.ScreenEntity__onMouseMove(self.__ptr, x, y, timestamp)
-end
-
-function ScreenEntity:_onMouseWheelUp(x, y, timestamp)
-	local retVal = Polycore.ScreenEntity__onMouseWheelUp(self.__ptr, x, y, timestamp)
-end
-
-function ScreenEntity:_onMouseWheelDown(x, y, timestamp)
-	local retVal = Polycore.ScreenEntity__onMouseWheelDown(self.__ptr, x, y, timestamp)
-end
-
-function ScreenEntity:onMouseDown(x, y)
-	local retVal = Polycore.ScreenEntity_onMouseDown(self.__ptr, x, y)
-end
-
-function ScreenEntity:onMouseUp(x, y)
-	local retVal = Polycore.ScreenEntity_onMouseUp(self.__ptr, x, y)
-end
-
-function ScreenEntity:onMouseMove(x, y)
-	local retVal = Polycore.ScreenEntity_onMouseMove(self.__ptr, x, y)
-end
-
-function ScreenEntity:onMouseWheelUp(x, y)
-	local retVal = Polycore.ScreenEntity_onMouseWheelUp(self.__ptr, x, y)
-end
-
-function ScreenEntity:onMouseWheelDown(x, y)
-	local retVal = Polycore.ScreenEntity_onMouseWheelDown(self.__ptr, x, y)
-end
-
-function ScreenEntity:_onKeyDown(key, charCode)
-	local retVal = Polycore.ScreenEntity__onKeyDown(self.__ptr, key.__ptr, charCode.__ptr)
-end
-
-function ScreenEntity:_onKeyUp(key, charCode)
-	local retVal = Polycore.ScreenEntity__onKeyUp(self.__ptr, key.__ptr, charCode.__ptr)
-end
-
-function ScreenEntity:onKeyDown(key, charCode)
-	local retVal = Polycore.ScreenEntity_onKeyDown(self.__ptr, key.__ptr, charCode.__ptr)
-end
-
-function ScreenEntity:onKeyUp(key, charCode)
-	local retVal = Polycore.ScreenEntity_onKeyUp(self.__ptr, key.__ptr, charCode.__ptr)
-end
-
-function ScreenEntity:hitTest(x, y)
-	local retVal = Polycore.ScreenEntity_hitTest(self.__ptr, x, y)
-	return retVal
-end
-
-function ScreenEntity:buildPositionMatrix()
-	local retVal =  Polycore.ScreenEntity_buildPositionMatrix(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Matrix4("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ScreenEntity:adjustMatrixForChildren()
-	local retVal =  Polycore.ScreenEntity_adjustMatrixForChildren(self.__ptr)
-end
-
-function ScreenEntity:getWidth()
-	local retVal =  Polycore.ScreenEntity_getWidth(self.__ptr)
-	return retVal
-end
-
-function ScreenEntity:getHeight()
-	local retVal =  Polycore.ScreenEntity_getHeight(self.__ptr)
-	return retVal
-end
-
-function ScreenEntity:setWidth(w)
-	local retVal = Polycore.ScreenEntity_setWidth(self.__ptr, w)
-end
-
-function ScreenEntity:setHeight(h)
-	local retVal = Polycore.ScreenEntity_setHeight(self.__ptr, h)
-end
-
-function ScreenEntity:onGainFocus()
-	local retVal =  Polycore.ScreenEntity_onGainFocus(self.__ptr)
-end
-
-function ScreenEntity:onLoseFocus()
-	local retVal =  Polycore.ScreenEntity_onLoseFocus(self.__ptr)
-end
-
-function ScreenEntity:startDrag(xOffset, yOffset)
-	local retVal = Polycore.ScreenEntity_startDrag(self.__ptr, xOffset, yOffset)
-end
-
-function ScreenEntity:stopDrag()
-	local retVal =  Polycore.ScreenEntity_stopDrag(self.__ptr)
-end
-
-function ScreenEntity:setBlendingMode(newBl_endingMode)
-	local retVal = Polycore.ScreenEntity_setBlendingMode(self.__ptr, newBl_endingMode)
-end
-
-function ScreenEntity:setPositionMode(newPositionMode)
-	local retVal = Polycore.ScreenEntity_setPositionMode(self.__ptr, newPositionMode)
-end
-
-function ScreenEntity:setDragLimits(rect)
-	local retVal = Polycore.ScreenEntity_setDragLimits(self.__ptr, rect.__ptr)
-end
-
-function ScreenEntity:clearDragLimits()
-	local retVal =  Polycore.ScreenEntity_clearDragLimits(self.__ptr)
-end
-
-function ScreenEntity:focusChild(child)
-	local retVal = Polycore.ScreenEntity_focusChild(self.__ptr, child.__ptr)
-end
-
-function ScreenEntity:focusNextChild()
-	local retVal =  Polycore.ScreenEntity_focusNextChild(self.__ptr)
-end
-
-function ScreenEntity:getPosition2D()
-	local retVal =  Polycore.ScreenEntity_getPosition2D(self.__ptr)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = Vector2("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ScreenEntity:isFocusable()
-	local retVal =  Polycore.ScreenEntity_isFocusable(self.__ptr)
-	return retVal
-end
-
-
-
-function ScreenEntity:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenEntity(self.__ptr)
-end

+ 0 - 40
Bindings/Contents/LUA/API/Polycode/ScreenEvent.lua

@@ -1,40 +0,0 @@
-require "Polycode/Event"
-
-class "ScreenEvent" (Event)
-
-
-
-ENTITY_MOVE_TOP = 0
-ENTITY_MOVE_BOTTOM = 1
-ENTITY_MOVE_UP = 2
-ENTITY_MOVE_DOWN = 3
-
-
-
-
-function ScreenEvent:ScreenEvent(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Event" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ScreenEvent(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function ScreenEvent:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenEvent(self.__ptr)
-end

+ 0 - 50
Bindings/Contents/LUA/API/Polycode/ScreenImage.lua

@@ -1,50 +0,0 @@
-require "Polycode/ScreenShape"
-
-class "ScreenImage" (ScreenShape)
-
-
-
-
-
-
-
-function ScreenImage:ScreenImage(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenShape" then
-			self.__ptr = arg[1].__ptr
-			return
-		end
-	end
-	for k,v in pairs(arg) do
-		if type(v) == "table" then
-			if v.__ptr ~= nil then
-				arg[k] = v.__ptr
-			end
-		end
-	end
-	if self.__ptr == nil and arg[1] ~= "__skip_ptr__" then
-		self.__ptr = Polycore.ScreenImage(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenImage:setImageCoordinates(x, y, width, height)
-	local retVal = Polycore.ScreenImage_setImageCoordinates(self.__ptr, x, y, width, height)
-end
-
-function ScreenImage:getImageWidth()
-	local retVal =  Polycore.ScreenImage_getImageWidth(self.__ptr)
-	return retVal
-end
-
-function ScreenImage:getImageHeight()
-	local retVal =  Polycore.ScreenImage_getImageHeight(self.__ptr)
-	return retVal
-end
-
-
-
-function ScreenImage:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenImage(self.__ptr)
-end

Някои файлове не бяха показани, защото твърде много файлове са промени