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

Merge mingw branch with 6/28 Ivan Polycode

mcc преди 13 години
родител
ревизия
acd72adcf6
променени са 100 файла, в които са добавени 167 реда и са изтрити 9085 реда
  1. 17 0
      .gitignore
  2. 75 0
      Assets/Templates/C++/Windows/Polycode.props
  3. 6 12
      Assets/Templates/C++/Windows/PolycodeTemplate.vcxproj
  4. 6 0
      Assets/Templates/C++/Xcode/PolycodeTemplate.xcodeproj/project.pbxproj
  5. 1 1
      Assets/Templates/C++/Xcode/PolycodeTemplate/PolycodeTemplate-Info.plist
  6. 46 114
      Assets/Templates/C++/Xcode/PolycodeTemplate/en.lproj/MainMenu.xib
  7. BIN
      Assets/Templates/C++/Xcode/PolycodeTemplate/main_icon.icns
  8. 8 2
      BUILD.md
  9. 8 2
      BUILD.txt
  10. 0 87
      Bindings/Contents/LUA/API/Polycode.lua
  11. 0 98
      Bindings/Contents/LUA/API/Polycode/BezierCurve.lua
  12. 0 40
      Bindings/Contents/LUA/API/Polycode/BezierPathTween.lua
  13. 0 228
      Bindings/Contents/LUA/API/Polycode/Bone.lua
  14. 0 149
      Bindings/Contents/LUA/API/Polycode/BoneTrack.lua
  15. 0 122
      Bindings/Contents/LUA/API/Polycode/Camera.lua
  16. 0 93
      Bindings/Contents/LUA/API/Polycode/Color.lua
  17. 0 73
      Bindings/Contents/LUA/API/Polycode/Config.lua
  18. 0 210
      Bindings/Contents/LUA/API/Polycode/Core.lua
  19. 0 158
      Bindings/Contents/LUA/API/Polycode/CoreInput.lua
  20. 0 192
      Bindings/Contents/LUA/API/Polycode/CoreServices.lua
  21. 0 36
      Bindings/Contents/LUA/API/Polycode/Cubemap.lua
  22. 0 58
      Bindings/Contents/LUA/API/Polycode/Data.lua
  23. 0 506
      Bindings/Contents/LUA/API/Polycode/Entity.lua
  24. 0 67
      Bindings/Contents/LUA/API/Polycode/Event.lua
  25. 0 64
      Bindings/Contents/LUA/API/Polycode/EventDispatcher.lua
  26. 0 35
      Bindings/Contents/LUA/API/Polycode/EventHandler.lua
  27. 0 48
      Bindings/Contents/LUA/API/Polycode/FixedShader.lua
  28. 0 60
      Bindings/Contents/LUA/API/Polycode/FixedShaderBinding.lua
  29. 0 57
      Bindings/Contents/LUA/API/Polycode/Font.lua
  30. 0 44
      Bindings/Contents/LUA/API/Polycode/FontManager.lua
  31. 0 54
      Bindings/Contents/LUA/API/Polycode/GLSLProgram.lua
  32. 0 47
      Bindings/Contents/LUA/API/Polycode/GLSLShader.lua
  33. 0 52
      Bindings/Contents/LUA/API/Polycode/GLSLShaderBinding.lua
  34. 0 73
      Bindings/Contents/LUA/API/Polycode/GLSLShaderModule.lua
  35. 0 127
      Bindings/Contents/LUA/API/Polycode/GenericScene.lua
  36. 0 162
      Bindings/Contents/LUA/API/Polycode/Image.lua
  37. 0 166
      Bindings/Contents/LUA/API/Polycode/InputEvent.lua
  38. 0 76
      Bindings/Contents/LUA/API/Polycode/Label.lua
  39. 0 36
      Bindings/Contents/LUA/API/Polycode/Logger.lua
  40. 0 141
      Bindings/Contents/LUA/API/Polycode/Material.lua
  41. 0 176
      Bindings/Contents/LUA/API/Polycode/MaterialManager.lua
  42. 0 92
      Bindings/Contents/LUA/API/Polycode/Matrix4.lua
  43. 0 187
      Bindings/Contents/LUA/API/Polycode/Mesh.lua
  44. 0 64
      Bindings/Contents/LUA/API/Polycode/OSBasics.lua
  45. 0 46
      Bindings/Contents/LUA/API/Polycode/OSFILE.lua
  46. 0 67
      Bindings/Contents/LUA/API/Polycode/OSFileEntry.lua
  47. 0 88
      Bindings/Contents/LUA/API/Polycode/ObjectEntry.lua
  48. 0 47
      Bindings/Contents/LUA/API/Polycode/OpenGLCubemap.lua
  49. 0 106
      Bindings/Contents/LUA/API/Polycode/Particle.lua
  50. 0 228
      Bindings/Contents/LUA/API/Polycode/ParticleEmitter.lua
  51. 0 33
      Bindings/Contents/LUA/API/Polycode/Perlin.lua
  52. 0 35
      Bindings/Contents/LUA/API/Polycode/PolycodeModule.lua
  53. 0 28
      Bindings/Contents/LUA/API/Polycode/PolycodeViewBase.lua
  54. 0 125
      Bindings/Contents/LUA/API/Polycode/Polygon.lua
  55. 0 191
      Bindings/Contents/LUA/API/Polycode/Quaternion.lua
  56. 0 48
      Bindings/Contents/LUA/API/Polycode/QuaternionCurve.lua
  57. 0 40
      Bindings/Contents/LUA/API/Polycode/QuaternionTween.lua
  58. 0 59
      Bindings/Contents/LUA/API/Polycode/Rectangle.lua
  59. 0 532
      Bindings/Contents/LUA/API/Polycode/Renderer.lua
  60. 0 71
      Bindings/Contents/LUA/API/Polycode/Resource.lua
  61. 0 85
      Bindings/Contents/LUA/API/Polycode/ResourceManager.lua
  62. 0 287
      Bindings/Contents/LUA/API/Polycode/Scene.lua
  63. 0 53
      Bindings/Contents/LUA/API/Polycode/SceneEntity.lua
  64. 0 52
      Bindings/Contents/LUA/API/Polycode/SceneLabel.lua
  65. 0 184
      Bindings/Contents/LUA/API/Polycode/SceneLight.lua
  66. 0 40
      Bindings/Contents/LUA/API/Polycode/SceneLine.lua
  67. 0 52
      Bindings/Contents/LUA/API/Polycode/SceneManager.lua
  68. 0 157
      Bindings/Contents/LUA/API/Polycode/SceneMesh.lua
  69. 0 72
      Bindings/Contents/LUA/API/Polycode/SceneParticleEmitter.lua
  70. 0 43
      Bindings/Contents/LUA/API/Polycode/ScenePrimitive.lua
  71. 0 68
      Bindings/Contents/LUA/API/Polycode/SceneRenderTexture.lua
  72. 0 52
      Bindings/Contents/LUA/API/Polycode/SceneSound.lua
  73. 0 40
      Bindings/Contents/LUA/API/Polycode/SceneSoundListener.lua
  74. 0 189
      Bindings/Contents/LUA/API/Polycode/Screen.lua
  75. 0 36
      Bindings/Contents/LUA/API/Polycode/ScreenCurve.lua
  76. 0 236
      Bindings/Contents/LUA/API/Polycode/ScreenEntity.lua
  77. 0 40
      Bindings/Contents/LUA/API/Polycode/ScreenEvent.lua
  78. 0 50
      Bindings/Contents/LUA/API/Polycode/ScreenImage.lua
  79. 0 68
      Bindings/Contents/LUA/API/Polycode/ScreenLabel.lua
  80. 0 48
      Bindings/Contents/LUA/API/Polycode/ScreenLine.lua
  81. 0 48
      Bindings/Contents/LUA/API/Polycode/ScreenManager.lua
  82. 0 72
      Bindings/Contents/LUA/API/Polycode/ScreenMesh.lua
  83. 0 68
      Bindings/Contents/LUA/API/Polycode/ScreenParticleEmitter.lua
  84. 0 93
      Bindings/Contents/LUA/API/Polycode/ScreenShape.lua
  85. 0 52
      Bindings/Contents/LUA/API/Polycode/ScreenSound.lua
  86. 0 40
      Bindings/Contents/LUA/API/Polycode/ScreenSoundListener.lua
  87. 0 52
      Bindings/Contents/LUA/API/Polycode/ScreenSprite.lua
  88. 0 68
      Bindings/Contents/LUA/API/Polycode/Shader.lua
  89. 0 132
      Bindings/Contents/LUA/API/Polycode/ShaderBinding.lua
  90. 0 117
      Bindings/Contents/LUA/API/Polycode/Skeleton.lua
  91. 0 60
      Bindings/Contents/LUA/API/Polycode/SkeletonAnimation.lua
  92. 0 112
      Bindings/Contents/LUA/API/Polycode/Sound.lua
  93. 0 44
      Bindings/Contents/LUA/API/Polycode/SoundManager.lua
  94. 0 132
      Bindings/Contents/LUA/API/Polycode/String.lua
  95. 0 102
      Bindings/Contents/LUA/API/Polycode/Texture.lua
  96. 0 69
      Bindings/Contents/LUA/API/Polycode/Timer.lua
  97. 0 40
      Bindings/Contents/LUA/API/Polycode/TimerManager.lua
  98. 0 103
      Bindings/Contents/LUA/API/Polycode/Tween.lua
  99. 0 40
      Bindings/Contents/LUA/API/Polycode/TweenManager.lua
  100. 0 36
      Bindings/Contents/LUA/API/Polycode/Vector2.lua

+ 17 - 0
.gitignore

@@ -39,6 +39,23 @@
 UserInterfaceState.*
 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
 /Standalone/Build
 

+ 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>

+ 6 - 12
Assets/Templates/C++/Windows/PolycodeTemplate.vcxproj

@@ -32,52 +32,46 @@
   </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>
-    <IncludePath>$(SolutionDir)..\..\Core\include;$(SolutionDir)..\..\Core\Dependencies\include;$(SolutionDir)..\..\Core\PolycodeView;$(SolutionDir)..\..\Core\Dependencies\include\AL;$(IncludePath)</IncludePath>
-    <LibraryPath>$(SolutionDir)..\..\Core\lib;$(SolutionDir)..\..\Core\Dependencies\lib;$(LibraryPath)</LibraryPath>
   </PropertyGroup>
   <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     <LinkIncremental>false</LinkIncremental>
-    <IncludePath>$(SolutionDir)..\..\Core\Include;$(SolutionDir)..\..\Core\Dependencies\Include;$(SolutionDir)..\..\Core\Dependencies\Include\AL;$(IncludePath)</IncludePath>
-    <LibraryPath>$(SolutionDir)..\..\Core\lib;$(SolutionDir)..\..\Core\Dependencies\lib;$(LibraryPath)</LibraryPath>
   </PropertyGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
     <ClCompile>
       <PrecompiledHeader>
       </PrecompiledHeader>
-      <WarningLevel>Level3</WarningLevel>
       <Optimization>Disabled</Optimization>
-      <PreprocessorDefinitions>WIN32;_DEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>_DEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
       <RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
     </ClCompile>
     <Link>
-      <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
-      <AdditionalDependencies>opengl32.lib;glu32.lib;Polycore_d.lib;zlibd.lib;freetype_d.lib;liboggd.lib;libvorbisd.lib;libvorbisfiled.lib;OpenAL32d.lib;kernel32.lib;physfsd.lib;libpng15_staticd.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>$(PolycodeLibsDebug);%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
   </ItemDefinitionGroup>
   <ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
     <ClCompile>
-      <WarningLevel>Level3</WarningLevel>
       <PrecompiledHeader>
       </PrecompiledHeader>
       <Optimization>MaxSpeed</Optimization>
       <FunctionLevelLinking>true</FunctionLevelLinking>
       <IntrinsicFunctions>true</IntrinsicFunctions>
-      <PreprocessorDefinitions>WIN32;NDEBUG;_WINDOWS;%(PreprocessorDefinitions)</PreprocessorDefinitions>
+      <PreprocessorDefinitions>NDEBUG;%(PreprocessorDefinitions)</PreprocessorDefinitions>
     </ClCompile>
     <Link>
-      <SubSystem>Windows</SubSystem>
       <GenerateDebugInformation>true</GenerateDebugInformation>
       <EnableCOMDATFolding>true</EnableCOMDATFolding>
       <OptimizeReferences>true</OptimizeReferences>
-      <AdditionalDependencies>opengl32.lib;glu32.lib;Polycore.lib;zlib.lib;freetype.lib;libogg.lib;libvorbis.lib;libvorbisfile.lib;OpenAL32.lib;kernel32.lib;physfs.lib;libpng15_static.lib;kernel32.lib;user32.lib;gdi32.lib;winspool.lib;comdlg32.lib;advapi32.lib;shell32.lib;ole32.lib;oleaut32.lib;uuid.lib;odbc32.lib;odbccp32.lib;%(AdditionalDependencies)</AdditionalDependencies>
+      <AdditionalDependencies>$(PolycodeLibsRelease);%(AdditionalDependencies)</AdditionalDependencies>
     </Link>
   </ItemDefinitionGroup>
   <ItemGroup>

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

@@ -7,6 +7,7 @@
 	objects = {
 
 /* 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 */; };
 		6D2800C613760D3E00BD8D0D /* InfoPlist.strings in Resources */ = {isa = PBXBuildFile; fileRef = 6D2800C413760D3E00BD8D0D /* InfoPlist.strings */; };
 		6D2800C913760D3E00BD8D0D /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 6D2800C813760D3E00BD8D0D /* main.m */; };
@@ -30,6 +31,7 @@
 /* End PBXBuildFile 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; };
 		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; };
@@ -145,6 +147,7 @@
 			isa = PBXGroup;
 			children = (
 				6D2800FD13760FC400BD8D0D /* default.pak */,
+				6D022DE91598EBF30030B45F /* main_icon.icns */,
 				6D2800F713760E7C00BD8D0D /* PolycodeView.h */,
 				6D2800F813760E7C00BD8D0D /* PolycodeView.mm */,
 				6D2800CD13760D3E00BD8D0D /* PolycodeTemplateAppDelegate.h */,
@@ -213,6 +216,7 @@
 				6D2800CC13760D3E00BD8D0D /* Credits.rtf in Resources */,
 				6D2800D213760D3E00BD8D0D /* MainMenu.xib in Resources */,
 				6D2800FE13760FC400BD8D0D /* default.pak in Resources */,
+				6D022DEA1598EBF30030B45F /* main_icon.icns in Resources */,
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 		};
@@ -305,6 +309,7 @@
 					"\"$(SRCROOT)/../../Core/Include\"",
 					"\"$(SRCROOT)/../../Core/Dependencies/Include\"",
 					/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";
 				LIBRARY_SEARCH_PATHS = (
@@ -331,6 +336,7 @@
 					"\"$(SRCROOT)/../../Core/Include\"",
 					"\"$(SRCROOT)/../../Core/Dependencies/Include\"",
 					/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";
 				LIBRARY_SEARCH_PATHS = (

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

@@ -7,7 +7,7 @@
 	<key>CFBundleExecutable</key>
 	<string>${EXECUTABLE_NAME}</string>
 	<key>CFBundleIconFile</key>
-	<string></string>
+	<string>main_icon.icns</string>
 	<key>CFBundleIdentifier</key>
 	<string>org.polycode.${PRODUCT_NAME:rfc1034identifier}</string>
 	<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"?>
 <archive type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="7.10">
 	<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">
 			<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 class="NSArray" key="IBDocument.IntegratedClassDependencies">
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -24,11 +24,8 @@
 			<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
 		</object>
 		<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 class="NSMutableArray" key="IBDocument.RootObjects" id="1048">
 			<bool key="EncodedWithXMLCoder">YES</bool>
@@ -269,10 +266,11 @@
 				<int key="NSWindowStyleMask">15</int>
 				<int key="NSWindowBacking">2</int>
 				<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="NSWindowClass">NSWindow</string>
 				<nil key="NSViewClass"/>
+				<nil key="NSUserInterfaceItemIdentifier"/>
 				<object class="NSView" key="NSWindowView" id="439893737">
 					<reference key="NSNextResponder"/>
 					<int key="NSvFlags">256</int>
@@ -285,7 +283,6 @@
 							<string key="NSFrameSize">{480, 360}</string>
 							<reference key="NSSuperview" ref="439893737"/>
 							<reference key="NSWindow"/>
-							<reference key="NSNextKeyView"/>
 							<object class="NSOpenGLPixelFormat" key="NSPixelFormat">
 								<object class="NSMutableData" key="NSPixelAttributes">
 									<bytes key="NS.bytes">AAAAYAAAAAA</bytes>
@@ -293,13 +290,14 @@
 							</object>
 						</object>
 					</object>
-					<string key="NSFrame">{{7, 11}, {480, 360}}</string>
+					<string key="NSFrameSize">{480, 360}</string>
 					<reference key="NSSuperview"/>
 					<reference key="NSWindow"/>
 					<reference key="NSNextKeyView" ref="115691534"/>
 				</object>
 				<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 class="NSCustomObject" id="976324537">
 				<string key="NSClassName">PolycodeTemplateAppDelegate</string>
@@ -311,6 +309,30 @@
 		<object class="IBObjectContainer" key="IBDocument.Objects">
 			<object class="NSMutableArray" key="connectionRecords">
 				<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="IBActionConnection" key="connection">
 						<string key="label">performMiniaturize:</string>
@@ -327,14 +349,6 @@
 					</object>
 					<int key="connectionID">39</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="IBActionConnection" key="connection">
 						<string key="label">performZoom:</string>
@@ -367,14 +381,6 @@
 					</object>
 					<int key="connectionID">370</int>
 				</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="IBActionConnection" key="connection">
 						<string key="label">showHelp:</string>
@@ -383,14 +389,6 @@
 					</object>
 					<int key="connectionID">493</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="IBOutletConnection" key="connection">
 						<string key="label">window</string>
@@ -413,7 +411,9 @@
 					<bool key="EncodedWithXMLCoder">YES</bool>
 					<object class="IBObjectRecord">
 						<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"/>
 						<nil key="parent"/>
 					</object>
@@ -645,139 +645,75 @@
 					<string>-2.IBPluginDependency</string>
 					<string>-3.IBPluginDependency</string>
 					<string>129.IBPluginDependency</string>
-					<string>129.ImportedFromIB2</string>
 					<string>130.IBPluginDependency</string>
-					<string>130.ImportedFromIB2</string>
-					<string>130.editorWindowContentRectSynchronizationRect</string>
 					<string>131.IBPluginDependency</string>
-					<string>131.ImportedFromIB2</string>
 					<string>134.IBPluginDependency</string>
-					<string>134.ImportedFromIB2</string>
 					<string>136.IBPluginDependency</string>
-					<string>136.ImportedFromIB2</string>
 					<string>143.IBPluginDependency</string>
-					<string>143.ImportedFromIB2</string>
 					<string>144.IBPluginDependency</string>
-					<string>144.ImportedFromIB2</string>
 					<string>145.IBPluginDependency</string>
-					<string>145.ImportedFromIB2</string>
 					<string>149.IBPluginDependency</string>
-					<string>149.ImportedFromIB2</string>
 					<string>150.IBPluginDependency</string>
-					<string>150.ImportedFromIB2</string>
 					<string>19.IBPluginDependency</string>
-					<string>19.ImportedFromIB2</string>
 					<string>23.IBPluginDependency</string>
-					<string>23.ImportedFromIB2</string>
 					<string>236.IBPluginDependency</string>
-					<string>236.ImportedFromIB2</string>
 					<string>239.IBPluginDependency</string>
-					<string>239.ImportedFromIB2</string>
-					<string>24.IBEditorWindowLastContentRect</string>
 					<string>24.IBPluginDependency</string>
-					<string>24.ImportedFromIB2</string>
-					<string>24.editorWindowContentRectSynchronizationRect</string>
-					<string>29.IBEditorWindowLastContentRect</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.IBWindowTemplateEditedContentRect</string>
 					<string>371.NSWindowTemplate.visibleAtLaunch</string>
-					<string>371.editorWindowContentRectSynchronizationRect</string>
 					<string>372.IBPluginDependency</string>
 					<string>420.IBPluginDependency</string>
 					<string>490.IBPluginDependency</string>
-					<string>491.IBEditorWindowLastContentRect</string>
 					<string>491.IBPluginDependency</string>
 					<string>492.IBPluginDependency</string>
 					<string>494.IBPluginDependency</string>
 					<string>5.IBPluginDependency</string>
-					<string>5.ImportedFromIB2</string>
 					<string>533.CustomClassName</string>
 					<string>533.IBPluginDependency</string>
 					<string>56.IBPluginDependency</string>
-					<string>56.ImportedFromIB2</string>
-					<string>57.IBEditorWindowLastContentRect</string>
 					<string>57.IBPluginDependency</string>
-					<string>57.ImportedFromIB2</string>
-					<string>57.editorWindowContentRectSynchronizationRect</string>
 					<string>58.IBPluginDependency</string>
-					<string>58.ImportedFromIB2</string>
 					<string>92.IBPluginDependency</string>
-					<string>92.ImportedFromIB2</string>
 				</object>
-				<object class="NSMutableArray" key="dict.values">
+				<object class="NSArray" key="dict.values">
 					<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>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{436, 809}, {64, 6}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
-					<string>{{654, 239}, {194, 73}}</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>
-					<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>{{380, 496}, {480, 360}}</string>
 					<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>{{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>
-					<integer value="1"/>
 					<string>PolycodeView</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>
-					<integer value="1"/>
-					<string>{{23, 794}, {245, 183}}</string>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 					<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
-					<integer value="1"/>
 				</object>
 			</object>
 			<object class="NSMutableDictionary" key="unlocalizedProperties">
@@ -807,7 +743,7 @@
 							<string>mainView</string>
 							<string>window</string>
 						</object>
-						<object class="NSMutableArray" key="dict.values">
+						<object class="NSArray" key="dict.values">
 							<bool key="EncodedWithXMLCoder">YES</bool>
 							<string>PolycodeView</string>
 							<string>NSWindow</string>
@@ -820,7 +756,7 @@
 							<string>mainView</string>
 							<string>window</string>
 						</object>
-						<object class="NSMutableArray" key="dict.values">
+						<object class="NSArray" key="dict.values">
 							<bool key="EncodedWithXMLCoder">YES</bool>
 							<object class="IBToOneOutletInfo">
 								<string key="name">mainView</string>
@@ -849,10 +785,6 @@
 		</object>
 		<int key="IBDocument.localizationMode">0</int>
 		<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">
 			<string key="NS.key.0">com.apple.InterfaceBuilder.CocoaPlugin.InterfaceBuilder3</string>
 			<integer value="3000" key="NS.object.0"/>
@@ -866,10 +798,10 @@
 				<string>NSMenuCheckmark</string>
 				<string>NSMenuMixedState</string>
 			</object>
-			<object class="NSMutableArray" key="dict.values">
+			<object class="NSArray" key="dict.values">
 				<bool key="EncodedWithXMLCoder">YES</bool>
-				<string>{9, 8}</string>
-				<string>{7, 2}</string>
+				<string>{11, 11}</string>
+				<string>{10, 3}</string>
 			</object>
 		</object>
 	</data>

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


+ 8 - 2
BUILD.md

@@ -8,8 +8,7 @@ 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.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 
@@ -48,6 +47,11 @@ 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:
 
@@ -195,6 +199,8 @@ 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:
 

+ 8 - 2
BUILD.txt

@@ -8,8 +8,7 @@ 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.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 
@@ -48,6 +47,11 @@ 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:
 
@@ -195,6 +199,8 @@ 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:
 

+ 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, 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(targetTexture, targetTextureWidth, targetTextureHeight)
-	local retVal = Polycore.Camera_drawFilter(self.__ptr, targetTexture.__ptr, targetTextureWidth, targetTextureHeight)
-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)
-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, fileName)
-end
-
-function Config:saveConfig(configNamespace, fileName)
-	local retVal = Polycore.Config_saveConfig(self.__ptr, configNamespace, fileName)
-end
-
-function Config:getEntry(configNamespace, key)
-	local retVal = Polycore.Config_getEntry(self.__ptr, configNamespace, key)
-	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, key, value)
-end
-
-function Config:setNumericValue(configNamespace, key, value)
-	local retVal = Polycore.Config_setNumericValue(self.__ptr, configNamespace, key, value)
-end
-
-function Config:getNumericValue(configNamespace, key)
-	local retVal = Polycore.Config_getNumericValue(self.__ptr, configNamespace, key)
-	return retVal
-end
-
-function Config:getStringValue(configNamespace, key)
-	local retVal = Polycore.Config_getStringValue(self.__ptr, configNamespace, key)
-	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)
-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)
-end
-
-function Core:copyDiskItem(itemPath, destItemPath)
-	local retVal = Polycore.Core_copyDiskItem(self.__ptr, itemPath, destItemPath)
-end
-
-function Core:moveDiskItem(itemPath, destItemPath)
-	local retVal = Polycore.Core_moveDiskItem(self.__ptr, itemPath, destItemPath)
-end
-
-function Core:removeDiskItem(itemPath)
-	local retVal = Polycore.Core_removeDiskItem(self.__ptr, itemPath)
-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 - 158
Bindings/Contents/LUA/API/Polycode/CoreInput.lua

@@ -1,158 +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:getNumJoysticks()
-	local retVal =  Polycore.CoreInput_getNumJoysticks(self.__ptr)
-	return retVal
-end
-
-function CoreInput:getJoystickInfoByIndex(index)
-	local retVal = Polycore.CoreInput_getJoystickInfoByIndex(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] = JoystickInfo("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreInput:getJoystickInfoByID(deviceID)
-	local retVal = Polycore.CoreInput_getJoystickInfoByID(self.__ptr, deviceID)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = JoystickInfo("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function CoreInput:addJoystick(deviceID)
-	local retVal = Polycore.CoreInput_addJoystick(self.__ptr, deviceID)
-end
-
-function CoreInput:removeJoystick(deviceID)
-	local retVal = Polycore.CoreInput_removeJoystick(self.__ptr, deviceID)
-end
-
-function CoreInput:joystickAxisMoved(axisID, value, deviceID)
-	local retVal = Polycore.CoreInput_joystickAxisMoved(self.__ptr, axisID, value, deviceID)
-end
-
-function CoreInput:joystickButtonDown(buttonID, deviceID)
-	local retVal = Polycore.CoreInput_joystickButtonDown(self.__ptr, buttonID, deviceID)
-end
-
-function CoreInput:joystickButtonUp(buttonID, deviceID)
-	local retVal = Polycore.CoreInput_joystickButtonUp(self.__ptr, buttonID, deviceID)
-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 - 192
Bindings/Contents/LUA/API/Polycode/CoreServices.lua

@@ -1,192 +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:__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)
-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, encoding)
-end
-
-function Data:saveToFile(fileName)
-	local retVal = Polycore.Data_saveToFile(self.__ptr, fileName)
-	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)
-	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, texture.__ptr)
-end
-
-function FixedShaderBinding:addCubemap(name, cubemap)
-	local retVal = Polycore.FixedShaderBinding_addCubemap(self.__ptr, name, cubemap.__ptr)
-end
-
-function FixedShaderBinding:addParam(type, name, value)
-	local retVal = Polycore.FixedShaderBinding_addParam(self.__ptr, type, name, value)
-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, fontPath)
-end
-
-function FontManager:getFontByName(fontName)
-	local retVal = Polycore.FontManager_getFontByName(self.__ptr, fontName)
-	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)
-	return retVal
-end
-
-function Image:loadPNG(fileName)
-	local retVal = Polycore.Image_loadPNG(self.__ptr, fileName)
-	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)
-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 - 166
Bindings/Contents/LUA/API/Polycode/InputEvent.lua

@@ -1,166 +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
-EVENT_JOYBUTTON_DOWN = 15
-EVENT_JOYBUTTON_UP = 16
-EVENT_JOYAXIS_MOVED = 17
-EVENT_JOYDEVICE_ATTACHED = 18
-EVENT_JOYDEVICE_DETACHED = 19
-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)
-	elseif name == "joystickDeviceID" then
-		retVal = Polycore.InputEvent_get_joystickDeviceID(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 == "joystickAxisValue" then
-		retVal = Polycore.InputEvent_get_joystickAxisValue(self.__ptr)
-		if Polycore.__ptr_lookup[retVal] ~= nil then
-			return Polycore.__ptr_lookup[retVal]
-		else
-			Polycore.__ptr_lookup[retVal] = float("__skip_ptr__")
-			Polycore.__ptr_lookup[retVal].__ptr = retVal
-			return Polycore.__ptr_lookup[retVal]
-		end
-	elseif name == "joystickButton" then
-		retVal = Polycore.InputEvent_get_joystickButton(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 == "joystickAxis" then
-		retVal = Polycore.InputEvent_get_joystickAxis(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
-	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)
-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, size)
-	return retVal
-end
-
-function Label:getTextHeight(font, text, size)
-	local retVal = Polycore.Label_getTextHeight(self.__ptr, font.__ptr, text, 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 - 141
Bindings/Contents/LUA/API/Polycode/Material.lua

@@ -1,141 +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 == "specularStrength" then
-		return Polycore.Material_get_specularStrength(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
-	elseif name == "specularStrength" then
-		Polycore.Material_set_specularStrength(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)
-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, 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)
-	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 - 187
Bindings/Contents/LUA/API/Polycode/Mesh.lua

@@ -1,187 +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)
-end
-
-function Mesh:clearMesh()
-	local retVal =  Polycore.Mesh_clearMesh(self.__ptr)
-end
-
-function Mesh:saveToFile(fileName)
-	local retVal = Polycore.Mesh_saveToFile(self.__ptr, fileName)
-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:calculateTangents()
-	local retVal =  Polycore.Mesh_calculateTangents(self.__ptr)
-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, opts)
-	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)
-	return retVal
-end
-
-function OSBasics:createFolder(pathString)
-	local retVal = Polycore.OSBasics_createFolder(pathString)
-end
-
-function OSBasics:removeItem(pathString)
-	local retVal = Polycore.OSBasics_removeItem(pathString)
-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 - 67
Bindings/Contents/LUA/API/Polycode/OSFileEntry.lua

@@ -1,67 +0,0 @@
-class "OSFileEntry"
-
-
-
-TYPE_FILE = 0
-TYPE_FOLDER = 1
-function OSFileEntry:__index__(name)
-	if name == "name" then
-		return Polycore.OSFileEntry_get_name(self.__ptr)
-	elseif name == "extension" then
-		return Polycore.OSFileEntry_get_extension(self.__ptr)
-	elseif name == "nameWithoutExtension" then
-		return Polycore.OSFileEntry_get_nameWithoutExtension(self.__ptr)
-	elseif name == "basePath" then
-		return Polycore.OSFileEntry_get_basePath(self.__ptr)
-	elseif name == "fullPath" then
-		return Polycore.OSFileEntry_get_fullPath(self.__ptr)
-	elseif name == "type" then
-		return Polycore.OSFileEntry_get_type(self.__ptr)
-	end
-end
-
-
-function OSFileEntry:__set_callback(name,value)
-	if name == "name" then
-		Polycore.OSFileEntry_set_name(self.__ptr, value)
-		return true
-	elseif name == "extension" then
-		Polycore.OSFileEntry_set_extension(self.__ptr, value)
-		return true
-	elseif name == "nameWithoutExtension" then
-		Polycore.OSFileEntry_set_nameWithoutExtension(self.__ptr, value)
-		return true
-	elseif name == "basePath" then
-		Polycore.OSFileEntry_set_basePath(self.__ptr, value)
-		return true
-	elseif name == "fullPath" then
-		Polycore.OSFileEntry_set_fullPath(self.__ptr, value)
-		return true
-	elseif 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)
-	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 - 125
Bindings/Contents/LUA/API/Polycode/Polygon.lua

@@ -1,125 +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:calculateTangent()
-	local retVal =  Polycore.Polygon_calculateTangent(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:getFaceTangent()
-	local retVal =  Polycore.Polygon_getFaceTangent(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, rkAxis.__ptr)
-end
-
-function Quaternion:ToAngleAxis(rfAngle, rkAxis)
-	local retVal = Polycore.Quaternion_ToAngleAxis(self.__ptr, rfAngle, 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 - 532
Bindings/Contents/LUA/API/Polycode/Renderer.lua

@@ -1,532 +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:destroyTexture(texture)
-	local retVal = Polycore.Renderer_destroyTexture(self.__ptr, texture.__ptr)
-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:setFOV(fov)
-	local retVal = Polycore.Renderer_setFOV(self.__ptr, fov)
-end
-
-function Renderer:setViewportSize(w, h)
-	local retVal = Polycore.Renderer_setViewportSize(self.__ptr, w, h)
-end
-
-function Renderer:setViewportSizeAndFOV(w, h, fov)
-	local retVal = Polycore.Renderer_setViewportSizeAndFOV(self.__ptr, w, h, fov)
-end
-
-function Renderer:resetViewport()
-	local retVal =  Polycore.Renderer_resetViewport(self.__ptr)
-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: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:getViewportWidth()
-	local retVal =  Polycore.Renderer_getViewportWidth(self.__ptr)
-	return retVal
-end
-
-function Renderer:getViewportHeight()
-	local retVal =  Polycore.Renderer_getViewportHeight(self.__ptr)
-	return retVal
-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)
-end
-
-function Resource:setResourcePath(path)
-	local retVal = Polycore.Resource_setResourcePath(self.__ptr, path)
-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, recursive)
-end
-
-function ResourceManager:addArchive(zipPath)
-	local retVal = Polycore.ResourceManager_addArchive(self.__ptr, zipPath)
-end
-
-function ResourceManager:readFile(fileName)
-	local retVal = Polycore.ResourceManager_readFile(self.__ptr, fileName)
-	return retVal
-end
-
-function ResourceManager:parseTextures(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseTextures(self.__ptr, dirPath, recursive)
-end
-
-function ResourceManager:parseMaterials(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseMaterials(self.__ptr, dirPath, recursive)
-end
-
-function ResourceManager:parseShaders(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseShaders(self.__ptr, dirPath, recursive)
-end
-
-function ResourceManager:parsePrograms(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parsePrograms(self.__ptr, dirPath, recursive)
-end
-
-function ResourceManager:parseCubemaps(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseCubemaps(self.__ptr, dirPath, recursive)
-end
-
-function ResourceManager:parseOthers(dirPath, recursive)
-	local retVal = Polycore.ResourceManager_parseOthers(self.__ptr, dirPath, recursive)
-end
-
-function ResourceManager:getResource(resourceType, resourceName)
-	local retVal = Polycore.ResourceManager_getResource(self.__ptr, resourceType, resourceName)
-	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 - 287
Bindings/Contents/LUA/API/Polycode/Scene.lua

@@ -1,287 +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:getActiveCamera()
-	local retVal =  Polycore.Scene_getActiveCamera(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:setActiveCamera(camera)
-	local retVal = Polycore.Scene_setActiveCamera(self.__ptr, camera.__ptr)
-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)
-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, outFile.__ptr)
-end
-
-function Scene:saveScene(fileName)
-	local retVal = Polycore.Scene_saveScene(self.__ptr, fileName)
-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)
-	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 - 52
Bindings/Contents/LUA/API/Polycode/SceneLabel.lua

@@ -1,52 +0,0 @@
-require "Polycode/ScenePrimitive"
-
-class "SceneLabel" (ScenePrimitive)
-
-
-
-
-
-
-
-function SceneLabel:SceneLabel(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScenePrimitive" 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:setText(newText)
-	local retVal = Polycore.SceneLabel_setText(self.__ptr, newText)
-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:__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 - 52
Bindings/Contents/LUA/API/Polycode/SceneManager.lua

@@ -1,52 +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:unregisterRenderTexture(r_enderTexture)
-	local retVal = Polycore.SceneManager_unregisterRenderTexture(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, clamp)
-end
-
-function SceneMesh:loadSkeleton(fileName)
-	local retVal = Polycore.SceneMesh_loadSkeleton(self.__ptr, fileName)
-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)
-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)
-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

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

@@ -1,68 +0,0 @@
-require "Polycode/ScreenShape"
-
-class "ScreenLabel" (ScreenShape)
-
-
-
-
-
-
-
-function ScreenLabel:ScreenLabel(...)
-	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.ScreenLabel(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenLabel:addDropShadow(color, size, offsetX, offsetY)
-	local retVal = Polycore.ScreenLabel_addDropShadow(self.__ptr, color.__ptr, size, offsetX, offsetY)
-end
-
-function ScreenLabel:setText(newText)
-	local retVal = Polycore.ScreenLabel_setText(self.__ptr, newText)
-end
-
-function ScreenLabel:getText()
-	local retVal =  Polycore.ScreenLabel_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 ScreenLabel:getLabel()
-	local retVal =  Polycore.ScreenLabel_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 ScreenLabel:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenLabel(self.__ptr)
-end

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

@@ -1,48 +0,0 @@
-require "Polycode/ScreenMesh"
-
-class "ScreenLine" (ScreenMesh)
-
-
-
-
-
-
-
-function ScreenLine:ScreenLine(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenMesh" 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.ScreenLine(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenLine:Update()
-	local retVal =  Polycore.ScreenLine_Update(self.__ptr)
-end
-
-function ScreenLine:Render()
-	local retVal =  Polycore.ScreenLine_Render(self.__ptr)
-end
-
-function ScreenLine:setLineWidth(width)
-	local retVal = Polycore.ScreenLine_setLineWidth(self.__ptr, width)
-end
-
-
-
-function ScreenLine:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenLine(self.__ptr)
-end

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

@@ -1,48 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "ScreenManager" (EventDispatcher)
-
-
-
-
-
-
-
-function ScreenManager:ScreenManager(...)
-	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.ScreenManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenManager:removeScreen(screen)
-	local retVal = Polycore.ScreenManager_removeScreen(self.__ptr, screen.__ptr)
-end
-
-function ScreenManager:addScreen(screen)
-	local retVal = Polycore.ScreenManager_addScreen(self.__ptr, screen.__ptr)
-end
-
-function ScreenManager:Update()
-	local retVal =  Polycore.ScreenManager_Update(self.__ptr)
-end
-
-
-
-function ScreenManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenManager(self.__ptr)
-end

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

@@ -1,72 +0,0 @@
-require "Polycode/ScreenEntity"
-
-class "ScreenMesh" (ScreenEntity)
-
-
-
-
-
-
-
-function ScreenMesh:ScreenMesh(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenEntity" 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.ScreenMesh(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenMesh:Render()
-	local retVal =  Polycore.ScreenMesh_Render(self.__ptr)
-end
-
-function ScreenMesh:getMesh()
-	local retVal =  Polycore.ScreenMesh_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 ScreenMesh:getTexture()
-	local retVal =  Polycore.ScreenMesh_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 ScreenMesh:loadTexture(fileName)
-	local retVal = Polycore.ScreenMesh_loadTexture(self.__ptr, fileName)
-end
-
-function ScreenMesh:setTexture(texture)
-	local retVal = Polycore.ScreenMesh_setTexture(self.__ptr, texture.__ptr)
-end
-
-
-
-function ScreenMesh:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenMesh(self.__ptr)
-end

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

@@ -1,68 +0,0 @@
-require "Polycode/ScreenEntity"
-
-class "ScreenParticleEmitter" (ScreenEntity)
-
-
-
-
-
-
-
-function ScreenParticleEmitter:ScreenParticleEmitter(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenEntity" 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.ScreenParticleEmitter(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenParticleEmitter:getEmitter()
-	local retVal =  Polycore.ScreenParticleEmitter_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 ScreenParticleEmitter:addParticleBody(particleBody)
-	local retVal = Polycore.ScreenParticleEmitter_addParticleBody(self.__ptr, particleBody.__ptr)
-end
-
-function ScreenParticleEmitter:getBaseMatrix()
-	local retVal =  Polycore.ScreenParticleEmitter_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 ScreenParticleEmitter:Update()
-	local retVal =  Polycore.ScreenParticleEmitter_Update(self.__ptr)
-end
-
-
-
-function ScreenParticleEmitter:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenParticleEmitter(self.__ptr)
-end

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

@@ -1,93 +0,0 @@
-require "Polycode/ScreenMesh"
-
-class "ScreenShape" (ScreenMesh)
-
-
-
-SHAPE_RECT = 1
-SHAPE_CIRCLE = 2
-SHAPE_CUSTOM = 4
-function ScreenShape:__index__(name)
-	if name == "strokeEnabled" then
-		return Polycore.ScreenShape_get_strokeEnabled(self.__ptr)
-	elseif name == "strokeColor" then
-		retVal = Polycore.ScreenShape_get_strokeColor(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 == "lineSmooth" then
-		return Polycore.ScreenShape_get_lineSmooth(self.__ptr)
-	end
-end
-
-
-function ScreenShape:__set_callback(name,value)
-	if name == "strokeEnabled" then
-		Polycore.ScreenShape_set_strokeEnabled(self.__ptr, value)
-		return true
-	elseif name == "lineSmooth" then
-		Polycore.ScreenShape_set_lineSmooth(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function ScreenShape:ScreenShape(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenMesh" 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.ScreenShape(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenShape:Render()
-	local retVal =  Polycore.ScreenShape_Render(self.__ptr)
-end
-
-function ScreenShape:setStrokeColor(r, g, b, a)
-	local retVal = Polycore.ScreenShape_setStrokeColor(self.__ptr, r, g, b, a)
-end
-
-function ScreenShape:setStrokeWidth(width)
-	local retVal = Polycore.ScreenShape_setStrokeWidth(self.__ptr, width)
-end
-
-function ScreenShape:setGradient(r1, g1, b1, a1, r2, g2, b2, a2)
-	local retVal = Polycore.ScreenShape_setGradient(self.__ptr, r1, g1, b1, a1, r2, g2, b2, a2)
-end
-
-function ScreenShape:clearGradient()
-	local retVal =  Polycore.ScreenShape_clearGradient(self.__ptr)
-end
-
-function ScreenShape:setShapeSize(newWidth, newHeight)
-	local retVal = Polycore.ScreenShape_setShapeSize(self.__ptr, newWidth, newHeight)
-end
-
-function ScreenShape:addShapePoint(x, y)
-	local retVal = Polycore.ScreenShape_addShapePoint(self.__ptr, x, y)
-end
-
-
-
-function ScreenShape:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenShape(self.__ptr)
-end

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

@@ -1,52 +0,0 @@
-require "Polycode/ScreenEntity"
-
-class "ScreenSound" (ScreenEntity)
-
-
-
-
-
-
-
-function ScreenSound:ScreenSound(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenEntity" 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.ScreenSound(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenSound:Update()
-	local retVal =  Polycore.ScreenSound_Update(self.__ptr)
-end
-
-function ScreenSound:getSound()
-	local retVal =  Polycore.ScreenSound_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 ScreenSound:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenSound(self.__ptr)
-end

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

@@ -1,40 +0,0 @@
-require "Polycode/ScreenEntity"
-
-class "ScreenSoundListener" (ScreenEntity)
-
-
-
-
-
-
-
-function ScreenSoundListener:ScreenSoundListener(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "ScreenEntity" 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.ScreenSoundListener(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenSoundListener:Update()
-	local retVal =  Polycore.ScreenSoundListener_Update(self.__ptr)
-end
-
-
-
-function ScreenSoundListener:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenSoundListener(self.__ptr)
-end

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

@@ -1,52 +0,0 @@
-require "Polycode/ScreenShape"
-
-class "ScreenSprite" (ScreenShape)
-
-
-
-
-
-
-
-function ScreenSprite:ScreenSprite(...)
-	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.ScreenSprite(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ScreenSprite:addAnimation(name, frames, speed)
-	local retVal = Polycore.ScreenSprite_addAnimation(self.__ptr, name, frames, speed)
-end
-
-function ScreenSprite:playAnimation(name, startFrame, once)
-	local retVal = Polycore.ScreenSprite_playAnimation(self.__ptr, name, startFrame, once)
-end
-
-function ScreenSprite:Update()
-	local retVal =  Polycore.ScreenSprite_Update(self.__ptr)
-end
-
-function ScreenSprite:Pause(val)
-	local retVal = Polycore.ScreenSprite_Pause(self.__ptr, val)
-end
-
-
-
-function ScreenSprite:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ScreenSprite(self.__ptr)
-end

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

@@ -1,68 +0,0 @@
-require "Polycode/Resource"
-
-class "Shader" (Resource)
-
-
-
-FIXED_SHADER = 0
-MODULE_SHADER = 1
-function Shader:__index__(name)
-	if name == "numSpotLights" then
-		return Polycore.Shader_get_numSpotLights(self.__ptr)
-	elseif name == "numAreaLights" then
-		return Polycore.Shader_get_numAreaLights(self.__ptr)
-	end
-end
-
-
-function Shader:__set_callback(name,value)
-	if name == "numSpotLights" then
-		Polycore.Shader_set_numSpotLights(self.__ptr, value)
-		return true
-	elseif name == "numAreaLights" then
-		Polycore.Shader_set_numAreaLights(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Shader:getType()
-	local retVal =  Polycore.Shader_getType(self.__ptr)
-	return retVal
-end
-
-function Shader:setName(name)
-	local retVal = Polycore.Shader_setName(self.__ptr, name)
-end
-
-function Shader:getName()
-	local retVal =  Polycore.Shader_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 Shader:createBinding()
-	local retVal =  Polycore.Shader_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 Shader:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Shader(self.__ptr)
-end

+ 0 - 132
Bindings/Contents/LUA/API/Polycode/ShaderBinding.lua

@@ -1,132 +0,0 @@
-class "ShaderBinding"
-
-
-
-
-
-
-
-function ShaderBinding:ShaderBinding(...)
-	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.ShaderBinding(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function ShaderBinding:clearTexture(name)
-	local retVal = Polycore.ShaderBinding_clearTexture(self.__ptr, name)
-end
-
-function ShaderBinding:addTexture(name, texture)
-	local retVal = Polycore.ShaderBinding_addTexture(self.__ptr, name, texture.__ptr)
-end
-
-function ShaderBinding:addParam(type, name, value)
-	local retVal = Polycore.ShaderBinding_addParam(self.__ptr, type, name, value)
-end
-
-function ShaderBinding:addCubemap(name, cubemap)
-	local retVal = Polycore.ShaderBinding_addCubemap(self.__ptr, name, cubemap.__ptr)
-end
-
-function ShaderBinding:getNumLocalParams()
-	local retVal =  Polycore.ShaderBinding_getNumLocalParams(self.__ptr)
-	return retVal
-end
-
-function ShaderBinding:getLocalParam(index)
-	local retVal = Polycore.ShaderBinding_getLocalParam(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] = LocalShaderParam("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ShaderBinding:getLocalParamByName(name)
-	local retVal = Polycore.ShaderBinding_getLocalParamByName(self.__ptr, name)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = LocalShaderParam("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ShaderBinding:addRenderTargetBinding(binding)
-	local retVal = Polycore.ShaderBinding_addRenderTargetBinding(self.__ptr, binding.__ptr)
-end
-
-function ShaderBinding:getNumRenderTargetBindings()
-	local retVal =  Polycore.ShaderBinding_getNumRenderTargetBindings(self.__ptr)
-	return retVal
-end
-
-function ShaderBinding:getRenderTargetBinding(index)
-	local retVal = Polycore.ShaderBinding_getRenderTargetBinding(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] = RenderTargetBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ShaderBinding:getNumInTargetBindings()
-	local retVal =  Polycore.ShaderBinding_getNumInTargetBindings(self.__ptr)
-	return retVal
-end
-
-function ShaderBinding:getInTargetBinding(index)
-	local retVal = Polycore.ShaderBinding_getInTargetBinding(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] = RenderTargetBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ShaderBinding:getNumOutTargetBindings()
-	local retVal =  Polycore.ShaderBinding_getNumOutTargetBindings(self.__ptr)
-	return retVal
-end
-
-function ShaderBinding:getOutTargetBinding(index)
-	local retVal = Polycore.ShaderBinding_getOutTargetBinding(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] = RenderTargetBinding("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function ShaderBinding:addLocalParam(name, ptr)
-	local retVal = Polycore.ShaderBinding_addLocalParam(self.__ptr, name, ptr.__ptr)
-end
-
-
-
-function ShaderBinding:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_ShaderBinding(self.__ptr)
-end

+ 0 - 117
Bindings/Contents/LUA/API/Polycode/Skeleton.lua

@@ -1,117 +0,0 @@
-require "Polycode/SceneEntity"
-
-class "Skeleton" (SceneEntity)
-
-
-
-
-
-
-
-function Skeleton:Skeleton(...)
-	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.Skeleton(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Skeleton:loadSkeleton(fileName)
-	local retVal = Polycore.Skeleton_loadSkeleton(self.__ptr, fileName)
-end
-
-function Skeleton:playAnimation(animName, once)
-	local retVal = Polycore.Skeleton_playAnimation(self.__ptr, animName, once)
-end
-
-function Skeleton:playAnimationByIndex(index, once)
-	local retVal = Polycore.Skeleton_playAnimationByIndex(self.__ptr, index, once)
-end
-
-function Skeleton:addAnimation(name, fileName)
-	local retVal = Polycore.Skeleton_addAnimation(self.__ptr, name, fileName)
-end
-
-function Skeleton:getAnimation(name)
-	local retVal = Polycore.Skeleton_getAnimation(self.__ptr, name)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = SkeletonAnimation("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Skeleton:Update()
-	local retVal =  Polycore.Skeleton_Update(self.__ptr)
-end
-
-function Skeleton:getBoneByName(name)
-	local retVal = Polycore.Skeleton_getBoneByName(self.__ptr, name)
-	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 Skeleton:bonesVisible(val)
-	local retVal = Polycore.Skeleton_bonesVisible(self.__ptr, val)
-end
-
-function Skeleton:enableBoneLabels(labelFont, size, scale, labelColor)
-	local retVal = Polycore.Skeleton_enableBoneLabels(self.__ptr, labelFont, size, scale, labelColor.__ptr)
-end
-
-function Skeleton:getNumBones()
-	local retVal =  Polycore.Skeleton_getNumBones(self.__ptr)
-	return retVal
-end
-
-function Skeleton:getBone(index)
-	local retVal = Polycore.Skeleton_getBone(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 Skeleton:getCurrentAnimation()
-	local retVal =  Polycore.Skeleton_getCurrentAnimation(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] = SkeletonAnimation("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-
-
-function Skeleton:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Skeleton(self.__ptr)
-end

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

@@ -1,60 +0,0 @@
-class "SkeletonAnimation"
-
-
-
-
-
-
-
-function SkeletonAnimation:SkeletonAnimation(...)
-	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.SkeletonAnimation(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SkeletonAnimation:addBoneTrack(boneTrack)
-	local retVal = Polycore.SkeletonAnimation_addBoneTrack(self.__ptr, boneTrack.__ptr)
-end
-
-function SkeletonAnimation:getName()
-	local retVal =  Polycore.SkeletonAnimation_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 SkeletonAnimation:Play(once)
-	local retVal = Polycore.SkeletonAnimation_Play(self.__ptr, once)
-end
-
-function SkeletonAnimation:Stop()
-	local retVal =  Polycore.SkeletonAnimation_Stop(self.__ptr)
-end
-
-function SkeletonAnimation:Update()
-	local retVal =  Polycore.SkeletonAnimation_Update(self.__ptr)
-end
-
-function SkeletonAnimation:setSpeed(speed)
-	local retVal = Polycore.SkeletonAnimation_setSpeed(self.__ptr, speed)
-end
-
-
-
-function SkeletonAnimation:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SkeletonAnimation(self.__ptr)
-end

+ 0 - 112
Bindings/Contents/LUA/API/Polycode/Sound.lua

@@ -1,112 +0,0 @@
-class "Sound"
-
-
-
-
-
-
-
-function Sound:Sound(...)
-	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.Sound(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Sound:Play(loop)
-	local retVal = Polycore.Sound_Play(self.__ptr, loop)
-end
-
-function Sound:Stop()
-	local retVal =  Polycore.Sound_Stop(self.__ptr)
-end
-
-function Sound:setVolume(newVolume)
-	local retVal = Polycore.Sound_setVolume(self.__ptr, newVolume)
-end
-
-function Sound:setPitch(newPitch)
-	local retVal = Polycore.Sound_setPitch(self.__ptr, newPitch)
-end
-
-function Sound:setIsPositional(isPositional)
-	local retVal = Polycore.Sound_setIsPositional(self.__ptr, isPositional)
-end
-
-function Sound:setSoundPosition(position)
-	local retVal = Polycore.Sound_setSoundPosition(self.__ptr, position.__ptr)
-end
-
-function Sound:setSoundVelocity(velocity)
-	local retVal = Polycore.Sound_setSoundVelocity(self.__ptr, velocity.__ptr)
-end
-
-function Sound:setSoundDirection(direction)
-	local retVal = Polycore.Sound_setSoundDirection(self.__ptr, direction.__ptr)
-end
-
-function Sound:setPositionalProperties(referenceDistance, maxDistance)
-	local retVal = Polycore.Sound_setPositionalProperties(self.__ptr, referenceDistance, maxDistance)
-end
-
-function Sound:loadWAV(fileName)
-	local retVal = Polycore.Sound_loadWAV(self.__ptr, fileName)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ALuint("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Sound:loadOGG(fileName)
-	local retVal = Polycore.Sound_loadOGG(self.__ptr, fileName)
-	if retVal == nil then return nil end
-	if Polycore.__ptr_lookup[retVal] ~= nil then
-		return Polycore.__ptr_lookup[retVal]
-	else
-		Polycore.__ptr_lookup[retVal] = ALuint("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Sound:GenSource(buffer)
-	local retVal = Polycore.Sound_GenSource(self.__ptr, buffer.__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] = ALuint("__skip_ptr__")
-		Polycore.__ptr_lookup[retVal].__ptr = retVal
-		return Polycore.__ptr_lookup[retVal]
-	end
-end
-
-function Sound:checkALError(operation)
-	local retVal = Polycore.Sound_checkALError(self.__ptr, operation)
-end
-
-function Sound:soundError(err)
-	local retVal = Polycore.Sound_soundError(self.__ptr, err)
-end
-
-function Sound:soundCheck(result, err)
-	local retVal = Polycore.Sound_soundCheck(self.__ptr, result, err)
-end
-
-
-
-function Sound:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Sound(self.__ptr)
-end

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

@@ -1,44 +0,0 @@
-class "SoundManager"
-
-
-
-
-
-
-
-function SoundManager:SoundManager(...)
-	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.SoundManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function SoundManager:setListenerPosition(position)
-	local retVal = Polycore.SoundManager_setListenerPosition(self.__ptr, position.__ptr)
-end
-
-function SoundManager:setListenerOrientation(orientation)
-	local retVal = Polycore.SoundManager_setListenerOrientation(self.__ptr, orientation.__ptr)
-end
-
-function SoundManager:initAL()
-	local retVal =  Polycore.SoundManager_initAL(self.__ptr)
-end
-
-function SoundManager:setGlobalVolume(globalVolume)
-	local retVal = Polycore.SoundManager_setGlobalVolume(self.__ptr, globalVolume)
-end
-
-
-
-function SoundManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_SoundManager(self.__ptr)
-end

+ 0 - 132
Bindings/Contents/LUA/API/Polycode/String.lua

@@ -1,132 +0,0 @@
-class "String"
-
-
-
-ENCODING_UTF8 = 0
-function String:__index__(name)
-	if name == "contents" then
-		retVal = Polycore.String_get_contents(self.__ptr)
-		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
-end
-
-
-function String:__set_callback(name,value)
-	return false
-end
-
-
-function String:String(...)
-	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.String(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function String:size()
-	local retVal =  Polycore.String_size(self.__ptr)
-	return retVal
-end
-
-function String:length()
-	local retVal =  Polycore.String_length(self.__ptr)
-	return retVal
-end
-
-function String:substr(pos, n)
-	local retVal = Polycore.String_substr(self.__ptr, pos.__ptr, n.__ptr)
-	return retVal
-end
-
-function String:rfind(str, pos)
-	local retVal = Polycore.String_rfind(self.__ptr, str, pos.__ptr)
-	return retVal
-end
-
-function String:find(str, pos)
-	local retVal = Polycore.String_find(self.__ptr, str, pos.__ptr)
-	return retVal
-end
-
-function String:find_last_of(str, pos)
-	local retVal = Polycore.String_find_last_of(self.__ptr, str, pos.__ptr)
-	return retVal
-end
-
-function String:toLowerCase()
-	local retVal =  Polycore.String_toLowerCase(self.__ptr)
-	return retVal
-end
-
-function String:toUpperCase()
-	local retVal =  Polycore.String_toUpperCase(self.__ptr)
-	return retVal
-end
-
-function String:replace(what, withWhat)
-	local retVal = Polycore.String_replace(self.__ptr, what, withWhat)
-	return retVal
-end
-
-function String:NumberToString(value)
-	local retVal = Polycore.String_NumberToString(value)
-	return retVal
-end
-
-function String:IntToString(value)
-	local retVal = Polycore.String_IntToString(value)
-	return retVal
-end
-
-function String:c_str()
-	local retVal =  Polycore.String_c_str(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 String:getDataWithEncoding(encoding)
-	local retVal = Polycore.String_getDataWithEncoding(self.__ptr, encoding)
-	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 String:getDataSizeWithEncoding(encoding)
-	local retVal = Polycore.String_getDataSizeWithEncoding(self.__ptr, encoding)
-	return retVal
-end
-
-function String:setDataWithEncoding(data, encoding)
-	local retVal = Polycore.String_setDataWithEncoding(self.__ptr, data.__ptr, encoding)
-end
-
-
-
-function String:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_String(self.__ptr)
-end

+ 0 - 102
Bindings/Contents/LUA/API/Polycode/Texture.lua

@@ -1,102 +0,0 @@
-require "Polycode/Resource"
-
-class "Texture" (Resource)
-
-
-
-function Texture:__index__(name)
-	if name == "scrollSpeedX" then
-		return Polycore.Texture_get_scrollSpeedX(self.__ptr)
-	elseif name == "scrollSpeedY" then
-		return Polycore.Texture_get_scrollSpeedY(self.__ptr)
-	elseif name == "clamp" then
-		return Polycore.Texture_get_clamp(self.__ptr)
-	end
-end
-
-
-function Texture:__set_callback(name,value)
-	if name == "scrollSpeedX" then
-		Polycore.Texture_set_scrollSpeedX(self.__ptr, value)
-		return true
-	elseif name == "scrollSpeedY" then
-		Polycore.Texture_set_scrollSpeedY(self.__ptr, value)
-		return true
-	elseif name == "clamp" then
-		Polycore.Texture_set_clamp(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Texture:setTextureData(data)
-	local retVal = Polycore.Texture_setTextureData(self.__ptr, data.__ptr)
-end
-
-function Texture:recreateFromImageData()
-	local retVal =  Polycore.Texture_recreateFromImageData(self.__ptr)
-end
-
-function Texture:getScrollOffsetX()
-	local retVal =  Polycore.Texture_getScrollOffsetX(self.__ptr)
-	return retVal
-end
-
-function Texture:getScrollOffsetY()
-	local retVal =  Polycore.Texture_getScrollOffsetY(self.__ptr)
-	return retVal
-end
-
-function Texture:setImageData(data)
-	local retVal = Polycore.Texture_setImageData(self.__ptr, data.__ptr)
-end
-
-function Texture:updateScroll(elapsed)
-	local retVal = Polycore.Texture_updateScroll(self.__ptr, elapsed)
-end
-
-function Texture:setResourcePath(newPath)
-	local retVal = Polycore.Texture_setResourcePath(self.__ptr, newPath)
-end
-
-function Texture:getResourcePath()
-	local retVal =  Polycore.Texture_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 Texture:getTextureData()
-	local retVal =  Polycore.Texture_getTextureData(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 Texture:getWidth()
-	local retVal =  Polycore.Texture_getWidth(self.__ptr)
-	return retVal
-end
-
-function Texture:getHeight()
-	local retVal =  Polycore.Texture_getHeight(self.__ptr)
-	return retVal
-end
-
-
-
-function Texture:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Texture(self.__ptr)
-end

+ 0 - 69
Bindings/Contents/LUA/API/Polycode/Timer.lua

@@ -1,69 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "Timer" (EventDispatcher)
-
-
-
-EVENT_TRIGGER = 0
-
-
-
-
-function Timer:Timer(...)
-	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.Timer(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Timer:Pause(paused)
-	local retVal = Polycore.Timer_Pause(self.__ptr, paused)
-end
-
-function Timer:isPaused()
-	local retVal =  Polycore.Timer_isPaused(self.__ptr)
-	return retVal
-end
-
-function Timer:getTicks()
-	local retVal =  Polycore.Timer_getTicks(self.__ptr)
-	return retVal
-end
-
-function Timer:Update(ticks)
-	local retVal = Polycore.Timer_Update(self.__ptr, ticks)
-end
-
-function Timer:Reset()
-	local retVal =  Polycore.Timer_Reset(self.__ptr)
-end
-
-function Timer:hasElapsed()
-	local retVal =  Polycore.Timer_hasElapsed(self.__ptr)
-	return retVal
-end
-
-function Timer:getElapsedf()
-	local retVal =  Polycore.Timer_getElapsedf(self.__ptr)
-	return retVal
-end
-
-
-
-function Timer:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Timer(self.__ptr)
-end

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

@@ -1,40 +0,0 @@
-class "TimerManager"
-
-
-
-
-
-
-
-function TimerManager:TimerManager(...)
-	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.TimerManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function TimerManager:removeTimer(timer)
-	local retVal = Polycore.TimerManager_removeTimer(self.__ptr, timer.__ptr)
-end
-
-function TimerManager:addTimer(timer)
-	local retVal = Polycore.TimerManager_addTimer(self.__ptr, timer.__ptr)
-end
-
-function TimerManager:Update()
-	local retVal =  Polycore.TimerManager_Update(self.__ptr)
-end
-
-
-
-function TimerManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_TimerManager(self.__ptr)
-end

+ 0 - 103
Bindings/Contents/LUA/API/Polycode/Tween.lua

@@ -1,103 +0,0 @@
-require "Polycode/EventDispatcher"
-
-class "Tween" (EventDispatcher)
-
-
-
-EASE_NONE = 0
-EASE_IN_QUAD = 1
-EASE_OUT_QUAD = 2
-EASE_INOUT_QUAD = 3
-EASE_IN_CUBIC = 4
-EASE_OUT_CUBIC = 5
-EASE_INOUT_CUBIC = 6
-EASE_IN_QUART = 7
-EASE_OUT_QUART = 8
-EASE_INOUT_QUART = 9
-EASE_IN_QUINT = 10
-EASE_OUT_QUINT = 11
-EASE_INOUT_QUINT = 12
-EASE_IN_SINE = 13
-EASE_OUT_SINE = 14
-EASE_INOUT_SINE = 15
-EASE_IN_EXPO = 16
-EASE_OUT_EXPO = 17
-EASE_INOUT_EXPO = 18
-EASE_IN_CIRC = 19
-EASE_OUT_CIRC = 20
-EASE_INOUT_CIRC = 21
-EASE_IN_BOUNCE = 22
-EASE_OUT_BOUNCE = 23
-EASE_INOUT_BOUNCE = 24
-function Tween:__index__(name)
-	if name == "repeat" then
-		return Polycore.Tween_get_repeat(self.__ptr)
-	end
-end
-
-
-function Tween:__set_callback(name,value)
-	if name == "repeat" then
-		Polycore.Tween_set_repeat(self.__ptr, value)
-		return true
-	end
-	return false
-end
-
-
-function Tween:Tween(...)
-	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.Tween(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function Tween:interpolateTween()
-	local retVal =  Polycore.Tween_interpolateTween(self.__ptr)
-	return retVal
-end
-
-function Tween:updateCustomTween()
-	local retVal =  Polycore.Tween_updateCustomTween(self.__ptr)
-end
-
-function Tween:doOnComplete()
-	local retVal =  Polycore.Tween_doOnComplete(self.__ptr)
-end
-
-function Tween:Pause(pauseVal)
-	local retVal = Polycore.Tween_Pause(self.__ptr, pauseVal)
-end
-
-function Tween:Reset()
-	local retVal =  Polycore.Tween_Reset(self.__ptr)
-end
-
-function Tween:isComplete()
-	local retVal =  Polycore.Tween_isComplete(self.__ptr)
-	return retVal
-end
-
-function Tween:setSpeed(speed)
-	local retVal = Polycore.Tween_setSpeed(self.__ptr, speed)
-end
-
-
-
-function Tween:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Tween(self.__ptr)
-end

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

@@ -1,40 +0,0 @@
-class "TweenManager"
-
-
-
-
-
-
-
-function TweenManager:TweenManager(...)
-	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.TweenManager(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-function TweenManager:addTween(tween)
-	local retVal = Polycore.TweenManager_addTween(self.__ptr, tween.__ptr)
-end
-
-function TweenManager:removeTween(tween)
-	local retVal = Polycore.TweenManager_removeTween(self.__ptr, tween.__ptr)
-end
-
-function TweenManager:Update()
-	local retVal =  Polycore.TweenManager_Update(self.__ptr)
-end
-
-
-
-function TweenManager:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_TweenManager(self.__ptr)
-end

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

@@ -1,36 +0,0 @@
-require "Polycode/Vector3"
-
-class "Vector2" (Vector3)
-
-
-
-
-
-
-
-function Vector2:Vector2(...)
-	if type(arg[1]) == "table" and count(arg) == 1 then
-		if ""..arg[1]:class() == "Vector3" 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.Vector2(unpack(arg))
-		Polycore.__ptr_lookup[self.__ptr] = self
-	end
-end
-
-
-
-function Vector2:__delete()
-	Polycore.__ptr_lookup[self.__ptr] = nil
-	Polycore.delete_Vector2(self.__ptr)
-end

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