Просмотр исходного кода

Removed SceneManager, fixed reliance on Scene pointers throughout codebase, removed render calls from the core and made rendering a manual operation, started updating script bindings to use shared pointers (broke scripting and lighting)

Ivan Safrin 9 лет назад
Родитель
Сommit
09c56bd5e7
100 измененных файлов с 289 добавлено и 2047 удалено
  1. 0 4
      bindings/javascript/Polycode.js
  2. 2 2
      bindings/javascript/Polycode/AABB.js
  3. 0 22
      bindings/javascript/Polycode/AttributeBinding.js
  4. 3 18
      bindings/javascript/Polycode/AudioMixer.js
  5. 1 28
      bindings/javascript/Polycode/BezierCurve.js
  6. 3 3
      bindings/javascript/Polycode/BezierPoint.js
  7. 2 2
      bindings/javascript/Polycode/BinaryObjectReader.js
  8. 2 10
      bindings/javascript/Polycode/BinaryObjectWriter.js
  9. 17 17
      bindings/javascript/Polycode/Bone.js
  10. 3 124
      bindings/javascript/Polycode/BoneTrack.js
  11. 9 37
      bindings/javascript/Polycode/Camera.js
  12. 3 3
      bindings/javascript/Polycode/Color.js
  13. 1 1
      bindings/javascript/Polycode/ColorRange.js
  14. 0 6
      bindings/javascript/Polycode/Config.js
  15. 7 86
      bindings/javascript/Polycode/Core.js
  16. 4 22
      bindings/javascript/Polycode/CoreInput.js
  17. 1 1
      bindings/javascript/Polycode/CoreMotionEvent.js
  18. 0 88
      bindings/javascript/Polycode/CoreServices.js
  19. 0 6
      bindings/javascript/Polycode/Data.js
  20. 0 18
      bindings/javascript/Polycode/DummyCore.js
  21. 28 146
      bindings/javascript/Polycode/Entity.js
  22. 0 10
      bindings/javascript/Polycode/Event.js
  23. 0 32
      bindings/javascript/Polycode/EventDispatcher.js
  24. 1 1
      bindings/javascript/Polycode/Font.js
  25. 0 6
      bindings/javascript/Polycode/FontResourceLoader.js
  26. 6 6
      bindings/javascript/Polycode/GPUDrawBuffer.js
  27. 2 2
      bindings/javascript/Polycode/GPUDrawCall.js
  28. 2 2
      bindings/javascript/Polycode/GPUDrawOptions.js
  29. 1 23
      bindings/javascript/Polycode/GlyphData.js
  30. 1 33
      bindings/javascript/Polycode/Image.js
  31. 3 3
      bindings/javascript/Polycode/InputEvent.js
  32. 4 4
      bindings/javascript/Polycode/Label.js
  33. 5 5
      bindings/javascript/Polycode/LightInfo.js
  34. 8 30
      bindings/javascript/Polycode/LocalShaderParam.js
  35. 3 17
      bindings/javascript/Polycode/Material.js
  36. 0 6
      bindings/javascript/Polycode/MaterialResourceLoader.js
  37. 8 16
      bindings/javascript/Polycode/Matrix4.js
  38. 3 19
      bindings/javascript/Polycode/Mesh.js
  39. 7 13
      bindings/javascript/Polycode/MeshGeometry.js
  40. 0 6
      bindings/javascript/Polycode/MeshResourceLoader.js
  41. 0 18
      bindings/javascript/Polycode/ObjectEntry.js
  42. 1 16
      bindings/javascript/Polycode/ProgramParam.js
  43. 0 6
      bindings/javascript/Polycode/ProgramResourceLoader.js
  44. 3 3
      bindings/javascript/Polycode/QuatTriple.js
  45. 8 8
      bindings/javascript/Polycode/Quaternion.js
  46. 3 7
      bindings/javascript/Polycode/QuaternionCurve.js
  47. 6 10
      bindings/javascript/Polycode/Ray.js
  48. 1 1
      bindings/javascript/Polycode/Rectangle.js
  49. 0 4
      bindings/javascript/Polycode/RenderDataArray.js
  50. 15 2
      bindings/javascript/Polycode/RenderFrame.js
  51. 7 28
      bindings/javascript/Polycode/RenderThread.js
  52. 2 52
      bindings/javascript/Polycode/Renderer.js
  53. 1 1
      bindings/javascript/Polycode/Resource.js
  54. 0 48
      bindings/javascript/Polycode/ResourceManager.js
  55. 7 11
      bindings/javascript/Polycode/ResourcePool.js
  56. 7 67
      bindings/javascript/Polycode/Scene.js
  57. 1 23
      bindings/javascript/Polycode/SceneCurve.js
  58. 3 69
      bindings/javascript/Polycode/SceneEntityInstance.js
  59. 4 15
      bindings/javascript/Polycode/SceneEntityInstanceLayer.js
  60. 2 8
      bindings/javascript/Polycode/SceneEntityInstanceResourceEntry.js
  61. 0 20
      bindings/javascript/Polycode/SceneLabel.js
  62. 4 34
      bindings/javascript/Polycode/SceneLight.js
  63. 2 8
      bindings/javascript/Polycode/SceneLine.js
  64. 0 20
      bindings/javascript/Polycode/SceneManager.js
  65. 5 29
      bindings/javascript/Polycode/SceneMesh.js
  66. 5 5
      bindings/javascript/Polycode/SceneParticle.js
  67. 12 40
      bindings/javascript/Polycode/SceneParticleEmitter.js
  68. 0 10
      bindings/javascript/Polycode/ScenePrimitive.js
  69. 3 25
      bindings/javascript/Polycode/SceneRenderTexture.js
  70. 0 16
      bindings/javascript/Polycode/SceneSound.js
  71. 4 38
      bindings/javascript/Polycode/SceneSprite.js
  72. 0 13
      bindings/javascript/Polycode/ScriptInstance.js
  73. 0 6
      bindings/javascript/Polycode/ScriptResourceLoader.js
  74. 0 12
      bindings/javascript/Polycode/Shader.js
  75. 5 84
      bindings/javascript/Polycode/ShaderBinding.js
  76. 1 1
      bindings/javascript/Polycode/ShaderPass.js
  77. 3 3
      bindings/javascript/Polycode/ShaderPlatformData.js
  78. 2 32
      bindings/javascript/Polycode/Skeleton.js
  79. 0 4
      bindings/javascript/Polycode/SkeletonAnimation.js
  80. 0 4
      bindings/javascript/Polycode/Sound.js
  81. 0 18
      bindings/javascript/Polycode/SoundManager.js
  82. 0 30
      bindings/javascript/Polycode/Sprite.js
  83. 2 2
      bindings/javascript/Polycode/SpriteFrame.js
  84. 7 7
      bindings/javascript/Polycode/SpriteSet.js
  85. 6 6
      bindings/javascript/Polycode/SpriteState.js
  86. 10 32
      bindings/javascript/Polycode/String.js
  87. 0 21
      bindings/javascript/Polycode/Texture.js
  88. 0 6
      bindings/javascript/Polycode/TextureResourceLoader.js
  89. 1 1
      bindings/javascript/Polycode/TouchInfo.js
  90. 2 2
      bindings/javascript/Polycode/Vector3.js
  91. BIN
      bindings/javascript/js_Polycode.pak
  92. 0 4
      bindings/lua/Polycode.lua
  93. 0 18
      bindings/lua/Polycode/AttributeBinding.lua
  94. 0 13
      bindings/lua/Polycode/AudioMixer.lua
  95. 2 31
      bindings/lua/Polycode/BezierCurve.lua
  96. 0 14
      bindings/lua/Polycode/BinaryObjectReader.lua
  97. 0 22
      bindings/lua/Polycode/BinaryObjectWriter.lua
  98. 2 101
      bindings/lua/Polycode/BoneTrack.lua
  99. 0 32
      bindings/lua/Polycode/Camera.lua
  100. 0 8
      bindings/lua/Polycode/Config.lua

+ 0 - 4
bindings/javascript/Polycode.js

@@ -42,15 +42,12 @@ require('Polycode/Matrix4')
 require('Polycode/Mesh')
 require('Polycode/MeshGeometry')
 require('Polycode/ObjectEntry')
-require('Polycode/BinaryObjectReader')
-require('Polycode/BinaryObjectWriter')
 require('Polycode/ShaderPlatformData')
 require('Polycode/SceneParticle')
 require('Polycode/SceneParticleEmitter')
 require('Polycode/Perlin')
 require('Polycode/Quaternion')
 require('Polycode/QuatTriple')
-require('Polycode/QuaternionCurve')
 require('Polycode/Ray')
 require('Polycode/Rectangle')
 require('Polycode/RenderDataArray')
@@ -79,7 +76,6 @@ require('Polycode/SceneLabel')
 require('Polycode/SceneLight')
 require('Polycode/SceneCurve')
 require('Polycode/SceneLine')
-require('Polycode/SceneManager')
 require('Polycode/SceneMesh')
 require('Polycode/ScenePrimitive')
 require('Polycode/SceneRenderTexture')

+ 2 - 2
bindings/javascript/Polycode/AABB.js

@@ -10,7 +10,7 @@ function AABB() {
 
 
 AABB.prototype.__get_min = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.AABB__get_min(this.__ptr)
 	return retVal
 }
@@ -20,7 +20,7 @@ AABB.prototype.__set_min = function(val) {
 }
 
 AABB.prototype.__get_max = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.AABB__get_max(this.__ptr)
 	return retVal
 }

+ 0 - 22
bindings/javascript/Polycode/AttributeBinding.js

@@ -4,8 +4,6 @@ function AttributeBinding() {
 	}
 	Object.defineProperties(this, {
 		'name': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_name, set: AttributeBinding.prototype.__set_name},
-		'vertexData': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_vertexData, set: AttributeBinding.prototype.__set_vertexData},
-		'attribute': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_attribute, set: AttributeBinding.prototype.__set_attribute},
 		'enabled': { enumerable: true, configurable: true, get: AttributeBinding.prototype.__get_enabled, set: AttributeBinding.prototype.__set_enabled}
 	})
 }
@@ -19,26 +17,6 @@ AttributeBinding.prototype.__set_name = function(val) {
 	Polycode.AttributeBinding__set_name(this.__ptr, val)
 }
 
-AttributeBinding.prototype.__get_vertexData = function() {
-	var retVal = new VertexDataArray()
-	retVal.__ptr = 	Polycode.AttributeBinding__get_vertexData(this.__ptr)
-	return retVal
-}
-
-AttributeBinding.prototype.__set_vertexData = function(val) {
-	Polycode.AttributeBinding__set_vertexData(this.__ptr, val.__ptr)
-}
-
-AttributeBinding.prototype.__get_attribute = function() {
-	var retVal = new ProgramAttribute()
-	retVal.__ptr = 	Polycode.AttributeBinding__get_attribute(this.__ptr)
-	return retVal
-}
-
-AttributeBinding.prototype.__set_attribute = function(val) {
-	Polycode.AttributeBinding__set_attribute(this.__ptr, val.__ptr)
-}
-
 AttributeBinding.prototype.__get_enabled = function() {
 	return Polycode.AttributeBinding__get_enabled(this.__ptr)
 }

+ 3 - 18
bindings/javascript/Polycode/AudioMixer.js

@@ -5,8 +5,7 @@ function AudioMixer() {
 	Object.defineProperties(this, {
 		'globalVolume': { enumerable: true, configurable: true, get: AudioMixer.prototype.__get_globalVolume, set: AudioMixer.prototype.__set_globalVolume},
 		'listenerPosition': { enumerable: true, configurable: true, get: AudioMixer.prototype.__get_listenerPosition, set: AudioMixer.prototype.__set_listenerPosition},
-		'listenerOrientation': { enumerable: true, configurable: true, get: AudioMixer.prototype.__get_listenerOrientation, set: AudioMixer.prototype.__set_listenerOrientation},
-		'mixerMutex': { enumerable: true, configurable: true, get: AudioMixer.prototype.__get_mixerMutex, set: AudioMixer.prototype.__set_mixerMutex}
+		'listenerOrientation': { enumerable: true, configurable: true, get: AudioMixer.prototype.__get_listenerOrientation, set: AudioMixer.prototype.__set_listenerOrientation}
 	})
 }
 
@@ -20,7 +19,7 @@ AudioMixer.prototype.__set_globalVolume = function(val) {
 }
 
 AudioMixer.prototype.__get_listenerPosition = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.AudioMixer__get_listenerPosition(this.__ptr)
 	return retVal
 }
@@ -30,7 +29,7 @@ AudioMixer.prototype.__set_listenerPosition = function(val) {
 }
 
 AudioMixer.prototype.__get_listenerOrientation = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.AudioMixer__get_listenerOrientation(this.__ptr)
 	return retVal
 }
@@ -39,23 +38,9 @@ AudioMixer.prototype.__set_listenerOrientation = function(val) {
 	Polycode.AudioMixer__set_listenerOrientation(this.__ptr, val.__ptr)
 }
 
-AudioMixer.prototype.__get_mixerMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = 	Polycode.AudioMixer__get_mixerMutex(this.__ptr)
-	return retVal
-}
-
-AudioMixer.prototype.__set_mixerMutex = function(val) {
-	Polycode.AudioMixer__set_mixerMutex(this.__ptr, val.__ptr)
-}
-
 Duktape.fin(AudioMixer.prototype, function (x) {
 	if (x === AudioMixer.prototype) {
 		return;
 	}
 	Polycode.AudioMixer__delete(x.__ptr)
 })
-
-AudioMixer.prototype.mixIntoBuffer = function(buffer,numSamples) {
-	Polycode.AudioMixer_mixIntoBuffer(this.__ptr, buffer.__ptr, numSamples)
-}

+ 1 - 28
bindings/javascript/Polycode/BezierCurve.js

@@ -3,22 +3,11 @@ function BezierCurve() {
 		this.__ptr = Polycode.BezierCurve()
 	}
 	Object.defineProperties(this, {
-		'insertPoint': { enumerable: true, configurable: true, get: BezierCurve.prototype.__get_insertPoint, set: BezierCurve.prototype.__set_insertPoint},
 		'evaluationAccuracy': { enumerable: true, configurable: true, get: BezierCurve.prototype.__get_evaluationAccuracy, set: BezierCurve.prototype.__set_evaluationAccuracy}
 	})
 }
 
 
-BezierCurve.prototype.__get_insertPoint = function() {
-	var retVal = new BezierPoint()
-	retVal.__ptr = 	Polycode.BezierCurve__get_insertPoint(this.__ptr)
-	return retVal
-}
-
-BezierCurve.prototype.__set_insertPoint = function(val) {
-	Polycode.BezierCurve__set_insertPoint(this.__ptr, val.__ptr)
-}
-
 BezierCurve.prototype.__get_evaluationAccuracy = function() {
 	return Polycode.BezierCurve__get_evaluationAccuracy(this.__ptr)
 }
@@ -34,12 +23,6 @@ Duktape.fin(BezierCurve.prototype, function (x) {
 	Polycode.BezierCurve__delete(x.__ptr)
 })
 
-BezierCurve.prototype.getControlPoint = function(index) {
-	var retVal = new BezierPoint()
-	retVal.__ptr = Polycode.BezierCurve_getControlPoint(this.__ptr, index)
-	return retVal
-}
-
 BezierCurve.prototype.getNumControlPoints = function() {
 	return Polycode.BezierCurve_getNumControlPoints(this.__ptr)
 }
@@ -65,17 +48,11 @@ BezierCurve.prototype.addControlPoint2d = function(x,y) {
 }
 
 BezierCurve.prototype.getPointAt = function(a) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.BezierCurve_getPointAt(this.__ptr, a)
 	return retVal
 }
 
-BezierCurve.prototype.getPointBetween = function(a,bp1,bp2) {
-	var retVal = new Vector3()
-	retVal.__ptr = Polycode.BezierCurve_getPointBetween(this.__ptr, a, bp1.__ptr, bp2.__ptr)
-	return retVal
-}
-
 BezierCurve.prototype.clearControlPoints = function() {
 	Polycode.BezierCurve_clearControlPoints(this.__ptr)
 }
@@ -88,10 +65,6 @@ BezierCurve.prototype.getTValueAtX = function(x) {
 	return Polycode.BezierCurve_getTValueAtX(this.__ptr, x)
 }
 
-BezierCurve.prototype.removePoint = function(point) {
-	Polycode.BezierCurve_removePoint(this.__ptr, point.__ptr)
-}
-
 BezierCurve.prototype.setHeightCacheResolution = function(resolution) {
 	Polycode.BezierCurve_setHeightCacheResolution(this.__ptr, resolution)
 }

+ 3 - 3
bindings/javascript/Polycode/BezierPoint.js

@@ -11,7 +11,7 @@ function BezierPoint(p1x,p1y,p1z,p2x,p2y,p2z,p3x,p3y,p3z) {
 
 
 BezierPoint.prototype.__get_p1 = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.BezierPoint__get_p1(this.__ptr)
 	return retVal
 }
@@ -21,7 +21,7 @@ BezierPoint.prototype.__set_p1 = function(val) {
 }
 
 BezierPoint.prototype.__get_p2 = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.BezierPoint__get_p2(this.__ptr)
 	return retVal
 }
@@ -31,7 +31,7 @@ BezierPoint.prototype.__set_p2 = function(val) {
 }
 
 BezierPoint.prototype.__get_p3 = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.BezierPoint__get_p3(this.__ptr)
 	return retVal
 }

+ 2 - 2
bindings/javascript/Polycode/BinaryObjectReader.js

@@ -1,6 +1,6 @@
-function BinaryObjectReader(fileName,object) {
+function BinaryObjectReader() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.BinaryObjectReader(fileName,object)
+		this.__ptr = Polycode.BinaryObjectReader()
 	}
 	Object.defineProperties(this, {
 		'success': { enumerable: true, configurable: true, get: BinaryObjectReader.prototype.__get_success, set: BinaryObjectReader.prototype.__set_success}

+ 2 - 10
bindings/javascript/Polycode/BinaryObjectWriter.js

@@ -1,6 +1,6 @@
-function BinaryObjectWriter(object) {
+function BinaryObjectWriter() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.BinaryObjectWriter(object)
+		this.__ptr = Polycode.BinaryObjectWriter()
 	}
 }
 
@@ -12,14 +12,6 @@ Duktape.fin(BinaryObjectWriter.prototype, function (x) {
 	Polycode.BinaryObjectWriter__delete(x.__ptr)
 })
 
-BinaryObjectWriter.prototype.parseKeysFromObjectEntry = function(entry) {
-	Polycode.BinaryObjectWriter_parseKeysFromObjectEntry(this.__ptr, entry.__ptr)
-}
-
-BinaryObjectWriter.prototype.writeEntryToFile = function(entry) {
-	Polycode.BinaryObjectWriter_writeEntryToFile(this.__ptr, entry.__ptr)
-}
-
 BinaryObjectWriter.prototype.addKey = function(key) {
 	return Polycode.BinaryObjectWriter_addKey(this.__ptr, key)
 }

+ 17 - 17
bindings/javascript/Polycode/Bone.js

@@ -29,7 +29,7 @@ Bone.prototype.__set_parentBoneId = function(val) {
 }
 
 Bone.prototype.__get_boneMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_boneMatrix(this.__ptr)
 	return retVal
 }
@@ -39,7 +39,7 @@ Bone.prototype.__set_boneMatrix = function(val) {
 }
 
 Bone.prototype.__get_restMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_restMatrix(this.__ptr)
 	return retVal
 }
@@ -49,7 +49,7 @@ Bone.prototype.__set_restMatrix = function(val) {
 }
 
 Bone.prototype.__get_baseMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_baseMatrix(this.__ptr)
 	return retVal
 }
@@ -59,7 +59,7 @@ Bone.prototype.__set_baseMatrix = function(val) {
 }
 
 Bone.prototype.__get_finalMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_finalMatrix(this.__ptr)
 	return retVal
 }
@@ -69,7 +69,7 @@ Bone.prototype.__set_finalMatrix = function(val) {
 }
 
 Bone.prototype.__get_baseRotation = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_baseRotation(this.__ptr)
 	return retVal
 }
@@ -79,7 +79,7 @@ Bone.prototype.__set_baseRotation = function(val) {
 }
 
 Bone.prototype.__get_baseScale = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_baseScale(this.__ptr)
 	return retVal
 }
@@ -89,7 +89,7 @@ Bone.prototype.__set_baseScale = function(val) {
 }
 
 Bone.prototype.__get_basePosition = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Bone__get_basePosition(this.__ptr)
 	return retVal
 }
@@ -126,7 +126,7 @@ Bone.prototype.addChildBone = function(bone) {
 }
 
 Bone.prototype.getParentBone = function() {
-	var retVal = new Bone()
+	var retVal = new Bone("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getParentBone(this.__ptr)
 	return retVal
 }
@@ -136,13 +136,13 @@ Bone.prototype.getNumChildBones = function() {
 }
 
 Bone.prototype.getChildBone = function(index) {
-	var retVal = new Bone()
+	var retVal = new Bone("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getChildBone(this.__ptr, index)
 	return retVal
 }
 
 Bone.prototype.getBoneMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getBoneMatrix(this.__ptr)
 	return retVal
 }
@@ -152,25 +152,25 @@ Bone.prototype.setBoneMatrix = function(matrix) {
 }
 
 Bone.prototype.getRestMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getRestMatrix(this.__ptr)
 	return retVal
 }
 
 Bone.prototype.getFullRestMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getFullRestMatrix(this.__ptr)
 	return retVal
 }
 
 Bone.prototype.getParentRestMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getParentRestMatrix(this.__ptr)
 	return retVal
 }
 
 Bone.prototype.getFinalMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getFinalMatrix(this.__ptr)
 	return retVal
 }
@@ -184,13 +184,13 @@ Bone.prototype.setBaseMatrix = function(matrix) {
 }
 
 Bone.prototype.getBaseMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getBaseMatrix(this.__ptr)
 	return retVal
 }
 
 Bone.prototype.getFullBaseMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_getFullBaseMatrix(this.__ptr)
 	return retVal
 }
@@ -200,7 +200,7 @@ Bone.prototype.rebuildFinalMatrix = function() {
 }
 
 Bone.prototype.buildFinalMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Bone_buildFinalMatrix(this.__ptr)
 	return retVal
 }

+ 3 - 124
bindings/javascript/Polycode/BoneTrack.js

@@ -3,127 +3,16 @@ function BoneTrack(bone,length) {
 		this.__ptr = Polycode.BoneTrack(bone,length)
 	}
 	Object.defineProperties(this, {
-		'scaleX': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_scaleX, set: BoneTrack.prototype.__set_scaleX},
-		'scaleY': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_scaleY, set: BoneTrack.prototype.__set_scaleY},
-		'scaleZ': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_scaleZ, set: BoneTrack.prototype.__set_scaleZ},
-		'QuatW': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_QuatW, set: BoneTrack.prototype.__set_QuatW},
-		'QuatX': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_QuatX, set: BoneTrack.prototype.__set_QuatX},
-		'QuatY': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_QuatY, set: BoneTrack.prototype.__set_QuatY},
-		'QuatZ': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_QuatZ, set: BoneTrack.prototype.__set_QuatZ},
-		'LocX': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_LocX, set: BoneTrack.prototype.__set_LocX},
-		'LocY': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_LocY, set: BoneTrack.prototype.__set_LocY},
-		'LocZ': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_LocZ, set: BoneTrack.prototype.__set_LocZ},
 		'position': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_position, set: BoneTrack.prototype.__set_position},
 		'scale': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_scale, set: BoneTrack.prototype.__set_scale},
 		'boneQuat': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_boneQuat, set: BoneTrack.prototype.__set_boneQuat},
-		'quatCurve': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_quatCurve, set: BoneTrack.prototype.__set_quatCurve},
 		'weight': { enumerable: true, configurable: true, get: BoneTrack.prototype.__get_weight, set: BoneTrack.prototype.__set_weight}
 	})
 }
 
 
-BoneTrack.prototype.__get_scaleX = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_scaleX(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_scaleX = function(val) {
-	Polycode.BoneTrack__set_scaleX(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_scaleY = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_scaleY(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_scaleY = function(val) {
-	Polycode.BoneTrack__set_scaleY(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_scaleZ = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_scaleZ(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_scaleZ = function(val) {
-	Polycode.BoneTrack__set_scaleZ(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_QuatW = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_QuatW(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_QuatW = function(val) {
-	Polycode.BoneTrack__set_QuatW(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_QuatX = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_QuatX(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_QuatX = function(val) {
-	Polycode.BoneTrack__set_QuatX(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_QuatY = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_QuatY(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_QuatY = function(val) {
-	Polycode.BoneTrack__set_QuatY(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_QuatZ = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_QuatZ(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_QuatZ = function(val) {
-	Polycode.BoneTrack__set_QuatZ(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_LocX = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_LocX(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_LocX = function(val) {
-	Polycode.BoneTrack__set_LocX(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_LocY = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_LocY(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_LocY = function(val) {
-	Polycode.BoneTrack__set_LocY(this.__ptr, val.__ptr)
-}
-
-BoneTrack.prototype.__get_LocZ = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_LocZ(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_LocZ = function(val) {
-	Polycode.BoneTrack__set_LocZ(this.__ptr, val.__ptr)
-}
-
 BoneTrack.prototype.__get_position = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.BoneTrack__get_position(this.__ptr)
 	return retVal
 }
@@ -133,7 +22,7 @@ BoneTrack.prototype.__set_position = function(val) {
 }
 
 BoneTrack.prototype.__get_scale = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.BoneTrack__get_scale(this.__ptr)
 	return retVal
 }
@@ -143,7 +32,7 @@ BoneTrack.prototype.__set_scale = function(val) {
 }
 
 BoneTrack.prototype.__get_boneQuat = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.BoneTrack__get_boneQuat(this.__ptr)
 	return retVal
 }
@@ -152,16 +41,6 @@ BoneTrack.prototype.__set_boneQuat = function(val) {
 	Polycode.BoneTrack__set_boneQuat(this.__ptr, val.__ptr)
 }
 
-BoneTrack.prototype.__get_quatCurve = function() {
-	var retVal = new QuaternionCurve()
-	retVal.__ptr = 	Polycode.BoneTrack__get_quatCurve(this.__ptr)
-	return retVal
-}
-
-BoneTrack.prototype.__set_quatCurve = function(val) {
-	Polycode.BoneTrack__set_quatCurve(this.__ptr, val.__ptr)
-}
-
 BoneTrack.prototype.__get_weight = function() {
 	return Polycode.BoneTrack__get_weight(this.__ptr)
 }

+ 9 - 37
bindings/javascript/Polycode/Camera.js

@@ -1,8 +1,8 @@
 require('Polycode/Entity')
 
-function Camera(parentScene) {
+function Camera() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.Camera(parentScene)
+		this.__ptr = Polycode.Camera()
 	}
 	Object.defineProperties(this, {
 		'frustumCulling': { enumerable: true, configurable: true, get: Camera.prototype.__get_frustumCulling, set: Camera.prototype.__set_frustumCulling},
@@ -38,7 +38,7 @@ Camera.prototype.__set_topLeftOrtho = function(val) {
 }
 
 Camera.prototype.__get_cameraShift = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Camera__get_cameraShift(this.__ptr)
 	return retVal
 }
@@ -104,18 +104,8 @@ Camera.prototype.getFarClippingPlane = function() {
 	return Polycode.Camera_getFarClippingPlane(this.__ptr)
 }
 
-Camera.prototype.setParentScene = function(parentScene) {
-	Polycode.Camera_setParentScene(this.__ptr, parentScene.__ptr)
-}
-
-Camera.prototype.getParentScene = function() {
-	var retVal = new Scene()
-	retVal.__ptr = Polycode.Camera_getParentScene(this.__ptr)
-	return retVal
-}
-
 Camera.prototype.createProjectionMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Camera_createProjectionMatrix(this.__ptr)
 	return retVal
 }
@@ -124,10 +114,6 @@ Camera.prototype.hasFilterShader = function() {
 	return Polycode.Camera_hasFilterShader(this.__ptr)
 }
 
-Camera.prototype.drawFilter = function(targetBuffer) {
-	Polycode.Camera_drawFilter(this.__ptr, targetBuffer)
-}
-
 Camera.prototype.setPostFilter = function(material) {
 	Polycode.Camera_setPostFilter(this.__ptr, material)
 }
@@ -141,23 +127,13 @@ Camera.prototype.removePostFilter = function() {
 }
 
 Camera.prototype.getScreenShaderMaterial = function() {
-	var retVal = new Material()
+	var retVal = new Material("__skip_ptr__")
 	retVal.__ptr = Polycode.Camera_getScreenShaderMaterial(this.__ptr)
 	return retVal
 }
 
-Camera.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.Camera_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-Camera.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.Camera_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
 Camera.prototype.getProjectionMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Camera_getProjectionMatrix(this.__ptr)
 	return retVal
 }
@@ -167,7 +143,7 @@ Camera.prototype.setCustomProjectionMatrix = function(matrix) {
 }
 
 Camera.prototype.getViewport = function() {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = Polycode.Camera_getViewport(this.__ptr)
 	return retVal
 }
@@ -193,17 +169,13 @@ Camera.prototype.getProjectionMode = function() {
 }
 
 Camera.prototype.projectRayFrom2DCoordinate = function(coordinate,viewport) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Camera_projectRayFrom2DCoordinate(this.__ptr, coordinate, viewport)
 	return retVal
 }
 
-Camera.prototype.renderFullScreenQuad = function(drawBuffer,shaderPass) {
-	Polycode.Camera_renderFullScreenQuad(this.__ptr, drawBuffer.__ptr, shaderPass)
-}
-
 Camera.prototype.getShaderPass = function(index) {
-	var retVal = new ShaderPass()
+	var retVal = new ShaderPass("__skip_ptr__")
 	retVal.__ptr = Polycode.Camera_getShaderPass(this.__ptr, index)
 	return retVal
 }

+ 3 - 3
bindings/javascript/Polycode/Color.js

@@ -54,13 +54,13 @@ Duktape.fin(Color.prototype, function (x) {
 })
 
 Color.prototype.ColorWithInts = function(r,g,b,a) {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Color_ColorWithInts(r, g, b, a)
 	return retVal
 }
 
 Color.prototype.ColorWithHex = function(hex) {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Color_ColorWithHex(hex)
 	return retVal
 }
@@ -98,7 +98,7 @@ Color.prototype.setColor = function(r,g,b,a) {
 }
 
 Color.prototype.blendColor = function(c2,mode,amount,c3) {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Color_blendColor(this.__ptr, c2, mode, amount, c3)
 	return retVal
 }

+ 1 - 1
bindings/javascript/Polycode/ColorRange.js

@@ -11,7 +11,7 @@ function ColorRange(color,rangeStart,rangeEnd) {
 
 
 ColorRange.prototype.__get_color = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.ColorRange__get_color(this.__ptr)
 	return retVal
 }

+ 0 - 6
bindings/javascript/Polycode/Config.js

@@ -20,12 +20,6 @@ Config.prototype.saveConfig = function(configNamespace,fileName) {
 	Polycode.Config_saveConfig(this.__ptr, configNamespace, fileName)
 }
 
-Config.prototype.getEntry = function(configNamespace,key) {
-	var retVal = new ConfigEntry()
-	retVal.__ptr = Polycode.Config_getEntry(this.__ptr, configNamespace, key)
-	return retVal
-}
-
 Config.prototype.setStringValue = function(configNamespace,key,value) {
 	Polycode.Config_setStringValue(this.__ptr, configNamespace, key, value)
 }

+ 7 - 86
bindings/javascript/Polycode/Core.js

@@ -2,7 +2,6 @@ require('Polycode/EventDispatcher')
 
 function Core() {
 	Object.defineProperties(this, {
-		'eventMutex': { enumerable: true, configurable: true, get: Core.prototype.__get_eventMutex, set: Core.prototype.__set_eventMutex},
 		'paused': { enumerable: true, configurable: true, get: Core.prototype.__get_paused, set: Core.prototype.__set_paused},
 		'pauseOnLoseFocus': { enumerable: true, configurable: true, get: Core.prototype.__get_pauseOnLoseFocus, set: Core.prototype.__set_pauseOnLoseFocus},
 		'defaultScreenWidth': { enumerable: true, configurable: true, get: Core.prototype.__get_defaultScreenWidth, set: Core.prototype.__set_defaultScreenWidth},
@@ -33,16 +32,6 @@ Core.CURSOR_OPEN_HAND = 6
 
 Core.prototype = Object.create(EventDispatcher.prototype)
 
-Core.prototype.__get_eventMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = 	Polycode.Core__get_eventMutex(this.__ptr)
-	return retVal
-}
-
-Core.prototype.__set_eventMutex = function(val) {
-	Polycode.Core__set_eventMutex(this.__ptr, val.__ptr)
-}
-
 Core.prototype.__get_paused = function() {
 	return Polycode.Core__get_paused(this.__ptr)
 }
@@ -76,7 +65,7 @@ Core.prototype.__set_defaultScreenHeight = function(val) {
 }
 
 Core.prototype.__get_deviceAttitude = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Core__get_deviceAttitude(this.__ptr)
 	return retVal
 }
@@ -96,10 +85,6 @@ Core.prototype.Update = function() {
 	return Polycode.Core_Update(this.__ptr)
 }
 
-Core.prototype.Render = function() {
-	Polycode.Core_Render(this.__ptr)
-}
-
 Core.prototype.fixedUpdate = function() {
 	return Polycode.Core_fixedUpdate(this.__ptr)
 }
@@ -108,10 +93,6 @@ Core.prototype.systemUpdate = function() {
 	return Polycode.Core_systemUpdate(this.__ptr)
 }
 
-Core.prototype.updateAndRender = function() {
-	return Polycode.Core_updateAndRender(this.__ptr)
-}
-
 Core.prototype.enableMouse = function(newval) {
 	Polycode.Core_enableMouse(this.__ptr, newval)
 }
@@ -132,24 +113,6 @@ Core.prototype.openOnScreenKeyboard = function(open) {
 	Polycode.Core_openOnScreenKeyboard(this.__ptr, open)
 }
 
-Core.prototype.createThread = function(target) {
-	Polycode.Core_createThread(this.__ptr, target.__ptr)
-}
-
-Core.prototype.lockMutex = function(mutex) {
-	Polycode.Core_lockMutex(this.__ptr, mutex.__ptr)
-}
-
-Core.prototype.unlockMutex = function(mutex) {
-	Polycode.Core_unlockMutex(this.__ptr, mutex.__ptr)
-}
-
-Core.prototype.createMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = Polycode.Core_createMutex(this.__ptr)
-	return retVal
-}
-
 Core.prototype.copyStringToClipboard = function(str) {
 	Polycode.Core_copyStringToClipboard(this.__ptr, str)
 }
@@ -158,12 +121,6 @@ Core.prototype.getClipboardString = function() {
 	return Polycode.Core_getClipboardString(this.__ptr)
 }
 
-Core.prototype.getServices = function() {
-	var retVal = new CoreServices()
-	retVal.__ptr = Polycode.Core_getServices(this.__ptr)
-	return retVal
-}
-
 Core.prototype.getFPS = function() {
 	return Polycode.Core_getFPS(this.__ptr)
 }
@@ -180,12 +137,6 @@ Core.prototype.getAALevel = function() {
 	return Polycode.Core_getAALevel(this.__ptr)
 }
 
-Core.prototype.getInput = function() {
-	var retVal = new CoreInput()
-	retVal.__ptr = Polycode.Core_getInput(this.__ptr)
-	return retVal
-}
-
 Core.prototype.getXRes = function() {
 	return Polycode.Core_getXRes(this.__ptr)
 }
@@ -202,10 +153,6 @@ Core.prototype.getBackingYRes = function() {
 	return Polycode.Core_getBackingYRes(this.__ptr)
 }
 
-Core.prototype.getScreenInfo = function(width,height,hz) {
-	Polycode.Core_getScreenInfo(width.__ptr, height.__ptr, hz.__ptr)
-}
-
 Core.prototype.getScreenWidth = function() {
 	return Polycode.Core_getScreenWidth(this.__ptr)
 }
@@ -246,10 +193,6 @@ Core.prototype.saveFilePicker = function(extensions) {
 	return Polycode.Core_saveFilePicker(this.__ptr, extensions)
 }
 
-Core.prototype.handleVideoModeChange = function(modeInfo) {
-	Polycode.Core_handleVideoModeChange(this.__ptr, modeInfo.__ptr)
-}
-
 Core.prototype.flushRenderContext = function() {
 	Polycode.Core_flushRenderContext(this.__ptr)
 }
@@ -262,16 +205,6 @@ Core.prototype.isWindowInitialized = function() {
 	return Polycode.Core_isWindowInitialized(this.__ptr)
 }
 
-Core.prototype.openFile = function(fileName,opts) {
-	var retVal = new CoreFile()
-	retVal.__ptr = Polycode.Core_openFile(this.__ptr, fileName, opts)
-	return retVal
-}
-
-Core.prototype.closeFile = function(file) {
-	Polycode.Core_closeFile(this.__ptr, file.__ptr)
-}
-
 Core.prototype.addFileSource = function(type,source) {
 	Polycode.Core_addFileSource(this.__ptr, type, source)
 }
@@ -328,16 +261,14 @@ Core.prototype.getFixedTimestep = function() {
 	return Polycode.Core_getFixedTimestep(this.__ptr)
 }
 
-Core.prototype.getTicksFloat = function() {
-	return Polycode.Core_getTicksFloat(this.__ptr)
-}
-
-Core.prototype.setUserPointer = function(ptr) {
-	Polycode.Core_setUserPointer(this.__ptr, ptr.__ptr)
+Core.prototype.getViewport = function() {
+	var retVal = new Rectangle("__skip_ptr__")
+	retVal.__ptr = Polycode.Core_getViewport(this.__ptr)
+	return retVal
 }
 
-Core.prototype.getUserPointer = function() {
-	Polycode.Core_getUserPointer(this.__ptr)
+Core.prototype.getTicksFloat = function() {
+	return Polycode.Core_getTicksFloat(this.__ptr)
 }
 
 Core.prototype.executeExternalCommand = function(command,args,inDirectory) {
@@ -355,13 +286,3 @@ Core.prototype.getUserHomeDirectory = function() {
 Core.prototype.makeApplicationMain = function() {
 	Polycode.Core_makeApplicationMain(this.__ptr)
 }
-
-Core.prototype.getEventMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = Polycode.Core_getEventMutex(this.__ptr)
-	return retVal
-}
-
-Core.prototype.removeThread = function(thread) {
-	Polycode.Core_removeThread(this.__ptr, thread.__ptr)
-}

+ 4 - 22
bindings/javascript/Polycode/CoreInput.js

@@ -62,7 +62,7 @@ CoreInput.prototype.__set_keyRepeat = function(val) {
 }
 
 CoreInput.prototype.__get_mousePosition = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.CoreInput__get_mousePosition(this.__ptr)
 	return retVal
 }
@@ -72,7 +72,7 @@ CoreInput.prototype.__set_mousePosition = function(val) {
 }
 
 CoreInput.prototype.__get_deltaMousePosition = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.CoreInput__get_deltaMousePosition(this.__ptr)
 	return retVal
 }
@@ -89,7 +89,7 @@ Duktape.fin(CoreInput.prototype, function (x) {
 })
 
 CoreInput.prototype.getMousePosition = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.CoreInput_getMousePosition(this.__ptr)
 	return retVal
 }
@@ -107,7 +107,7 @@ CoreInput.prototype.getJoystickAxisValue = function(joystickIndex,axis) {
 }
 
 CoreInput.prototype.getMouseDelta = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.CoreInput_getMouseDelta(this.__ptr)
 	return retVal
 }
@@ -120,18 +120,6 @@ CoreInput.prototype.getNumJoysticks = function() {
 	return Polycode.CoreInput_getNumJoysticks(this.__ptr)
 }
 
-CoreInput.prototype.getJoystickInfoByIndex = function(index) {
-	var retVal = new JoystickInfo()
-	retVal.__ptr = Polycode.CoreInput_getJoystickInfoByIndex(this.__ptr, index)
-	return retVal
-}
-
-CoreInput.prototype.getJoystickInfoByID = function(deviceID) {
-	var retVal = new JoystickInfo()
-	retVal.__ptr = Polycode.CoreInput_getJoystickInfoByID(this.__ptr, deviceID)
-	return retVal
-}
-
 CoreInput.prototype.addJoystick = function(deviceID) {
 	Polycode.CoreInput_addJoystick(this.__ptr, deviceID)
 }
@@ -192,12 +180,6 @@ CoreInput.prototype.textInput = function(text) {
 	Polycode.CoreInput_textInput(this.__ptr, text)
 }
 
-CoreInput.prototype.createEvent = function(event) {
-	var retVal = new InputEvent()
-	retVal.__ptr = Polycode.CoreInput_createEvent(event.__ptr)
-	return retVal
-}
-
 CoreInput.prototype.clearInput = function() {
 	Polycode.CoreInput_clearInput(this.__ptr)
 }

+ 1 - 1
bindings/javascript/Polycode/CoreMotionEvent.js

@@ -13,7 +13,7 @@ function CoreMotionEvent() {
 CoreMotionEvent.prototype = Object.create(Event.prototype)
 
 CoreMotionEvent.prototype.__get_amount = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.CoreMotionEvent__get_amount(this.__ptr)
 	return retVal
 }

+ 0 - 88
bindings/javascript/Polycode/CoreServices.js

@@ -13,36 +13,10 @@ Duktape.fin(CoreServices.prototype, function (x) {
 	Polycode.CoreServices__delete(x.__ptr)
 })
 
-CoreServices.prototype.getInstance = function() {
-	var retVal = new CoreServices()
-	retVal.__ptr = Polycode.CoreServices_getInstance()
-	return retVal
-}
-
-CoreServices.prototype.setInstance = function(_instance) {
-	Polycode.CoreServices_setInstance(_instance.__ptr)
-}
-
-CoreServices.prototype.getRenderMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = Polycode.CoreServices_getRenderMutex()
-	return retVal
-}
-
 CoreServices.prototype.createInstance = function() {
 	Polycode.CoreServices_createInstance()
 }
 
-CoreServices.prototype.setRenderer = function(renderer) {
-	Polycode.CoreServices_setRenderer(this.__ptr, renderer.__ptr)
-}
-
-CoreServices.prototype.getRenderer = function() {
-	var retVal = new Renderer()
-	retVal.__ptr = Polycode.CoreServices_getRenderer(this.__ptr)
-	return retVal
-}
-
 CoreServices.prototype.Update = function(elapsed) {
 	Polycode.CoreServices_Update(this.__ptr, elapsed)
 }
@@ -50,65 +24,3 @@ CoreServices.prototype.Update = function(elapsed) {
 CoreServices.prototype.fixedUpdate = function() {
 	Polycode.CoreServices_fixedUpdate(this.__ptr)
 }
-
-CoreServices.prototype.Render = function(viewport) {
-	Polycode.CoreServices_Render(this.__ptr, viewport)
-}
-
-CoreServices.prototype.setCore = function(core) {
-	Polycode.CoreServices_setCore(this.__ptr, core.__ptr)
-}
-
-CoreServices.prototype.getCore = function() {
-	var retVal = new Core()
-	retVal.__ptr = Polycode.CoreServices_getCore(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getInput = function() {
-	var retVal = new CoreInput()
-	retVal.__ptr = Polycode.CoreServices_getInput(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getSceneManager = function() {
-	var retVal = new SceneManager()
-	retVal.__ptr = Polycode.CoreServices_getSceneManager(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getTimerManager = function() {
-	var retVal = new TimerManager()
-	retVal.__ptr = Polycode.CoreServices_getTimerManager(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getTweenManager = function() {
-	var retVal = new TweenManager()
-	retVal.__ptr = Polycode.CoreServices_getTweenManager(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getResourceManager = function() {
-	var retVal = new ResourceManager()
-	retVal.__ptr = Polycode.CoreServices_getResourceManager(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getSoundManager = function() {
-	var retVal = new SoundManager()
-	retVal.__ptr = Polycode.CoreServices_getSoundManager(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getLogger = function() {
-	var retVal = new Logger()
-	retVal.__ptr = Polycode.CoreServices_getLogger(this.__ptr)
-	return retVal
-}
-
-CoreServices.prototype.getConfig = function() {
-	var retVal = new Config()
-	retVal.__ptr = Polycode.CoreServices_getConfig(this.__ptr)
-	return retVal
-}

+ 0 - 6
bindings/javascript/Polycode/Data.js

@@ -27,9 +27,3 @@ Data.prototype.setFromString = function(str,encoding) {
 Data.prototype.saveToFile = function(fileName) {
 	return Polycode.Data_saveToFile(this.__ptr, fileName)
 }
-
-Data.prototype.getData = function() {
-	var retVal = new char()
-	retVal.__ptr = Polycode.Data_getData(this.__ptr)
-	return retVal
-}

+ 0 - 18
bindings/javascript/Polycode/DummyCore.js

@@ -16,10 +16,6 @@ Duktape.fin(DummyCore.prototype, function (x) {
 	Polycode.DummyCore__delete(x.__ptr)
 })
 
-DummyCore.prototype.Render = function() {
-	Polycode.DummyCore_Render(this.__ptr)
-}
-
 DummyCore.prototype.systemUpdate = function() {
 	return Polycode.DummyCore_systemUpdate(this.__ptr)
 }
@@ -28,16 +24,6 @@ DummyCore.prototype.setCursor = function(cursorType) {
 	Polycode.DummyCore_setCursor(this.__ptr, cursorType)
 }
 
-DummyCore.prototype.createThread = function(target) {
-	Polycode.DummyCore_createThread(this.__ptr, target.__ptr)
-}
-
-DummyCore.prototype.createMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = Polycode.DummyCore_createMutex(this.__ptr)
-	return retVal
-}
-
 DummyCore.prototype.copyStringToClipboard = function(str) {
 	Polycode.DummyCore_copyStringToClipboard(this.__ptr, str)
 }
@@ -74,10 +60,6 @@ DummyCore.prototype.saveFilePicker = function(extensions) {
 	return Polycode.DummyCore_saveFilePicker(this.__ptr, extensions)
 }
 
-DummyCore.prototype.handleVideoModeChange = function(modeInfo) {
-	Polycode.DummyCore_handleVideoModeChange(this.__ptr, modeInfo.__ptr)
-}
-
 DummyCore.prototype.flushRenderContext = function() {
 	Polycode.DummyCore_flushRenderContext(this.__ptr)
 }

+ 28 - 146
bindings/javascript/Polycode/Entity.js

@@ -49,7 +49,7 @@ Entity.prototype.__set_billboardMode = function(val) {
 }
 
 Entity.prototype.__get_color = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Entity__get_color(this.__ptr)
 	return retVal
 }
@@ -123,7 +123,7 @@ Entity.prototype.__set_enableScissor = function(val) {
 }
 
 Entity.prototype.__get_scissorBox = function() {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Entity__get_scissorBox(this.__ptr)
 	return retVal
 }
@@ -149,7 +149,7 @@ Entity.prototype.__set_id = function(val) {
 }
 
 Entity.prototype.__get_collisionShapeType = function() {
-	var retVal = new char()
+	var retVal = new char("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Entity__get_collisionShapeType(this.__ptr)
 	return retVal
 }
@@ -199,7 +199,7 @@ Entity.prototype.__set_rendererVis = function(val) {
 }
 
 Entity.prototype.__get_layerID = function() {
-	var retVal = new char()
+	var retVal = new char("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Entity__get_layerID(this.__ptr)
 	return retVal
 }
@@ -213,10 +213,6 @@ Entity.prototype.initEntity = function() {
 	Polycode.Entity_initEntity(this.__ptr)
 }
 
-Entity.prototype.Render = function(buffer) {
-	Polycode.Entity_Render(this.__ptr, buffer.__ptr)
-}
-
 Entity.prototype.Update = function() {
 	Polycode.Entity_Update(this.__ptr)
 }
@@ -225,24 +221,6 @@ Entity.prototype.fixedUpdate = function() {
 	Polycode.Entity_fixedUpdate(this.__ptr)
 }
 
-Entity.prototype.transformAndRender = function(drawBuffer,parentScissorBox) {
-	Polycode.Entity_transformAndRender(this.__ptr, drawBuffer.__ptr, parentScissorBox.__ptr)
-}
-
-Entity.prototype.renderChildren = function(buffer,parentScissorBox) {
-	Polycode.Entity_renderChildren(this.__ptr, buffer.__ptr, parentScissorBox.__ptr)
-}
-
-Entity.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.Entity_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-Entity.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.Entity_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
 Entity.prototype.dirtyMatrix = function(val) {
 	Polycode.Entity_dirtyMatrix(this.__ptr, val)
 }
@@ -256,31 +234,25 @@ Entity.prototype.updateEntityMatrix = function() {
 }
 
 Entity.prototype.getTransformMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getTransformMatrix(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getConcatenatedMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getConcatenatedMatrix(this.__ptr)
 	return retVal
 }
 
-Entity.prototype.getConcatenatedMatrixRelativeTo = function(relativeEntity) {
-	var retVal = new Matrix4()
-	retVal.__ptr = Polycode.Entity_getConcatenatedMatrixRelativeTo(this.__ptr, relativeEntity.__ptr)
-	return retVal
-}
-
 Entity.prototype.getAnchorAdjustedMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getAnchorAdjustedMatrix(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getConcatenatedRollMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getConcatenatedRollMatrix(this.__ptr)
 	return retVal
 }
@@ -290,73 +262,33 @@ Entity.prototype.setTransformByMatrixPure = function(matrix) {
 }
 
 Entity.prototype.getLookAtMatrix = function(loc,upVector) {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getLookAtMatrix(this.__ptr, loc, upVector)
 	return retVal
 }
 
-Entity.prototype.addChild = function(newChild) {
-	Polycode.Entity_addChild(this.__ptr, newChild.__ptr)
-}
-
-Entity.prototype.removeChild = function(entityToRemove) {
-	Polycode.Entity_removeChild(this.__ptr, entityToRemove.__ptr)
-}
-
-Entity.prototype.moveChildUp = function(child) {
-	Polycode.Entity_moveChildUp(this.__ptr, child.__ptr)
-}
-
-Entity.prototype.moveChildDown = function(child) {
-	Polycode.Entity_moveChildDown(this.__ptr, child.__ptr)
-}
-
-Entity.prototype.moveChildTop = function(child) {
-	Polycode.Entity_moveChildTop(this.__ptr, child.__ptr)
-}
-
-Entity.prototype.moveChildBottom = function(child) {
-	Polycode.Entity_moveChildBottom(this.__ptr, child.__ptr)
-}
-
-Entity.prototype.setParentEntity = function(entity) {
-	Polycode.Entity_setParentEntity(this.__ptr, entity.__ptr)
-}
-
-Entity.prototype.getParentEntity = function() {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.Entity_getParentEntity(this.__ptr)
-	return retVal
-}
-
 Entity.prototype.getNumChildren = function() {
 	return Polycode.Entity_getNumChildren(this.__ptr)
 }
 
-Entity.prototype.getChildAtIndex = function(index) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.Entity_getChildAtIndex(this.__ptr, index)
-	return retVal
-}
-
 Entity.prototype.setOwnsChildrenRecursive = function(val) {
 	Polycode.Entity_setOwnsChildrenRecursive(this.__ptr, val)
 }
 
 Entity.prototype.getPosition = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getPosition(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getPosition2D = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getPosition2D(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getCombinedPosition = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getCombinedPosition(this.__ptr)
 	return retVal
 }
@@ -402,19 +334,19 @@ Entity.prototype.setScale = function(x,y,z) {
 }
 
 Entity.prototype.getCompoundScale = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getCompoundScale(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getScale = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getScale(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getRotationEuler = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getRotationEuler(this.__ptr)
 	return retVal
 }
@@ -508,13 +440,13 @@ Entity.prototype.setRotationByQuaternion = function(quaternion) {
 }
 
 Entity.prototype.getRotationQuat = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getRotationQuat(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getConcatenatedQuat = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getConcatenatedQuat(this.__ptr)
 	return retVal
 }
@@ -523,12 +455,8 @@ Entity.prototype.lookAt = function(loc,upVector) {
 	Polycode.Entity_lookAt(this.__ptr, loc, upVector)
 }
 
-Entity.prototype.lookAtEntity = function(entity,upVector) {
-	Polycode.Entity_lookAtEntity(this.__ptr, entity.__ptr, upVector)
-}
-
 Entity.prototype.getCombinedColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getCombinedColor(this.__ptr)
 	return retVal
 }
@@ -546,37 +474,37 @@ Entity.prototype.setAnchorPoint = function(anchorPoint) {
 }
 
 Entity.prototype.getAnchorPoint = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getAnchorPoint(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.onMouseDown = function(ray,mouseButton,timestamp) {
-	var retVal = new MouseEventResult()
+	var retVal = new MouseEventResult("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_onMouseDown(this.__ptr, ray, mouseButton, timestamp)
 	return retVal
 }
 
 Entity.prototype.onMouseUp = function(ray,mouseButton,timestamp) {
-	var retVal = new MouseEventResult()
+	var retVal = new MouseEventResult("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_onMouseUp(this.__ptr, ray, mouseButton, timestamp)
 	return retVal
 }
 
 Entity.prototype.onMouseMove = function(ray,timestamp) {
-	var retVal = new MouseEventResult()
+	var retVal = new MouseEventResult("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_onMouseMove(this.__ptr, ray, timestamp)
 	return retVal
 }
 
 Entity.prototype.onMouseWheelUp = function(ray,timestamp) {
-	var retVal = new MouseEventResult()
+	var retVal = new MouseEventResult("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_onMouseWheelUp(this.__ptr, ray, timestamp)
 	return retVal
 }
 
 Entity.prototype.onMouseWheelDown = function(ray,timestamp) {
-	var retVal = new MouseEventResult()
+	var retVal = new MouseEventResult("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_onMouseWheelDown(this.__ptr, ray, timestamp)
 	return retVal
 }
@@ -589,14 +517,6 @@ Entity.prototype.getDepthOnly = function() {
 	return Polycode.Entity_getDepthOnly(this.__ptr)
 }
 
-Entity.prototype.setUserData = function(userData) {
-	Polycode.Entity_setUserData(this.__ptr, userData.__ptr)
-}
-
-Entity.prototype.getUserData = function() {
-	Polycode.Entity_getUserData(this.__ptr)
-}
-
 Entity.prototype.setBlendingMode = function(newBlendingMode) {
 	Polycode.Entity_setBlendingMode(this.__ptr, newBlendingMode)
 }
@@ -605,20 +525,6 @@ Entity.prototype.getBlendingMode = function() {
 	return Polycode.Entity_getBlendingMode(this.__ptr)
 }
 
-Entity.prototype.getEntityById = function(id,recursive) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.Entity_getEntityById(this.__ptr, id, recursive)
-	return retVal
-}
-
-Entity.prototype.getEntitiesByTag = function(tag,recursive) {
-	Polycode.Entity_getEntitiesByTag(this.__ptr, tag, recursive)
-}
-
-Entity.prototype.getEntitiesByLayerID = function(layerID,recursive) {
-	Polycode.Entity_getEntitiesByLayerID(this.__ptr, layerID, recursive)
-}
-
 Entity.prototype.getEntityProp = function(propName) {
 	return Polycode.Entity_getEntityProp(this.__ptr, propName)
 }
@@ -644,15 +550,11 @@ Entity.prototype.doFixedUpdates = function() {
 }
 
 Entity.prototype.buildPositionMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_buildPositionMatrix(this.__ptr)
 	return retVal
 }
 
-Entity.prototype.setRenderer = function(renderer) {
-	Polycode.Entity_setRenderer(this.__ptr, renderer.__ptr)
-}
-
 Entity.prototype.customHitDetection = function(ray) {
 	return Polycode.Entity_customHitDetection(this.__ptr, ray)
 }
@@ -678,7 +580,7 @@ Entity.prototype.addTag = function(tag) {
 }
 
 Entity.prototype.getScreenPosition = function(projectionMatrix,cameraMatrix,viewport) {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getScreenPosition(this.__ptr, projectionMatrix, cameraMatrix, viewport)
 	return retVal
 }
@@ -692,13 +594,13 @@ Entity.prototype.recalculateAABB = function() {
 }
 
 Entity.prototype.getWorldAABB = function() {
-	var retVal = new AABB()
+	var retVal = new AABB("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getWorldAABB(this.__ptr)
 	return retVal
 }
 
 Entity.prototype.getLocalBoundingBox = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Entity_getLocalBoundingBox(this.__ptr)
 	return retVal
 }
@@ -719,30 +621,10 @@ Entity.prototype.setLocalBoundingBoxZ = function(z) {
 	Polycode.Entity_setLocalBoundingBoxZ(this.__ptr, z)
 }
 
-Entity.prototype.setContainerScene = function(scene) {
-	Polycode.Entity_setContainerScene(this.__ptr, scene.__ptr)
-}
-
-Entity.prototype.getContainerScene = function() {
-	var retVal = new Scene()
-	retVal.__ptr = Polycode.Entity_getContainerScene(this.__ptr)
-	return retVal
-}
-
 Entity.prototype.attachScript = function(script) {
 	Polycode.Entity_attachScript(this.__ptr, script)
 }
 
-Entity.prototype.detachScript = function(script) {
-	Polycode.Entity_detachScript(this.__ptr, script.__ptr)
-}
-
 Entity.prototype.getNumScripts = function() {
 	return Polycode.Entity_getNumScripts(this.__ptr)
 }
-
-Entity.prototype.getScriptAtIndex = function(index) {
-	var retVal = new ScriptInstance()
-	retVal.__ptr = Polycode.Entity_getScriptAtIndex(this.__ptr, index)
-	return retVal
-}

+ 0 - 10
bindings/javascript/Polycode/Event.js

@@ -47,20 +47,10 @@ Event.prototype.getEventCode = function() {
 	return Polycode.Event_getEventCode(this.__ptr)
 }
 
-Event.prototype.getDispatcher = function() {
-	var retVal = new EventDispatcher()
-	retVal.__ptr = Polycode.Event_getDispatcher(this.__ptr)
-	return retVal
-}
-
 Event.prototype.setEventCode = function(eventCode) {
 	Polycode.Event_setEventCode(this.__ptr, eventCode)
 }
 
-Event.prototype.setDispatcher = function(dispatcher) {
-	Polycode.Event_setDispatcher(this.__ptr, dispatcher.__ptr)
-}
-
 Event.prototype.getEventType = function() {
 	return Polycode.Event_getEventType(this.__ptr)
 }

+ 0 - 32
bindings/javascript/Polycode/EventDispatcher.js

@@ -19,35 +19,3 @@ Duktape.fin(EventDispatcher.prototype, function (x) {
 EventDispatcher.prototype.removeAllHandlers = function() {
 	Polycode.EventDispatcher_removeAllHandlers(this.__ptr)
 }
-
-EventDispatcher.prototype.removeAllHandlersForListener = function(handler) {
-	Polycode.EventDispatcher_removeAllHandlersForListener(this.__ptr, handler.__ptr)
-}
-
-EventDispatcher.prototype.addEventListener = function(handler,eventCode) {
-	Polycode.EventDispatcher_addEventListener(this.__ptr, handler.__ptr, eventCode)
-}
-
-EventDispatcher.prototype.addEventListenerUnique = function(handler,eventCode) {
-	Polycode.EventDispatcher_addEventListenerUnique(this.__ptr, handler.__ptr, eventCode)
-}
-
-EventDispatcher.prototype.hasEventListener = function(handler,eventCode) {
-	return Polycode.EventDispatcher_hasEventListener(this.__ptr, handler.__ptr, eventCode)
-}
-
-EventDispatcher.prototype.removeEventListener = function(handler,eventCode) {
-	Polycode.EventDispatcher_removeEventListener(this.__ptr, handler.__ptr, eventCode)
-}
-
-EventDispatcher.prototype.__dispatchEvent = function(event,eventCode) {
-	Polycode.EventDispatcher___dispatchEvent(this.__ptr, event.__ptr, eventCode)
-}
-
-EventDispatcher.prototype.dispatchEvent = function(event,eventCode) {
-	Polycode.EventDispatcher_dispatchEvent(this.__ptr, event.__ptr, eventCode)
-}
-
-EventDispatcher.prototype.dispatchEventNoDelete = function(event,eventCode) {
-	Polycode.EventDispatcher_dispatchEventNoDelete(this.__ptr, event.__ptr, eventCode)
-}

+ 1 - 1
bindings/javascript/Polycode/Font.js

@@ -28,7 +28,7 @@ Duktape.fin(Font.prototype, function (x) {
 })
 
 Font.prototype.getFace = function() {
-	var retVal = new FT_Face()
+	var retVal = new FT_Face("__skip_ptr__")
 	retVal.__ptr = Polycode.Font_getFace(this.__ptr)
 	return retVal
 }

+ 0 - 6
bindings/javascript/Polycode/FontResourceLoader.js

@@ -11,9 +11,3 @@ Duktape.fin(FontResourceLoader.prototype, function (x) {
 	}
 	Polycode.FontResourceLoader__delete(x.__ptr)
 })
-
-FontResourceLoader.prototype.loadResource = function(path,targetPool) {
-	var retVal = new Resource()
-	retVal.__ptr = Polycode.FontResourceLoader_loadResource(this.__ptr, path, targetPool.__ptr)
-	return retVal
-}

+ 6 - 6
bindings/javascript/Polycode/GPUDrawBuffer.js

@@ -16,7 +16,7 @@ function GPUDrawBuffer() {
 
 
 GPUDrawBuffer.prototype.__get_projectionMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_projectionMatrix(this.__ptr)
 	return retVal
 }
@@ -26,7 +26,7 @@ GPUDrawBuffer.prototype.__set_projectionMatrix = function(val) {
 }
 
 GPUDrawBuffer.prototype.__get_viewMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_viewMatrix(this.__ptr)
 	return retVal
 }
@@ -36,7 +36,7 @@ GPUDrawBuffer.prototype.__set_viewMatrix = function(val) {
 }
 
 GPUDrawBuffer.prototype.__get_cameraMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_cameraMatrix(this.__ptr)
 	return retVal
 }
@@ -46,7 +46,7 @@ GPUDrawBuffer.prototype.__set_cameraMatrix = function(val) {
 }
 
 GPUDrawBuffer.prototype.__get_clearColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_clearColor(this.__ptr)
 	return retVal
 }
@@ -72,7 +72,7 @@ GPUDrawBuffer.prototype.__set_clearColorBuffer = function(val) {
 }
 
 GPUDrawBuffer.prototype.__get_backingResolutionScale = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_backingResolutionScale(this.__ptr)
 	return retVal
 }
@@ -82,7 +82,7 @@ GPUDrawBuffer.prototype.__set_backingResolutionScale = function(val) {
 }
 
 GPUDrawBuffer.prototype.__get_viewport = function() {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_viewport(this.__ptr)
 	return retVal
 }

+ 2 - 2
bindings/javascript/Polycode/GPUDrawCall.js

@@ -10,7 +10,7 @@ function GPUDrawCall() {
 
 
 GPUDrawCall.prototype.__get_options = function() {
-	var retVal = new GPUDrawOptions()
+	var retVal = new GPUDrawOptions("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawCall__get_options(this.__ptr)
 	return retVal
 }
@@ -20,7 +20,7 @@ GPUDrawCall.prototype.__set_options = function(val) {
 }
 
 GPUDrawCall.prototype.__get_modelMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawCall__get_modelMatrix(this.__ptr)
 	return retVal
 }

+ 2 - 2
bindings/javascript/Polycode/GPUDrawOptions.js

@@ -83,7 +83,7 @@ GPUDrawOptions.prototype.__set_blendingMode = function(val) {
 }
 
 GPUDrawOptions.prototype.__get_scissorBox = function() {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawOptions__get_scissorBox(this.__ptr)
 	return retVal
 }
@@ -101,7 +101,7 @@ GPUDrawOptions.prototype.__set_enableScissor = function(val) {
 }
 
 GPUDrawOptions.prototype.__get_drawColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GPUDrawOptions__get_drawColor(this.__ptr)
 	return retVal
 }

+ 1 - 23
bindings/javascript/Polycode/GlyphData.js

@@ -3,36 +3,14 @@ function GlyphData() {
 		this.__ptr = Polycode.GlyphData()
 	}
 	Object.defineProperties(this, {
-		'glyphs': { enumerable: true, configurable: true, get: GlyphData.prototype.__get_glyphs, set: GlyphData.prototype.__set_glyphs},
-		'positions': { enumerable: true, configurable: true, get: GlyphData.prototype.__get_positions, set: GlyphData.prototype.__set_positions},
 		'num_glyphs': { enumerable: true, configurable: true, get: GlyphData.prototype.__get_num_glyphs, set: GlyphData.prototype.__set_num_glyphs},
 		'trailingAdvance': { enumerable: true, configurable: true, get: GlyphData.prototype.__get_trailingAdvance, set: GlyphData.prototype.__set_trailingAdvance}
 	})
 }
 
 
-GlyphData.prototype.__get_glyphs = function() {
-	var retVal = new FT_Glyph()
-	retVal.__ptr = 	Polycode.GlyphData__get_glyphs(this.__ptr)
-	return retVal
-}
-
-GlyphData.prototype.__set_glyphs = function(val) {
-	Polycode.GlyphData__set_glyphs(this.__ptr, val.__ptr)
-}
-
-GlyphData.prototype.__get_positions = function() {
-	var retVal = new FT_Vector()
-	retVal.__ptr = 	Polycode.GlyphData__get_positions(this.__ptr)
-	return retVal
-}
-
-GlyphData.prototype.__set_positions = function(val) {
-	Polycode.GlyphData__set_positions(this.__ptr, val.__ptr)
-}
-
 GlyphData.prototype.__get_num_glyphs = function() {
-	var retVal = new FT_UInt()
+	var retVal = new FT_UInt("__skip_ptr__")
 	retVal.__ptr = 	Polycode.GlyphData__get_num_glyphs(this.__ptr)
 	return retVal
 }

+ 1 - 33
bindings/javascript/Polycode/Image.js

@@ -9,12 +9,6 @@ Image.IMAGE_RGBA = 1
 Image.IMAGE_FP16 = 2
 
 
-Image.prototype.BlankImage = function(width,height,type) {
-	var retVal = new Image()
-	retVal.__ptr = Polycode.Image_BlankImage(width, height, type)
-	return retVal
-}
-
 Image.prototype.loadImage = function(fileName) {
 	return Polycode.Image_loadImage(this.__ptr, fileName)
 }
@@ -23,10 +17,6 @@ Image.prototype.saveImage = function(fileName) {
 	return Polycode.Image_saveImage(this.__ptr, fileName)
 }
 
-Image.prototype.pasteImage = function(image,x,y,blendingMode,blendAmount,blendColor) {
-	Polycode.Image_pasteImage(this.__ptr, image.__ptr, x, y, blendingMode, blendAmount, blendColor)
-}
-
 Image.prototype.createEmpty = function(width,height,fillColor) {
 	Polycode.Image_createEmpty(this.__ptr, width, height, fillColor)
 }
@@ -40,15 +30,11 @@ Image.prototype.setPixel = function(x,y,r,g,b,a) {
 }
 
 Image.prototype.getPixel = function(x,y) {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Image_getPixel(this.__ptr, x, y)
 	return retVal
 }
 
-Image.prototype.swap = function(v1,v2) {
-	Polycode.Image_swap(this.__ptr, v1.__ptr, v2.__ptr)
-}
-
 Image.prototype.drawLine = function(x0,y0,x1,y1,col) {
 	Polycode.Image_drawLine(this.__ptr, x0, y0, x1, y1, col)
 }
@@ -85,18 +71,6 @@ Image.prototype.fastBlurHor = function(blurSize) {
 	Polycode.Image_fastBlurHor(this.__ptr, blurSize)
 }
 
-Image.prototype.getPixelsInRect = function(x,y,width,height) {
-	var retVal = new char()
-	retVal.__ptr = Polycode.Image_getPixelsInRect(this.__ptr, x, y, width, height)
-	return retVal
-}
-
-Image.prototype.getImagePart = function(subRect) {
-	var retVal = new Image()
-	retVal.__ptr = Polycode.Image_getImagePart(this.__ptr, subRect)
-	return retVal
-}
-
 Image.prototype.getBrushX = function() {
 	return Polycode.Image_getBrushX(this.__ptr)
 }
@@ -121,12 +95,6 @@ Image.prototype.getHeight = function() {
 	return Polycode.Image_getHeight(this.__ptr)
 }
 
-Image.prototype.getPixels = function() {
-	var retVal = new char()
-	retVal.__ptr = Polycode.Image_getPixels(this.__ptr)
-	return retVal
-}
-
 Image.prototype.premultiplyAlpha = function() {
 	Polycode.Image_premultiplyAlpha(this.__ptr)
 }

+ 3 - 3
bindings/javascript/Polycode/InputEvent.js

@@ -54,7 +54,7 @@ InputEvent.prototype.__set_mouseButton = function(val) {
 }
 
 InputEvent.prototype.__get_mousePosition = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.InputEvent__get_mousePosition(this.__ptr)
 	return retVal
 }
@@ -88,7 +88,7 @@ InputEvent.prototype.__set_text = function(val) {
 }
 
 InputEvent.prototype.__get_touch = function() {
-	var retVal = new TouchInfo()
+	var retVal = new TouchInfo("__skip_ptr__")
 	retVal.__ptr = 	Polycode.InputEvent__get_touch(this.__ptr)
 	return retVal
 }
@@ -161,7 +161,7 @@ Duktape.fin(InputEvent.prototype, function (x) {
 })
 
 InputEvent.prototype.getMousePosition = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.InputEvent_getMousePosition(this.__ptr)
 	return retVal
 }

+ 4 - 4
bindings/javascript/Polycode/Label.js

@@ -55,7 +55,7 @@ Label.prototype.clearColors = function() {
 }
 
 Label.prototype.getColorForIndex = function(index) {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Label_getColorForIndex(this.__ptr, index)
 	return retVal
 }
@@ -73,7 +73,7 @@ Label.prototype.setFont = function(newFont) {
 }
 
 Label.prototype.getFont = function() {
-	var retVal = new Font()
+	var retVal = new Font("__skip_ptr__")
 	retVal.__ptr = Polycode.Label_getFont(this.__ptr)
 	return retVal
 }
@@ -111,13 +111,13 @@ Label.prototype.setColors = function(backgroundColor,foregroundColor) {
 }
 
 Label.prototype.getBackgroundColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Label_getBackgroundColor(this.__ptr)
 	return retVal
 }
 
 Label.prototype.getForegroundColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.Label_getForegroundColor(this.__ptr)
 	return retVal
 }

+ 5 - 5
bindings/javascript/Polycode/LightInfo.js

@@ -30,7 +30,7 @@ LightInfo.prototype.__set_importance = function(val) {
 }
 
 LightInfo.prototype.__get_position = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.LightInfo__get_position(this.__ptr)
 	return retVal
 }
@@ -40,7 +40,7 @@ LightInfo.prototype.__set_position = function(val) {
 }
 
 LightInfo.prototype.__get_direction = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.LightInfo__get_direction(this.__ptr)
 	return retVal
 }
@@ -58,7 +58,7 @@ LightInfo.prototype.__set_type = function(val) {
 }
 
 LightInfo.prototype.__get_diffuseColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.LightInfo__get_diffuseColor(this.__ptr)
 	return retVal
 }
@@ -68,7 +68,7 @@ LightInfo.prototype.__set_diffuseColor = function(val) {
 }
 
 LightInfo.prototype.__get_specularColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.LightInfo__get_specularColor(this.__ptr)
 	return retVal
 }
@@ -134,7 +134,7 @@ LightInfo.prototype.__set_shadowsEnabled = function(val) {
 }
 
 LightInfo.prototype.__get_lightViewMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = 	Polycode.LightInfo__get_lightViewMatrix(this.__ptr)
 	return retVal
 }

+ 8 - 30
bindings/javascript/Polycode/LocalShaderParam.js

@@ -6,9 +6,7 @@ function LocalShaderParam() {
 		'name': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_name, set: LocalShaderParam.prototype.__set_name},
 		'type': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_type, set: LocalShaderParam.prototype.__set_type},
 		'ownsPointer': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_ownsPointer, set: LocalShaderParam.prototype.__set_ownsPointer},
-		'arraySize': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_arraySize, set: LocalShaderParam.prototype.__set_arraySize},
-		'param': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_param, set: LocalShaderParam.prototype.__set_param},
-		'accessMutex': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_accessMutex, set: LocalShaderParam.prototype.__set_accessMutex}
+		'arraySize': { enumerable: true, configurable: true, get: LocalShaderParam.prototype.__get_arraySize, set: LocalShaderParam.prototype.__set_arraySize}
 	})
 }
 
@@ -45,26 +43,6 @@ LocalShaderParam.prototype.__set_arraySize = function(val) {
 	Polycode.LocalShaderParam__set_arraySize(this.__ptr, val)
 }
 
-LocalShaderParam.prototype.__get_param = function() {
-	var retVal = new ProgramParam()
-	retVal.__ptr = 	Polycode.LocalShaderParam__get_param(this.__ptr)
-	return retVal
-}
-
-LocalShaderParam.prototype.__set_param = function(val) {
-	Polycode.LocalShaderParam__set_param(this.__ptr, val.__ptr)
-}
-
-LocalShaderParam.prototype.__get_accessMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = 	Polycode.LocalShaderParam__get_accessMutex(this.__ptr)
-	return retVal
-}
-
-LocalShaderParam.prototype.__set_accessMutex = function(val) {
-	Polycode.LocalShaderParam__set_accessMutex(this.__ptr, val.__ptr)
-}
-
 Duktape.fin(LocalShaderParam.prototype, function (x) {
 	if (x === LocalShaderParam.prototype) {
 		return;
@@ -73,7 +51,7 @@ Duktape.fin(LocalShaderParam.prototype, function (x) {
 })
 
 LocalShaderParam.prototype.Copy = function() {
-	var retVal = new LocalShaderParam()
+	var retVal = new LocalShaderParam("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_Copy(this.__ptr)
 	return retVal
 }
@@ -83,25 +61,25 @@ LocalShaderParam.prototype.getNumber = function() {
 }
 
 LocalShaderParam.prototype.getVector2 = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_getVector2(this.__ptr)
 	return retVal
 }
 
 LocalShaderParam.prototype.getVector3 = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_getVector3(this.__ptr)
 	return retVal
 }
 
 LocalShaderParam.prototype.getMatrix4 = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_getMatrix4(this.__ptr)
 	return retVal
 }
 
 LocalShaderParam.prototype.getColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_getColor(this.__ptr)
 	return retVal
 }
@@ -135,7 +113,7 @@ LocalShaderParam.prototype.setTexture = function(texture) {
 }
 
 LocalShaderParam.prototype.getTexture = function() {
-	var retVal = new Texture()
+	var retVal = new Texture("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_getTexture(this.__ptr)
 	return retVal
 }
@@ -145,7 +123,7 @@ LocalShaderParam.prototype.setCubemap = function(cubemap) {
 }
 
 LocalShaderParam.prototype.getCubemap = function() {
-	var retVal = new Cubemap()
+	var retVal = new Cubemap("__skip_ptr__")
 	retVal.__ptr = Polycode.LocalShaderParam_getCubemap(this.__ptr)
 	return retVal
 }

+ 3 - 17
bindings/javascript/Polycode/Material.js

@@ -55,28 +55,14 @@ Material.prototype.removeShaderPass = function(shaderIndex) {
 	Polycode.Material_removeShaderPass(this.__ptr, shaderIndex)
 }
 
-Material.prototype.addShaderRenderTarget = function(newTarget) {
-	Polycode.Material_addShaderRenderTarget(this.__ptr, newTarget.__ptr)
-}
-
 Material.prototype.getNumShaderRenderTargets = function() {
 	return Polycode.Material_getNumShaderRenderTargets(this.__ptr)
 }
 
-Material.prototype.getShaderRenderTarget = function(index) {
-	var retVal = new ShaderRenderTarget()
-	retVal.__ptr = Polycode.Material_getShaderRenderTarget(this.__ptr, index)
-	return retVal
-}
-
 Material.prototype.removeShaderRenderTarget = function(index) {
 	Polycode.Material_removeShaderRenderTarget(this.__ptr, index)
 }
 
-Material.prototype.recreateRenderTarget = function(renderTarget) {
-	Polycode.Material_recreateRenderTarget(this.__ptr, renderTarget.__ptr)
-}
-
 Material.prototype.recreateRenderTargets = function() {
 	Polycode.Material_recreateRenderTargets(this.__ptr)
 }
@@ -86,19 +72,19 @@ Material.prototype.getName = function() {
 }
 
 Material.prototype.getShaderPass = function(index) {
-	var retVal = new ShaderPass()
+	var retVal = new ShaderPass("__skip_ptr__")
 	retVal.__ptr = Polycode.Material_getShaderPass(this.__ptr, index)
 	return retVal
 }
 
 Material.prototype.getShaderBinding = function(index) {
-	var retVal = new ShaderBinding()
+	var retVal = new ShaderBinding("__skip_ptr__")
 	retVal.__ptr = Polycode.Material_getShaderBinding(this.__ptr, index)
 	return retVal
 }
 
 Material.prototype.getShader = function(index) {
-	var retVal = new Shader()
+	var retVal = new Shader("__skip_ptr__")
 	retVal.__ptr = Polycode.Material_getShader(this.__ptr, index)
 	return retVal
 }

+ 0 - 6
bindings/javascript/Polycode/MaterialResourceLoader.js

@@ -11,9 +11,3 @@ Duktape.fin(MaterialResourceLoader.prototype, function (x) {
 	}
 	Polycode.MaterialResourceLoader__delete(x.__ptr)
 })
-
-MaterialResourceLoader.prototype.loadResource = function(path,targetPool) {
-	var retVal = new Resource()
-	retVal.__ptr = Polycode.MaterialResourceLoader_loadResource(this.__ptr, path, targetPool.__ptr)
-	return retVal
-}

+ 8 - 16
bindings/javascript/Polycode/Matrix4.js

@@ -17,31 +17,31 @@ Matrix4.prototype.identity = function() {
 }
 
 Matrix4.prototype.rotateVector = function(v2) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_rotateVector(this.__ptr, v2)
 	return retVal
 }
 
 Matrix4.prototype.getPosition = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_getPosition(this.__ptr)
 	return retVal
 }
 
 Matrix4.prototype.multiplyWithPerspective = function(v2) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_multiplyWithPerspective(this.__ptr, v2)
 	return retVal
 }
 
 Matrix4.prototype.multVector3 = function(v2) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_multVector3(this.__ptr, v2)
 	return retVal
 }
 
 Matrix4.prototype.multVector4 = function(v2) {
-	var retVal = new Vector4()
+	var retVal = new Vector4("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_multVector4(this.__ptr, v2)
 	return retVal
 }
@@ -58,24 +58,20 @@ Matrix4.prototype.setScale = function(scale) {
 	Polycode.Matrix4_setScale(this.__ptr, scale)
 }
 
-Matrix4.prototype.getEulerAngles = function(ax,ay,az) {
-	Polycode.Matrix4_getEulerAngles(this.__ptr, ax.__ptr, ay.__ptr, az.__ptr)
-}
-
 Matrix4.prototype.transpose = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_transpose(this.__ptr)
 	return retVal
 }
 
 Matrix4.prototype.Inverse = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_Inverse(this.__ptr)
 	return retVal
 }
 
 Matrix4.prototype.inverseAffine = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Matrix4_inverseAffine(this.__ptr)
 	return retVal
 }
@@ -84,10 +80,6 @@ Matrix4.prototype.determinant = function() {
 	return Polycode.Matrix4_determinant(this.__ptr)
 }
 
-Matrix4.prototype.generalDeterminant = function(a,n) {
-	return Polycode.Matrix4_generalDeterminant(a.__ptr, n)
-}
-
 Matrix4.prototype.setOrthoProjection = function(left,right,bottom,top,zNear,zFar) {
 	Polycode.Matrix4_setOrthoProjection(this.__ptr, left, right, bottom, top, zNear, zFar)
 }

+ 3 - 19
bindings/javascript/Polycode/Mesh.js

@@ -10,18 +10,6 @@ function Mesh() {
 Mesh.prototype = Object.create(Resource.prototype)
 
 
-Mesh.prototype.MeshFromFileName = function(fileName) {
-	var retVal = new Mesh()
-	retVal.__ptr = Polycode.Mesh_MeshFromFileName(fileName)
-	return retVal
-}
-
-Mesh.prototype.Copy = function() {
-	var retVal = new Mesh()
-	retVal.__ptr = Polycode.Mesh_Copy(this.__ptr)
-	return retVal
-}
-
 Mesh.prototype.loadMesh = function(fileName) {
 	Polycode.Mesh_loadMesh(this.__ptr, fileName)
 }
@@ -30,10 +18,6 @@ Mesh.prototype.saveToFile = function(fileName,writeNormals,writeTangents,writeCo
 	Polycode.Mesh_saveToFile(this.__ptr, fileName, writeNormals, writeTangents, writeColors, writeBoneWeights, writeUVs, writeSecondaryUVs)
 }
 
-Mesh.prototype.loadFromFile = function(inFile) {
-	Polycode.Mesh_loadFromFile(this.__ptr, inFile.__ptr)
-}
-
 Mesh.prototype.addSubmesh = function(newSubmesh) {
 	Polycode.Mesh_addSubmesh(this.__ptr, newSubmesh)
 }
@@ -47,13 +31,13 @@ Mesh.prototype.getNumSubmeshes = function() {
 }
 
 Mesh.prototype.getSubmeshAtIndex = function(index) {
-	var retVal = new MeshGeometry()
+	var retVal = new MeshGeometry("__skip_ptr__")
 	retVal.__ptr = Polycode.Mesh_getSubmeshAtIndex(this.__ptr, index)
 	return retVal
 }
 
 Mesh.prototype.getSubmeshPointer = function(index) {
-	var retVal = new MeshGeometry()
+	var retVal = new MeshGeometry("__skip_ptr__")
 	retVal.__ptr = Polycode.Mesh_getSubmeshPointer(this.__ptr, index)
 	return retVal
 }
@@ -63,7 +47,7 @@ Mesh.prototype.clearMesh = function() {
 }
 
 Mesh.prototype.calculateBBox = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Mesh_calculateBBox(this.__ptr)
 	return retVal
 }

+ 7 - 13
bindings/javascript/Polycode/MeshGeometry.js

@@ -101,7 +101,7 @@ MeshGeometry.prototype.createCone = function(height,radius,numSegments,tilingVal
 }
 
 MeshGeometry.prototype.recenterMesh = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_recenterMesh(this.__ptr)
 	return retVal
 }
@@ -147,35 +147,29 @@ MeshGeometry.prototype.addColor = function(r,g,b,a) {
 }
 
 MeshGeometry.prototype.getVertexPosition = function(vertexOffset) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_getVertexPosition(this.__ptr, vertexOffset)
 	return retVal
 }
 
 MeshGeometry.prototype.getVertexPositionAtIndex = function(index) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_getVertexPositionAtIndex(this.__ptr, index)
 	return retVal
 }
 
 MeshGeometry.prototype.getVertexTexCoord = function(vertexOffset) {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_getVertexTexCoord(this.__ptr, vertexOffset)
 	return retVal
 }
 
 MeshGeometry.prototype.getVertexTexCoordAtIndex = function(index) {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_getVertexTexCoordAtIndex(this.__ptr, index)
 	return retVal
 }
 
-MeshGeometry.prototype.Copy = function() {
-	var retVal = new MeshGeometry()
-	retVal.__ptr = Polycode.MeshGeometry_Copy(this.__ptr)
-	return retVal
-}
-
 MeshGeometry.prototype.getRadius = function() {
 	return Polycode.MeshGeometry_getRadius(this.__ptr)
 }
@@ -201,7 +195,7 @@ MeshGeometry.prototype.getIndexGroupSize = function() {
 }
 
 MeshGeometry.prototype.calculateBBox = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_calculateBBox(this.__ptr)
 	return retVal
 }
@@ -235,7 +229,7 @@ MeshGeometry.prototype.subdivideToRadius = function(radius,subdivisions) {
 }
 
 MeshGeometry.prototype.calculateFaceTangent = function(v1,v2,v3,texCoord1,texCoord2,texCoord3) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.MeshGeometry_calculateFaceTangent(v1, v2, v3, texCoord1, texCoord2, texCoord3)
 	return retVal
 }

+ 0 - 6
bindings/javascript/Polycode/MeshResourceLoader.js

@@ -11,9 +11,3 @@ Duktape.fin(MeshResourceLoader.prototype, function (x) {
 	}
 	Polycode.MeshResourceLoader__delete(x.__ptr)
 })
-
-MeshResourceLoader.prototype.loadResource = function(path,targetPool) {
-	var retVal = new Resource()
-	retVal.__ptr = Polycode.MeshResourceLoader_loadResource(this.__ptr, path, targetPool.__ptr)
-	return retVal
-}

+ 0 - 18
bindings/javascript/Polycode/ObjectEntry.js

@@ -84,24 +84,6 @@ Duktape.fin(ObjectEntry.prototype, function (x) {
 	Polycode.ObjectEntry__delete(x.__ptr)
 })
 
-ObjectEntry.prototype.readNumber = function(key,out) {
-	return Polycode.ObjectEntry_readNumber(this.__ptr, key, out.__ptr)
-}
-
-ObjectEntry.prototype.readString = function(key,out) {
-	return Polycode.ObjectEntry_readString(this.__ptr, key, out.__ptr)
-}
-
-ObjectEntry.prototype.readBool = function(key,out) {
-	return Polycode.ObjectEntry_readBool(this.__ptr, key, out.__ptr)
-}
-
-ObjectEntry.prototype.addChild = function(name) {
-	var retVal = new ObjectEntry()
-	retVal.__ptr = Polycode.ObjectEntry_addChild(this.__ptr, name)
-	return retVal
-}
-
 ObjectEntry.prototype.getTypedName = function() {
 	return Polycode.ObjectEntry_getTypedName(this.__ptr)
 }

+ 1 - 16
bindings/javascript/Polycode/ProgramParam.js

@@ -4,8 +4,7 @@ function ProgramParam() {
 	}
 	Object.defineProperties(this, {
 		'name': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_name, set: ProgramParam.prototype.__set_name},
-		'type': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_type, set: ProgramParam.prototype.__set_type},
-		'globalParam': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_globalParam, set: ProgramParam.prototype.__set_globalParam}
+		'type': { enumerable: true, configurable: true, get: ProgramParam.prototype.__get_type, set: ProgramParam.prototype.__set_type}
 	})
 }
 
@@ -34,23 +33,9 @@ ProgramParam.prototype.__set_type = function(val) {
 	Polycode.ProgramParam__set_type(this.__ptr, val)
 }
 
-ProgramParam.prototype.__get_globalParam = function() {
-	var retVal = new LocalShaderParam()
-	retVal.__ptr = 	Polycode.ProgramParam__get_globalParam(this.__ptr)
-	return retVal
-}
-
-ProgramParam.prototype.__set_globalParam = function(val) {
-	Polycode.ProgramParam__set_globalParam(this.__ptr, val.__ptr)
-}
-
 Duktape.fin(ProgramParam.prototype, function (x) {
 	if (x === ProgramParam.prototype) {
 		return;
 	}
 	Polycode.ProgramParam__delete(x.__ptr)
 })
-
-ProgramParam.prototype.createParamData = function(type) {
-	Polycode.ProgramParam_createParamData(type)
-}

+ 0 - 6
bindings/javascript/Polycode/ProgramResourceLoader.js

@@ -11,9 +11,3 @@ Duktape.fin(ProgramResourceLoader.prototype, function (x) {
 	}
 	Polycode.ProgramResourceLoader__delete(x.__ptr)
 })
-
-ProgramResourceLoader.prototype.loadResource = function(path,targetPool) {
-	var retVal = new Resource()
-	retVal.__ptr = Polycode.ProgramResourceLoader_loadResource(this.__ptr, path, targetPool.__ptr)
-	return retVal
-}

+ 3 - 3
bindings/javascript/Polycode/QuatTriple.js

@@ -12,7 +12,7 @@ function QuatTriple() {
 
 
 QuatTriple.prototype.__get_q1 = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.QuatTriple__get_q1(this.__ptr)
 	return retVal
 }
@@ -22,7 +22,7 @@ QuatTriple.prototype.__set_q1 = function(val) {
 }
 
 QuatTriple.prototype.__get_q2 = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.QuatTriple__get_q2(this.__ptr)
 	return retVal
 }
@@ -32,7 +32,7 @@ QuatTriple.prototype.__set_q2 = function(val) {
 }
 
 QuatTriple.prototype.__get_q3 = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = 	Polycode.QuatTriple__get_q3(this.__ptr)
 	return retVal
 }

+ 8 - 8
bindings/javascript/Polycode/Quaternion.js

@@ -55,7 +55,7 @@ Quaternion.prototype.setFromMatrix = function(_mat) {
 }
 
 Quaternion.prototype.Slerp = function(fT,rkP,rkQ,shortestPath) {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_Slerp(fT, rkP, rkQ, shortestPath)
 	return retVal
 }
@@ -65,13 +65,13 @@ Quaternion.prototype.Dot = function(rkQ) {
 }
 
 Quaternion.prototype.Log = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_Log(this.__ptr)
 	return retVal
 }
 
 Quaternion.prototype.Exp = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_Exp(this.__ptr)
 	return retVal
 }
@@ -93,13 +93,13 @@ Quaternion.prototype.createFromMatrix = function(matrix) {
 }
 
 Quaternion.prototype.Squad = function(fT,rkP,rkA,rkB,rkQ,shortestPath) {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_Squad(fT, rkP, rkA, rkB, rkQ, shortestPath)
 	return retVal
 }
 
 Quaternion.prototype.Inverse = function() {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_Inverse(this.__ptr)
 	return retVal
 }
@@ -121,7 +121,7 @@ Quaternion.prototype.fromAngleAxis = function(rfAngle,rkAxis) {
 }
 
 Quaternion.prototype.toEulerAngles = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_toEulerAngles(this.__ptr)
 	return retVal
 }
@@ -135,13 +135,13 @@ Quaternion.prototype.createFromAxisAngle = function(x,y,z,degrees) {
 }
 
 Quaternion.prototype.createMatrix = function() {
-	var retVal = new Matrix4()
+	var retVal = new Matrix4("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_createMatrix(this.__ptr)
 	return retVal
 }
 
 Quaternion.prototype.applyTo = function(v) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Quaternion_applyTo(this.__ptr, v)
 	return retVal
 }

+ 3 - 7
bindings/javascript/Polycode/QuaternionCurve.js

@@ -1,6 +1,6 @@
-function QuaternionCurve(wCurve,xCurve,yCurve,zCurve) {
+function QuaternionCurve() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.QuaternionCurve(wCurve,xCurve,yCurve,zCurve)
+		this.__ptr = Polycode.QuaternionCurve()
 	}
 }
 
@@ -13,11 +13,7 @@ Duktape.fin(QuaternionCurve.prototype, function (x) {
 })
 
 QuaternionCurve.prototype.interpolate = function(t,useShortestPath) {
-	var retVal = new Quaternion()
+	var retVal = new Quaternion("__skip_ptr__")
 	retVal.__ptr = Polycode.QuaternionCurve_interpolate(this.__ptr, t, useShortestPath)
 	return retVal
 }
-
-QuaternionCurve.prototype.generatePointsFromCurves = function(wCurve,xCurve,yCurve,zCurve) {
-	Polycode.QuaternionCurve_generatePointsFromCurves(this.__ptr, wCurve.__ptr, xCurve.__ptr, yCurve.__ptr, zCurve.__ptr)
-}

+ 6 - 10
bindings/javascript/Polycode/Ray.js

@@ -11,7 +11,7 @@ function Ray() {
 
 
 Ray.prototype.__get_origin = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Ray__get_origin(this.__ptr)
 	return retVal
 }
@@ -21,7 +21,7 @@ Ray.prototype.__set_origin = function(val) {
 }
 
 Ray.prototype.__get_direction = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Ray__get_direction(this.__ptr)
 	return retVal
 }
@@ -31,7 +31,7 @@ Ray.prototype.__set_direction = function(val) {
 }
 
 Ray.prototype.__get_inv_direction = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Ray__get_inv_direction(this.__ptr)
 	return retVal
 }
@@ -52,27 +52,23 @@ Ray.prototype.boxIntersect = function(box,transformMatrix,vnear,vfar) {
 }
 
 Ray.prototype.planeIntersectPoint = function(planeNormal,planeDistance) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Ray_planeIntersectPoint(this.__ptr, planeNormal, planeDistance)
 	return retVal
 }
 
 Ray.prototype.tranformByMatrix = function(matrix) {
-	var retVal = new Ray()
+	var retVal = new Ray("__skip_ptr__")
 	retVal.__ptr = Polycode.Ray_tranformByMatrix(this.__ptr, matrix)
 	return retVal
 }
 
 Ray.prototype.closestPointOnRay = function(point) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Ray_closestPointOnRay(this.__ptr, point)
 	return retVal
 }
 
-Ray.prototype.closestPointsBetween = function(ray2,point1,point2) {
-	return Polycode.Ray_closestPointsBetween(this.__ptr, ray2, point1.__ptr, point2.__ptr)
-}
-
 Ray.prototype.polygonIntersect = function(v1,v2,v3) {
 	return Polycode.Ray_polygonIntersect(this.__ptr, v1, v2, v3)
 }

+ 1 - 1
bindings/javascript/Polycode/Rectangle.js

@@ -55,7 +55,7 @@ Rectangle.prototype.setRect = function(x,y,w,h) {
 }
 
 Rectangle.prototype.Clipped = function(rect) {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = Polycode.Rectangle_Clipped(this.__ptr, rect)
 	return retVal
 }

+ 0 - 4
bindings/javascript/Polycode/RenderDataArray.js

@@ -46,10 +46,6 @@ Duktape.fin(RenderDataArray.prototype, function (x) {
 	Polycode.RenderDataArray__delete(x.__ptr)
 })
 
-RenderDataArray.prototype.getArrayData = function() {
-	Polycode.RenderDataArray_getArrayData(this.__ptr)
-}
-
 RenderDataArray.prototype.getDataSize = function() {
 	return Polycode.RenderDataArray_getDataSize(this.__ptr)
 }

+ 15 - 2
bindings/javascript/Polycode/RenderFrame.js

@@ -1,10 +1,23 @@
-function RenderFrame() {
+function RenderFrame(viewport) {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.RenderFrame()
+		this.__ptr = Polycode.RenderFrame(viewport)
 	}
+	Object.defineProperties(this, {
+		'viewport': { enumerable: true, configurable: true, get: RenderFrame.prototype.__get_viewport, set: RenderFrame.prototype.__set_viewport}
+	})
 }
 
 
+RenderFrame.prototype.__get_viewport = function() {
+	var retVal = new Rectangle("__skip_ptr__")
+	retVal.__ptr = 	Polycode.RenderFrame__get_viewport(this.__ptr)
+	return retVal
+}
+
+RenderFrame.prototype.__set_viewport = function(val) {
+	Polycode.RenderFrame__set_viewport(this.__ptr, val.__ptr)
+}
+
 Duktape.fin(RenderFrame.prototype, function (x) {
 	if (x === RenderFrame.prototype) {
 		return;

+ 7 - 28
bindings/javascript/Polycode/RenderThread.js

@@ -5,9 +5,6 @@ function RenderThread() {
 }
 
 RenderThread.JOB_REQUEST_CONTEXT_CHANGE = 0
-RenderThread.JOB_PROCESS_DRAW_BUFFER = 2
-RenderThread.JOB_END_FRAME = 3
-RenderThread.JOB_BEGIN_FRAME = 6
 RenderThread.JOB_DESTROY_TEXTURE = 8
 RenderThread.JOB_DESTROY_SHADER = 9
 RenderThread.JOB_DESTROY_PROGRAM = 10
@@ -22,24 +19,20 @@ Duktape.fin(RenderThread.prototype, function (x) {
 	Polycode.RenderThread__delete(x.__ptr)
 })
 
-RenderThread.prototype.setGraphicsInterface = function(core,graphicsInterface) {
-	Polycode.RenderThread_setGraphicsInterface(this.__ptr, core.__ptr, graphicsInterface.__ptr)
-}
-
 RenderThread.prototype.runThread = function() {
 	Polycode.RenderThread_runThread(this.__ptr)
 }
 
-RenderThread.prototype.updateRenderThread = function() {
-	Polycode.RenderThread_updateRenderThread(this.__ptr)
+RenderThread.prototype.beginFrame = function() {
+	Polycode.RenderThread_beginFrame(this.__ptr)
 }
 
-RenderThread.prototype.enqueueFrame = function(frame) {
-	Polycode.RenderThread_enqueueFrame(this.__ptr, frame.__ptr)
+RenderThread.prototype.endFrame = function() {
+	Polycode.RenderThread_endFrame(this.__ptr)
 }
 
-RenderThread.prototype.enqueueJob = function(jobType,data,data2) {
-	Polycode.RenderThread_enqueueJob(this.__ptr, jobType, data.__ptr, data2.__ptr)
+RenderThread.prototype.updateRenderThread = function() {
+	Polycode.RenderThread_updateRenderThread(this.__ptr)
 }
 
 RenderThread.prototype.processJob = function(job) {
@@ -50,22 +43,8 @@ RenderThread.prototype.clearFrameQueue = function() {
 	Polycode.RenderThread_clearFrameQueue(this.__ptr)
 }
 
-RenderThread.prototype.getShaderBinding = function() {
-	var retVal = new ShaderBinding()
-	retVal.__ptr = Polycode.RenderThread_getShaderBinding(this.__ptr)
-	return retVal
-}
-
-RenderThread.prototype.processDrawBufferLights = function(buffer) {
-	Polycode.RenderThread_processDrawBufferLights(this.__ptr, buffer.__ptr)
-}
-
-RenderThread.prototype.processDrawBuffer = function(buffer) {
-	Polycode.RenderThread_processDrawBuffer(this.__ptr, buffer.__ptr)
-}
-
 RenderThread.prototype.getFrameInfo = function() {
-	var retVal = new RenderThreadDebugInfo()
+	var retVal = new RenderThreadDebugInfo("__skip_ptr__")
 	retVal.__ptr = Polycode.RenderThread_getFrameInfo(this.__ptr)
 	return retVal
 }

+ 2 - 52
bindings/javascript/Polycode/Renderer.js

@@ -18,20 +18,6 @@ Duktape.fin(Renderer.prototype, function (x) {
 	Polycode.Renderer__delete(x.__ptr)
 })
 
-Renderer.prototype.setGraphicsInterface = function(core,graphicsInterface) {
-	Polycode.Renderer_setGraphicsInterface(this.__ptr, core.__ptr, graphicsInterface.__ptr)
-}
-
-Renderer.prototype.getRenderThread = function() {
-	var retVal = new RenderThread()
-	retVal.__ptr = Polycode.Renderer_getRenderThread(this.__ptr)
-	return retVal
-}
-
-Renderer.prototype.processDrawBuffer = function(buffer) {
-	Polycode.Renderer_processDrawBuffer(this.__ptr, buffer.__ptr)
-}
-
 Renderer.prototype.setBackingResolutionScale = function(xScale,yScale) {
 	Polycode.Renderer_setBackingResolutionScale(this.__ptr, xScale, yScale)
 }
@@ -44,34 +30,6 @@ Renderer.prototype.getBackingResolutionScaleY = function() {
 	return Polycode.Renderer_getBackingResolutionScaleY(this.__ptr)
 }
 
-Renderer.prototype.enqueueFrameJob = function(jobType,data) {
-	Polycode.Renderer_enqueueFrameJob(this.__ptr, jobType, data.__ptr)
-}
-
-Renderer.prototype.destroyRenderBufferPlatformData = function(platformData) {
-	Polycode.Renderer_destroyRenderBufferPlatformData(this.__ptr, platformData.__ptr)
-}
-
-Renderer.prototype.destroyTexturePlatformData = function(platformData) {
-	Polycode.Renderer_destroyTexturePlatformData(this.__ptr, platformData.__ptr)
-}
-
-Renderer.prototype.destroyProgramPlatformData = function(platformData) {
-	Polycode.Renderer_destroyProgramPlatformData(this.__ptr, platformData.__ptr)
-}
-
-Renderer.prototype.destroyShaderPlatformData = function(platformData) {
-	Polycode.Renderer_destroyShaderPlatformData(this.__ptr, platformData.__ptr)
-}
-
-Renderer.prototype.destroySubmeshPlatformData = function(platformData) {
-	Polycode.Renderer_destroySubmeshPlatformData(this.__ptr, platformData.__ptr)
-}
-
-Renderer.prototype.setTextureParam = function(param,texture) {
-	Polycode.Renderer_setTextureParam(this.__ptr, param.__ptr, texture.__ptr)
-}
-
 Renderer.prototype.setAnisotropyAmount = function(amount) {
 	Polycode.Renderer_setAnisotropyAmount(this.__ptr, amount)
 }
@@ -81,21 +39,13 @@ Renderer.prototype.getAnisotropyAmount = function() {
 }
 
 Renderer.prototype.unProject = function(position,modelMatrix,projectionMatrix,viewport) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Renderer_unProject(position, modelMatrix, projectionMatrix, viewport)
 	return retVal
 }
 
 Renderer.prototype.project = function(position,modelMatrix,projectionMatrix,viewport) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Renderer_project(position, modelMatrix, projectionMatrix, viewport)
 	return retVal
 }
-
-Renderer.prototype.beginFrame = function() {
-	Polycode.Renderer_beginFrame(this.__ptr)
-}
-
-Renderer.prototype.endFrame = function() {
-	Polycode.Renderer_endFrame(this.__ptr)
-}

+ 1 - 1
bindings/javascript/Polycode/Resource.js

@@ -32,7 +32,7 @@ Resource.prototype.__set_reloadOnFileModify = function(val) {
 }
 
 Resource.prototype.__get_resourceFileTime = function() {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Resource__get_resourceFileTime(this.__ptr)
 	return retVal
 }

+ 0 - 48
bindings/javascript/Polycode/ResourceManager.js

@@ -16,50 +16,10 @@ Duktape.fin(ResourceManager.prototype, function (x) {
 	Polycode.ResourceManager__delete(x.__ptr)
 })
 
-ResourceManager.prototype.getGlobalPool = function() {
-	var retVal = new ResourcePool()
-	retVal.__ptr = Polycode.ResourceManager_getGlobalPool(this.__ptr)
-	return retVal
-}
-
-ResourceManager.prototype.getResourcePoolByName = function(name) {
-	var retVal = new ResourcePool()
-	retVal.__ptr = Polycode.ResourceManager_getResourcePoolByName(this.__ptr, name)
-	return retVal
-}
-
-ResourceManager.prototype.addResourceLoader = function(loader) {
-	Polycode.ResourceManager_addResourceLoader(this.__ptr, loader.__ptr)
-}
-
-ResourceManager.prototype.getResourceLoaderForExtension = function(extension) {
-	var retVal = new ResourceLoader()
-	retVal.__ptr = Polycode.ResourceManager_getResourceLoaderForExtension(this.__ptr, extension)
-	return retVal
-}
-
-ResourceManager.prototype.removeResourceLoader = function(loader) {
-	Polycode.ResourceManager_removeResourceLoader(this.__ptr, loader.__ptr)
-}
-
 ResourceManager.prototype.getNumResourceLoaders = function() {
 	return Polycode.ResourceManager_getNumResourceLoaders(this.__ptr)
 }
 
-ResourceManager.prototype.getResourceLoaderAtIndex = function(index) {
-	var retVal = new ResourceLoader()
-	retVal.__ptr = Polycode.ResourceManager_getResourceLoaderAtIndex(this.__ptr, index)
-	return retVal
-}
-
-ResourceManager.prototype.addResourcePool = function(pool) {
-	Polycode.ResourceManager_addResourcePool(this.__ptr, pool.__ptr)
-}
-
-ResourceManager.prototype.removeResourcePool = function(pool) {
-	Polycode.ResourceManager_removeResourcePool(this.__ptr, pool.__ptr)
-}
-
 ResourceManager.prototype.getResources = function(resourceType) {
 	Polycode.ResourceManager_getResources(this.__ptr, resourceType)
 }
@@ -68,14 +28,6 @@ ResourceManager.prototype.removeResource = function(resource) {
 	Polycode.ResourceManager_removeResource(this.__ptr, resource)
 }
 
-ResourceManager.prototype.subscribeToResourcePool = function(pool) {
-	Polycode.ResourceManager_subscribeToResourcePool(this.__ptr, pool.__ptr)
-}
-
-ResourceManager.prototype.unsubscibeFromResourcePool = function(pool) {
-	Polycode.ResourceManager_unsubscibeFromResourcePool(this.__ptr, pool.__ptr)
-}
-
 ResourceManager.prototype.Update = function(elapsed) {
 	Polycode.ResourceManager_Update(this.__ptr, elapsed)
 }

+ 7 - 11
bindings/javascript/Polycode/ResourcePool.js

@@ -1,8 +1,8 @@
 require('Polycode/EventDispatcher')
 
-function ResourcePool(name,fallbackPool) {
+function ResourcePool() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.ResourcePool(name,fallbackPool)
+		this.__ptr = Polycode.ResourcePool()
 	}
 	Object.defineProperties(this, {
 		'reloadResourcesOnModify': { enumerable: true, configurable: true, get: ResourcePool.prototype.__get_reloadResourcesOnModify, set: ResourcePool.prototype.__set_reloadResourcesOnModify},
@@ -54,10 +54,6 @@ Duktape.fin(ResourcePool.prototype, function (x) {
 	Polycode.ResourcePool__delete(x.__ptr)
 })
 
-ResourcePool.prototype.setFallbackPool = function(pool) {
-	Polycode.ResourcePool_setFallbackPool(this.__ptr, pool.__ptr)
-}
-
 ResourcePool.prototype.addResource = function(resource) {
 	Polycode.ResourcePool_addResource(this.__ptr, resource)
 }
@@ -79,19 +75,19 @@ ResourcePool.prototype.loadResourcesFromMaterialFile = function(path) {
 }
 
 ResourcePool.prototype.loadResource = function(path) {
-	var retVal = new Resource()
+	var retVal = new Resource("__skip_ptr__")
 	retVal.__ptr = Polycode.ResourcePool_loadResource(this.__ptr, path)
 	return retVal
 }
 
 ResourcePool.prototype.loadResourceWithName = function(path,name) {
-	var retVal = new Resource()
+	var retVal = new Resource("__skip_ptr__")
 	retVal.__ptr = Polycode.ResourcePool_loadResourceWithName(this.__ptr, path, name)
 	return retVal
 }
 
 ResourcePool.prototype.getResource = function(resourceType,resourceName) {
-	var retVal = new Resource()
+	var retVal = new Resource("__skip_ptr__")
 	retVal.__ptr = Polycode.ResourcePool_getResource(this.__ptr, resourceType, resourceName)
 	return retVal
 }
@@ -105,13 +101,13 @@ ResourcePool.prototype.setName = function(name) {
 }
 
 ResourcePool.prototype.loadFont = function(name,path) {
-	var retVal = new Font()
+	var retVal = new Font("__skip_ptr__")
 	retVal.__ptr = Polycode.ResourcePool_loadFont(this.__ptr, name, path)
 	return retVal
 }
 
 ResourcePool.prototype.getResourceByPath = function(resourcePath) {
-	var retVal = new Resource()
+	var retVal = new Resource("__skip_ptr__")
 	retVal.__ptr = Polycode.ResourcePool_getResourceByPath(this.__ptr, resourcePath)
 	return retVal
 }

+ 7 - 67
bindings/javascript/Polycode/Scene.js

@@ -1,8 +1,8 @@
 require('Polycode/EventDispatcher')
 
-function Scene(sceneType,virtualScene) {
+function Scene(sceneType) {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.Scene(sceneType,virtualScene)
+		this.__ptr = Polycode.Scene(sceneType)
 	}
 	Object.defineProperties(this, {
 		'clearColor': { enumerable: true, configurable: true, get: Scene.prototype.__get_clearColor, set: Scene.prototype.__set_clearColor},
@@ -26,7 +26,7 @@ Scene.SCENE_2D_TOPLEFT = 2
 Scene.prototype = Object.create(EventDispatcher.prototype)
 
 Scene.prototype.__get_clearColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Scene__get_clearColor(this.__ptr)
 	return retVal
 }
@@ -52,7 +52,7 @@ Scene.prototype.__set_useClearDepth = function(val) {
 }
 
 Scene.prototype.__get_ambientColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Scene__get_ambientColor(this.__ptr)
 	return retVal
 }
@@ -62,7 +62,7 @@ Scene.prototype.__set_ambientColor = function(val) {
 }
 
 Scene.prototype.__get_fogColor = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Scene__get_fogColor(this.__ptr)
 	return retVal
 }
@@ -88,7 +88,7 @@ Scene.prototype.__set_ownsChildren = function(val) {
 }
 
 Scene.prototype.__get_rootEntity = function() {
-	var retVal = new Entity()
+	var retVal = new Entity("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Scene__get_rootEntity(this.__ptr)
 	return retVal
 }
@@ -98,7 +98,7 @@ Scene.prototype.__set_rootEntity = function(val) {
 }
 
 Scene.prototype.__get_sceneMouseRect = function() {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = 	Polycode.Scene__get_sceneMouseRect(this.__ptr)
 	return retVal
 }
@@ -124,34 +124,6 @@ Scene.prototype.__set_constrainPickingToViewport = function(val) {
 }
 
 
-Scene.prototype.addEntity = function(entity) {
-	Polycode.Scene_addEntity(this.__ptr, entity.__ptr)
-}
-
-Scene.prototype.addChild = function(entity) {
-	Polycode.Scene_addChild(this.__ptr, entity.__ptr)
-}
-
-Scene.prototype.removeEntity = function(entity) {
-	Polycode.Scene_removeEntity(this.__ptr, entity.__ptr)
-}
-
-Scene.prototype.getDefaultCamera = function() {
-	var retVal = new Camera()
-	retVal.__ptr = Polycode.Scene_getDefaultCamera(this.__ptr)
-	return retVal
-}
-
-Scene.prototype.getActiveCamera = function() {
-	var retVal = new Camera()
-	retVal.__ptr = Polycode.Scene_getActiveCamera(this.__ptr)
-	return retVal
-}
-
-Scene.prototype.setActiveCamera = function(camera) {
-	Polycode.Scene_setActiveCamera(this.__ptr, camera.__ptr)
-}
-
 Scene.prototype.enableFog = function(enable) {
 	Polycode.Scene_enableFog(this.__ptr, enable)
 }
@@ -172,14 +144,6 @@ Scene.prototype.Update = function() {
 	Polycode.Scene_Update(this.__ptr)
 }
 
-Scene.prototype.setVirtual = function(val) {
-	Polycode.Scene_setVirtual(this.__ptr, val)
-}
-
-Scene.prototype.isVirtual = function() {
-	return Polycode.Scene_isVirtual(this.__ptr)
-}
-
 Scene.prototype.isEnabled = function() {
 	return Polycode.Scene_isEnabled(this.__ptr)
 }
@@ -188,38 +152,14 @@ Scene.prototype.setEnabled = function(enabled) {
 	Polycode.Scene_setEnabled(this.__ptr, enabled)
 }
 
-Scene.prototype.Render = function(targetCamera,targetFramebuffer,overrideMaterial,sendLights) {
-	Polycode.Scene_Render(this.__ptr, targetCamera.__ptr, targetFramebuffer, overrideMaterial, sendLights)
-}
-
 Scene.prototype.setOverrideMaterial = function(material) {
 	Polycode.Scene_setOverrideMaterial(this.__ptr, material)
 }
 
-Scene.prototype.projectRayFromCameraAndViewportCoordinate = function(camera,coordinate) {
-	var retVal = new Ray()
-	retVal.__ptr = Polycode.Scene_projectRayFromCameraAndViewportCoordinate(this.__ptr, camera.__ptr, coordinate)
-	return retVal
-}
-
-Scene.prototype.addLight = function(light) {
-	Polycode.Scene_addLight(this.__ptr, light.__ptr)
-}
-
-Scene.prototype.removeLight = function(light) {
-	Polycode.Scene_removeLight(this.__ptr, light.__ptr)
-}
-
 Scene.prototype.getNumLights = function() {
 	return Polycode.Scene_getNumLights(this.__ptr)
 }
 
-Scene.prototype.getLight = function(index) {
-	var retVal = new SceneLight()
-	retVal.__ptr = Polycode.Scene_getLight(this.__ptr, index)
-	return retVal
-}
-
 Scene.prototype.doVisibilityChecking = function(val) {
 	Polycode.Scene_doVisibilityChecking(this.__ptr, val)
 }

+ 1 - 23
bindings/javascript/Polycode/SceneCurve.js

@@ -36,14 +36,8 @@ Duktape.fin(SceneCurve.prototype, function (x) {
 	Polycode.SceneCurve__delete(x.__ptr)
 })
 
-SceneCurve.prototype.SceneCurveWithCurve = function(curve) {
-	var retVal = new SceneCurve()
-	retVal.__ptr = Polycode.SceneCurve_SceneCurveWithCurve(curve.__ptr)
-	return retVal
-}
-
 SceneCurve.prototype.getWorldPointAt = function(t) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneCurve_getWorldPointAt(this.__ptr, t)
 	return retVal
 }
@@ -51,19 +45,3 @@ SceneCurve.prototype.getWorldPointAt = function(t) {
 SceneCurve.prototype.Update = function() {
 	Polycode.SceneCurve_Update(this.__ptr)
 }
-
-SceneCurve.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneCurve_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneCurve.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneCurve_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
-SceneCurve.prototype.getCurve = function() {
-	var retVal = new BezierCurve()
-	retVal.__ptr = Polycode.SceneCurve_getCurve(this.__ptr)
-	return retVal
-}

+ 3 - 69
bindings/javascript/Polycode/SceneEntityInstance.js

@@ -1,8 +1,8 @@
 require('Polycode/Entity')
 
-function SceneEntityInstance(parentScene,fileName) {
+function SceneEntityInstance(fileName) {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneEntityInstance(parentScene,fileName)
+		this.__ptr = Polycode.SceneEntityInstance(fileName)
 	}
 	Object.defineProperties(this, {
 		'cloneUsingReload': { enumerable: true, configurable: true, get: SceneEntityInstance.prototype.__get_cloneUsingReload, set: SceneEntityInstance.prototype.__set_cloneUsingReload},
@@ -30,22 +30,6 @@ SceneEntityInstance.prototype.__set_fileName = function(val) {
 }
 
 
-SceneEntityInstance.prototype.BlankSceneEntityInstance = function(parentScene) {
-	var retVal = new SceneEntityInstance()
-	retVal.__ptr = Polycode.SceneEntityInstance_BlankSceneEntityInstance(parentScene.__ptr)
-	return retVal
-}
-
-SceneEntityInstance.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneEntityInstance_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneEntityInstance.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneEntityInstance_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
 SceneEntityInstance.prototype.reloadEntityInstance = function() {
 	Polycode.SceneEntityInstance_reloadEntityInstance(this.__ptr)
 }
@@ -54,54 +38,20 @@ SceneEntityInstance.prototype.clearInstance = function() {
 	Polycode.SceneEntityInstance_clearInstance(this.__ptr)
 }
 
-SceneEntityInstance.prototype.parseObjectIntoCurve = function(entry,curve) {
-	Polycode.SceneEntityInstance_parseObjectIntoCurve(this.__ptr, entry.__ptr, curve.__ptr)
-}
-
-SceneEntityInstance.prototype.loadObjectEntryIntoEntity = function(entry,targetEntity,entityFileVersion) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneEntityInstance_loadObjectEntryIntoEntity(this.__ptr, entry.__ptr, targetEntity.__ptr, entityFileVersion)
-	return retVal
-}
-
 SceneEntityInstance.prototype.loadFromFile = function(fileName) {
 	return Polycode.SceneEntityInstance_loadFromFile(this.__ptr, fileName)
 }
 
-SceneEntityInstance.prototype.applySceneMesh = function(entry,sceneMesh) {
-	Polycode.SceneEntityInstance_applySceneMesh(this.__ptr, entry.__ptr, sceneMesh.__ptr)
-}
-
-SceneEntityInstance.prototype.linkResourcePool = function(pool) {
-	Polycode.SceneEntityInstance_linkResourcePool(this.__ptr, pool.__ptr)
-}
-
 SceneEntityInstance.prototype.getNumLinkedResourePools = function() {
 	return Polycode.SceneEntityInstance_getNumLinkedResourePools(this.__ptr)
 }
 
-SceneEntityInstance.prototype.getLinkedResourcePoolAtIndex = function(index) {
-	var retVal = new ResourcePool()
-	retVal.__ptr = Polycode.SceneEntityInstance_getLinkedResourcePoolAtIndex(this.__ptr, index)
-	return retVal
-}
-
-SceneEntityInstance.prototype.unlinkResourcePool = function(pool) {
-	Polycode.SceneEntityInstance_unlinkResourcePool(this.__ptr, pool.__ptr)
-}
-
 SceneEntityInstance.prototype.getResourceEntry = function() {
-	var retVal = new SceneEntityInstanceResourceEntry()
+	var retVal = new SceneEntityInstanceResourceEntry("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneEntityInstance_getResourceEntry(this.__ptr)
 	return retVal
 }
 
-SceneEntityInstance.prototype.getTopLevelResourcePool = function() {
-	var retVal = new ResourcePool()
-	retVal.__ptr = Polycode.SceneEntityInstance_getTopLevelResourcePool(this.__ptr)
-	return retVal
-}
-
 SceneEntityInstance.prototype.hasLayerID = function(layerID) {
 	return Polycode.SceneEntityInstance_hasLayerID(this.__ptr, layerID)
 }
@@ -110,22 +60,6 @@ SceneEntityInstance.prototype.getNumLayers = function() {
 	return Polycode.SceneEntityInstance_getNumLayers(this.__ptr)
 }
 
-SceneEntityInstance.prototype.getLayerAtIndex = function(index) {
-	var retVal = new SceneEntityInstanceLayer()
-	retVal.__ptr = Polycode.SceneEntityInstance_getLayerAtIndex(this.__ptr, index)
-	return retVal
-}
-
-SceneEntityInstance.prototype.removeLayer = function(layer) {
-	Polycode.SceneEntityInstance_removeLayer(this.__ptr, layer.__ptr)
-}
-
-SceneEntityInstance.prototype.createNewLayer = function(name) {
-	var retVal = new SceneEntityInstanceLayer()
-	retVal.__ptr = Polycode.SceneEntityInstance_createNewLayer(this.__ptr, name)
-	return retVal
-}
-
 SceneEntityInstance.prototype.getFileName = function() {
 	return Polycode.SceneEntityInstance_getFileName(this.__ptr)
 }

+ 4 - 15
bindings/javascript/Polycode/SceneEntityInstanceLayer.js

@@ -1,12 +1,11 @@
-function SceneEntityInstanceLayer(instance,name) {
+function SceneEntityInstanceLayer() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneEntityInstanceLayer(instance,name)
+		this.__ptr = Polycode.SceneEntityInstanceLayer()
 	}
 	Object.defineProperties(this, {
 		'name': { enumerable: true, configurable: true, get: SceneEntityInstanceLayer.prototype.__get_name, set: SceneEntityInstanceLayer.prototype.__set_name},
 		'layerID': { enumerable: true, configurable: true, get: SceneEntityInstanceLayer.prototype.__get_layerID, set: SceneEntityInstanceLayer.prototype.__set_layerID},
-		'visible': { enumerable: true, configurable: true, get: SceneEntityInstanceLayer.prototype.__get_visible, set: SceneEntityInstanceLayer.prototype.__set_visible},
-		'instance': { enumerable: true, configurable: true, get: SceneEntityInstanceLayer.prototype.__get_instance, set: SceneEntityInstanceLayer.prototype.__set_instance}
+		'visible': { enumerable: true, configurable: true, get: SceneEntityInstanceLayer.prototype.__get_visible, set: SceneEntityInstanceLayer.prototype.__set_visible}
 	})
 }
 
@@ -20,7 +19,7 @@ SceneEntityInstanceLayer.prototype.__set_name = function(val) {
 }
 
 SceneEntityInstanceLayer.prototype.__get_layerID = function() {
-	var retVal = new char()
+	var retVal = new char("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneEntityInstanceLayer__get_layerID(this.__ptr)
 	return retVal
 }
@@ -37,16 +36,6 @@ SceneEntityInstanceLayer.prototype.__set_visible = function(val) {
 	Polycode.SceneEntityInstanceLayer__set_visible(this.__ptr, val)
 }
 
-SceneEntityInstanceLayer.prototype.__get_instance = function() {
-	var retVal = new SceneEntityInstance()
-	retVal.__ptr = 	Polycode.SceneEntityInstanceLayer__get_instance(this.__ptr)
-	return retVal
-}
-
-SceneEntityInstanceLayer.prototype.__set_instance = function(val) {
-	Polycode.SceneEntityInstanceLayer__set_instance(this.__ptr, val.__ptr)
-}
-
 Duktape.fin(SceneEntityInstanceLayer.prototype, function (x) {
 	if (x === SceneEntityInstanceLayer.prototype) {
 		return;

+ 2 - 8
bindings/javascript/Polycode/SceneEntityInstanceResourceEntry.js

@@ -1,8 +1,8 @@
 require('Polycode/Resource')
 
-function SceneEntityInstanceResourceEntry(instance) {
+function SceneEntityInstanceResourceEntry() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneEntityInstanceResourceEntry(instance)
+		this.__ptr = Polycode.SceneEntityInstanceResourceEntry()
 	}
 }
 
@@ -16,12 +16,6 @@ Duktape.fin(SceneEntityInstanceResourceEntry.prototype, function (x) {
 	Polycode.SceneEntityInstanceResourceEntry__delete(x.__ptr)
 })
 
-SceneEntityInstanceResourceEntry.prototype.getInstance = function() {
-	var retVal = new SceneEntityInstance()
-	retVal.__ptr = Polycode.SceneEntityInstanceResourceEntry_getInstance(this.__ptr)
-	return retVal
-}
-
 SceneEntityInstanceResourceEntry.prototype.reloadResource = function() {
 	Polycode.SceneEntityInstanceResourceEntry_reloadResource(this.__ptr)
 }

+ 0 - 20
bindings/javascript/Polycode/SceneLabel.js

@@ -33,10 +33,6 @@ SceneLabel.prototype.getLabelActualHeight = function() {
 	return Polycode.SceneLabel_getLabelActualHeight(this.__ptr)
 }
 
-SceneLabel.prototype.Render = function(buffer) {
-	Polycode.SceneLabel_Render(this.__ptr, buffer.__ptr)
-}
-
 SceneLabel.prototype.getTextWidthForString = function(text) {
 	return Polycode.SceneLabel_getTextWidthForString(this.__ptr, text)
 }
@@ -45,22 +41,6 @@ SceneLabel.prototype.setText = function(newText) {
 	Polycode.SceneLabel_setText(this.__ptr, newText)
 }
 
-SceneLabel.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneLabel_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneLabel.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneLabel_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
 SceneLabel.prototype.updateFromLabel = function() {
 	Polycode.SceneLabel_updateFromLabel(this.__ptr)
 }
-
-SceneLabel.prototype.getLabel = function() {
-	var retVal = new Label()
-	retVal.__ptr = Polycode.SceneLabel_getLabel(this.__ptr)
-	return retVal
-}

+ 4 - 34
bindings/javascript/Polycode/SceneLight.js

@@ -1,8 +1,8 @@
 require('Polycode/Entity')
 
-function SceneLight(type,parentScene,intensity,constantAttenuation,linearAttenuation,quadraticAttenuation) {
+function SceneLight(type,intensity,constantAttenuation,linearAttenuation,quadraticAttenuation) {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneLight(type,parentScene,intensity,constantAttenuation,linearAttenuation,quadraticAttenuation)
+		this.__ptr = Polycode.SceneLight(type,intensity,constantAttenuation,linearAttenuation,quadraticAttenuation)
 	}
 }
 
@@ -40,12 +40,8 @@ SceneLight.prototype.getType = function() {
 	return Polycode.SceneLight_getType(this.__ptr)
 }
 
-SceneLight.prototype.renderDepthMap = function(scene) {
-	Polycode.SceneLight_renderDepthMap(this.__ptr, scene.__ptr)
-}
-
 SceneLight.prototype.getZBufferTexture = function() {
-	var retVal = new Texture()
+	var retVal = new Texture("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneLight_getZBufferTexture(this.__ptr)
 	return retVal
 }
@@ -110,34 +106,8 @@ SceneLight.prototype.setLightType = function(lightType) {
 	Polycode.SceneLight_setLightType(this.__ptr, lightType)
 }
 
-SceneLight.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneLight_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneLight.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneLight_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
-SceneLight.prototype.getParentScene = function() {
-	var retVal = new Scene()
-	retVal.__ptr = Polycode.SceneLight_getParentScene(this.__ptr)
-	return retVal
-}
-
-SceneLight.prototype.setParentScene = function(scene) {
-	Polycode.SceneLight_setParentScene(this.__ptr, scene.__ptr)
-}
-
-SceneLight.prototype.getSpotlightCamera = function() {
-	var retVal = new Camera()
-	retVal.__ptr = Polycode.SceneLight_getSpotlightCamera(this.__ptr)
-	return retVal
-}
-
 SceneLight.prototype.getLightInfo = function() {
-	var retVal = new LightInfo()
+	var retVal = new LightInfo("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneLight_getLightInfo(this.__ptr)
 	return retVal
 }

+ 2 - 8
bindings/javascript/Polycode/SceneLine.js

@@ -1,8 +1,8 @@
 require('Polycode/SceneMesh')
 
-function SceneLine(ent1,ent2) {
+function SceneLine(startp,endp) {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneLine(ent1,ent2)
+		this.__ptr = Polycode.SceneLine(startp,endp)
 	}
 }
 
@@ -10,12 +10,6 @@ function SceneLine(ent1,ent2) {
 SceneLine.prototype = Object.create(SceneMesh.prototype)
 
 
-SceneLine.prototype.SceneLineWithPositions = function(startp,endp) {
-	var retVal = new SceneLine()
-	retVal.__ptr = Polycode.SceneLine_SceneLineWithPositions(startp, endp)
-	return retVal
-}
-
 SceneLine.prototype.setStart = function(startp) {
 	Polycode.SceneLine_setStart(this.__ptr, startp)
 }

+ 0 - 20
bindings/javascript/Polycode/SceneManager.js

@@ -12,14 +12,6 @@ Duktape.fin(SceneManager.prototype, function (x) {
 	Polycode.SceneManager__delete(x.__ptr)
 })
 
-SceneManager.prototype.addScene = function(newScene) {
-	Polycode.SceneManager_addScene(this.__ptr, newScene.__ptr)
-}
-
-SceneManager.prototype.removeScene = function(scene) {
-	Polycode.SceneManager_removeScene(this.__ptr, scene.__ptr)
-}
-
 SceneManager.prototype.Update = function() {
 	Polycode.SceneManager_Update(this.__ptr)
 }
@@ -35,15 +27,3 @@ SceneManager.prototype.Render = function(viewport) {
 SceneManager.prototype.renderVirtual = function() {
 	Polycode.SceneManager_renderVirtual(this.__ptr)
 }
-
-SceneManager.prototype.registerRenderTexture = function(renderTexture) {
-	Polycode.SceneManager_registerRenderTexture(this.__ptr, renderTexture.__ptr)
-}
-
-SceneManager.prototype.unregisterRenderTexture = function(renderTexture) {
-	Polycode.SceneManager_unregisterRenderTexture(this.__ptr, renderTexture.__ptr)
-}
-
-SceneManager.prototype.setRenderer = function(renderer) {
-	Polycode.SceneManager_setRenderer(this.__ptr, renderer.__ptr)
-}

+ 5 - 29
bindings/javascript/Polycode/SceneMesh.js

@@ -75,18 +75,8 @@ SceneMesh.prototype.__set_sendBoneMatricesToMaterial = function(val) {
 }
 
 
-SceneMesh.prototype.SceneMeshFromMesh = function(mesh) {
-	var retVal = new SceneMesh()
-	retVal.__ptr = Polycode.SceneMesh_SceneMeshFromMesh(mesh)
-	return retVal
-}
-
-SceneMesh.prototype.Render = function(buffer) {
-	Polycode.SceneMesh_Render(this.__ptr, buffer.__ptr)
-}
-
 SceneMesh.prototype.getShaderPass = function(index) {
-	var retVal = new ShaderPass()
+	var retVal = new ShaderPass("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneMesh_getShaderPass(this.__ptr, index)
 	return retVal
 }
@@ -104,19 +94,19 @@ SceneMesh.prototype.removeShaderPass = function(shaderIndex) {
 }
 
 SceneMesh.prototype.getMesh = function() {
-	var retVal = new Mesh()
+	var retVal = new Mesh("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneMesh_getMesh(this.__ptr)
 	return retVal
 }
 
 SceneMesh.prototype.getMaterial = function() {
-	var retVal = new Material()
+	var retVal = new Material("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneMesh_getMaterial(this.__ptr)
 	return retVal
 }
 
 SceneMesh.prototype.loadSkeleton = function(fileName) {
-	var retVal = new Skeleton()
+	var retVal = new Skeleton("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneMesh_loadSkeleton(this.__ptr, fileName)
 	return retVal
 }
@@ -129,10 +119,6 @@ SceneMesh.prototype.setMaterial = function(material) {
 	Polycode.SceneMesh_setMaterial(this.__ptr, material)
 }
 
-SceneMesh.prototype.setMaterialByName = function(materialName,resourcePool) {
-	Polycode.SceneMesh_setMaterialByName(this.__ptr, materialName, resourcePool.__ptr)
-}
-
 SceneMesh.prototype.setMesh = function(mesh) {
 	Polycode.SceneMesh_setMesh(this.__ptr, mesh)
 }
@@ -142,7 +128,7 @@ SceneMesh.prototype.setSkeleton = function(skeleton) {
 }
 
 SceneMesh.prototype.getSkeleton = function() {
-	var retVal = new Skeleton()
+	var retVal = new Skeleton("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneMesh_getSkeleton(this.__ptr)
 	return retVal
 }
@@ -174,13 +160,3 @@ SceneMesh.prototype.setForceMaterial = function(forceMaterial) {
 SceneMesh.prototype.getForceMaterial = function() {
 	return Polycode.SceneMesh_getForceMaterial(this.__ptr)
 }
-
-SceneMesh.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneMesh_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneMesh.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneMesh_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}

+ 5 - 5
bindings/javascript/Polycode/SceneParticle.js

@@ -25,7 +25,7 @@ SceneParticle.prototype.__set_lifetime = function(val) {
 }
 
 SceneParticle.prototype.__get_position = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticle__get_position(this.__ptr)
 	return retVal
 }
@@ -35,7 +35,7 @@ SceneParticle.prototype.__set_position = function(val) {
 }
 
 SceneParticle.prototype.__get_velocity = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticle__get_velocity(this.__ptr)
 	return retVal
 }
@@ -45,7 +45,7 @@ SceneParticle.prototype.__set_velocity = function(val) {
 }
 
 SceneParticle.prototype.__get_perlinPos = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticle__get_perlinPos(this.__ptr)
 	return retVal
 }
@@ -55,7 +55,7 @@ SceneParticle.prototype.__set_perlinPos = function(val) {
 }
 
 SceneParticle.prototype.__get_rotation = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticle__get_rotation(this.__ptr)
 	return retVal
 }
@@ -81,7 +81,7 @@ SceneParticle.prototype.__set_scale = function(val) {
 }
 
 SceneParticle.prototype.__get_color = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticle__get_color(this.__ptr)
 	return retVal
 }

+ 12 - 40
bindings/javascript/Polycode/SceneParticleEmitter.js

@@ -31,7 +31,7 @@ SceneParticleEmitter.prototype.__set_useScaleCurve = function(val) {
 }
 
 SceneParticleEmitter.prototype.__get_scaleCurve = function() {
-	var retVal = new BezierCurve()
+	var retVal = new BezierCurve("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticleEmitter__get_scaleCurve(this.__ptr)
 	return retVal
 }
@@ -49,7 +49,7 @@ SceneParticleEmitter.prototype.__set_useColorCurves = function(val) {
 }
 
 SceneParticleEmitter.prototype.__get_colorCurveR = function() {
-	var retVal = new BezierCurve()
+	var retVal = new BezierCurve("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticleEmitter__get_colorCurveR(this.__ptr)
 	return retVal
 }
@@ -59,7 +59,7 @@ SceneParticleEmitter.prototype.__set_colorCurveR = function(val) {
 }
 
 SceneParticleEmitter.prototype.__get_colorCurveG = function() {
-	var retVal = new BezierCurve()
+	var retVal = new BezierCurve("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticleEmitter__get_colorCurveG(this.__ptr)
 	return retVal
 }
@@ -69,7 +69,7 @@ SceneParticleEmitter.prototype.__set_colorCurveG = function(val) {
 }
 
 SceneParticleEmitter.prototype.__get_colorCurveB = function() {
-	var retVal = new BezierCurve()
+	var retVal = new BezierCurve("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticleEmitter__get_colorCurveB(this.__ptr)
 	return retVal
 }
@@ -79,7 +79,7 @@ SceneParticleEmitter.prototype.__set_colorCurveB = function(val) {
 }
 
 SceneParticleEmitter.prototype.__get_colorCurveA = function() {
-	var retVal = new BezierCurve()
+	var retVal = new BezierCurve("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticleEmitter__get_colorCurveA(this.__ptr)
 	return retVal
 }
@@ -89,7 +89,7 @@ SceneParticleEmitter.prototype.__set_colorCurveA = function(val) {
 }
 
 SceneParticleEmitter.prototype.__get_colorDeviation = function() {
-	var retVal = new Color()
+	var retVal = new Color("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SceneParticleEmitter__get_colorDeviation(this.__ptr)
 	return retVal
 }
@@ -120,7 +120,7 @@ SceneParticleEmitter.prototype.setDirectionDeviation = function(newDeviation) {
 }
 
 SceneParticleEmitter.prototype.getDirectionDeviation = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneParticleEmitter_getDirectionDeviation(this.__ptr)
 	return retVal
 }
@@ -130,7 +130,7 @@ SceneParticleEmitter.prototype.setEmitterSize = function(newSize) {
 }
 
 SceneParticleEmitter.prototype.getEmitterSize = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneParticleEmitter_getEmitterSize(this.__ptr)
 	return retVal
 }
@@ -140,7 +140,7 @@ SceneParticleEmitter.prototype.setGravity = function(newGravity) {
 }
 
 SceneParticleEmitter.prototype.getGravity = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneParticleEmitter_getGravity(this.__ptr)
 	return retVal
 }
@@ -149,18 +149,10 @@ SceneParticleEmitter.prototype.fixedUpdate = function() {
 	Polycode.SceneParticleEmitter_fixedUpdate(this.__ptr)
 }
 
-SceneParticleEmitter.prototype.Render = function(buffer) {
-	Polycode.SceneParticleEmitter_Render(this.__ptr, buffer.__ptr)
-}
-
 SceneParticleEmitter.prototype.updateParticles = function() {
 	Polycode.SceneParticleEmitter_updateParticles(this.__ptr)
 }
 
-SceneParticleEmitter.prototype.rebuildParticles = function(buffer) {
-	Polycode.SceneParticleEmitter_rebuildParticles(this.__ptr, buffer.__ptr)
-}
-
 SceneParticleEmitter.prototype.triggerParticles = function(allAtOnce) {
 	Polycode.SceneParticleEmitter_triggerParticles(this.__ptr, allAtOnce)
 }
@@ -210,7 +202,7 @@ SceneParticleEmitter.prototype.setPerlinValue = function(perlinValue) {
 }
 
 SceneParticleEmitter.prototype.getPerlinValue = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneParticleEmitter_getPerlinValue(this.__ptr)
 	return retVal
 }
@@ -236,7 +228,7 @@ SceneParticleEmitter.prototype.setParticleRotationSpeed = function(rotationSpeed
 }
 
 SceneParticleEmitter.prototype.getParticleRotationSpeed = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneParticleEmitter_getParticleRotationSpeed(this.__ptr)
 	return retVal
 }
@@ -246,7 +238,7 @@ SceneParticleEmitter.prototype.setParticleDirection = function(direction) {
 }
 
 SceneParticleEmitter.prototype.getParticleDirection = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneParticleEmitter_getParticleDirection(this.__ptr)
 	return retVal
 }
@@ -259,20 +251,10 @@ SceneParticleEmitter.prototype.getLoopParticles = function() {
 	return Polycode.SceneParticleEmitter_getLoopParticles(this.__ptr)
 }
 
-SceneParticleEmitter.prototype.addSourceMesh = function(mesh) {
-	Polycode.SceneParticleEmitter_addSourceMesh(this.__ptr, mesh.__ptr)
-}
-
 SceneParticleEmitter.prototype.getNumSourceMeshes = function() {
 	return Polycode.SceneParticleEmitter_getNumSourceMeshes(this.__ptr)
 }
 
-SceneParticleEmitter.prototype.getSourcesMeshAtIndex = function(index) {
-	var retVal = new Mesh()
-	retVal.__ptr = Polycode.SceneParticleEmitter_getSourcesMeshAtIndex(this.__ptr, index)
-	return retVal
-}
-
 SceneParticleEmitter.prototype.removeSourceMeshAtIndex = function(index) {
 	Polycode.SceneParticleEmitter_removeSourceMeshAtIndex(this.__ptr, index)
 }
@@ -280,13 +262,3 @@ SceneParticleEmitter.prototype.removeSourceMeshAtIndex = function(index) {
 SceneParticleEmitter.prototype.positionParticle = function(index) {
 	Polycode.SceneParticleEmitter_positionParticle(this.__ptr, index)
 }
-
-SceneParticleEmitter.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneParticleEmitter_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneParticleEmitter.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneParticleEmitter_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}

+ 0 - 10
bindings/javascript/Polycode/ScenePrimitive.js

@@ -53,13 +53,3 @@ ScenePrimitive.prototype.getPrimitiveParameter4 = function() {
 ScenePrimitive.prototype.getPrimitiveParameter5 = function() {
 	return Polycode.ScenePrimitive_getPrimitiveParameter5(this.__ptr)
 }
-
-ScenePrimitive.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.ScenePrimitive_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-ScenePrimitive.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.ScenePrimitive_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}

+ 3 - 25
bindings/javascript/Polycode/SceneRenderTexture.js

@@ -1,6 +1,6 @@
-function SceneRenderTexture(targetScene,targetCamera,renderWidth,renderHeight,floatingPoint) {
+function SceneRenderTexture(renderWidth,renderHeight,floatingPoint) {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneRenderTexture(targetScene,targetCamera,renderWidth,renderHeight,floatingPoint)
+		this.__ptr = Polycode.SceneRenderTexture(renderWidth,renderHeight,floatingPoint)
 	}
 	Object.defineProperties(this, {
 		'enabled': { enumerable: true, configurable: true, get: SceneRenderTexture.prototype.__get_enabled, set: SceneRenderTexture.prototype.__set_enabled}
@@ -24,33 +24,11 @@ Duktape.fin(SceneRenderTexture.prototype, function (x) {
 })
 
 SceneRenderTexture.prototype.getTargetTexture = function() {
-	var retVal = new Texture()
+	var retVal = new Texture("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneRenderTexture_getTargetTexture(this.__ptr)
 	return retVal
 }
 
-SceneRenderTexture.prototype.Render = function() {
-	Polycode.SceneRenderTexture_Render(this.__ptr)
-}
-
-SceneRenderTexture.prototype.saveToImage = function() {
-	var retVal = new Image()
-	retVal.__ptr = Polycode.SceneRenderTexture_saveToImage(this.__ptr)
-	return retVal
-}
-
 SceneRenderTexture.prototype.resizeRenderTexture = function(newWidth,newHeight) {
 	Polycode.SceneRenderTexture_resizeRenderTexture(this.__ptr, newWidth, newHeight)
 }
-
-SceneRenderTexture.prototype.getTargetScene = function() {
-	var retVal = new Scene()
-	retVal.__ptr = Polycode.SceneRenderTexture_getTargetScene(this.__ptr)
-	return retVal
-}
-
-SceneRenderTexture.prototype.getTargetCamera = function() {
-	var retVal = new Camera()
-	retVal.__ptr = Polycode.SceneRenderTexture_getTargetCamera(this.__ptr)
-	return retVal
-}

+ 0 - 16
bindings/javascript/Polycode/SceneSound.js

@@ -14,16 +14,6 @@ SceneSound.prototype.Update = function() {
 	Polycode.SceneSound_Update(this.__ptr)
 }
 
-SceneSound.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneSound_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneSound.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneSound_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
 SceneSound.prototype.isDirectionalSound = function() {
 	return Polycode.SceneSound_isDirectionalSound(this.__ptr)
 }
@@ -32,12 +22,6 @@ SceneSound.prototype.setDirectionalSound = function(val) {
 	Polycode.SceneSound_setDirectionalSound(this.__ptr, val)
 }
 
-SceneSound.prototype.getSound = function() {
-	var retVal = new Sound()
-	retVal.__ptr = Polycode.SceneSound_getSound(this.__ptr)
-	return retVal
-}
-
 SceneSound.prototype.setLoopOnLoad = function(val) {
 	Polycode.SceneSound_setLoopOnLoad(this.__ptr, val)
 }

+ 4 - 38
bindings/javascript/Polycode/SceneSprite.js

@@ -1,8 +1,8 @@
 require('Polycode/SceneMesh')
 
-function SceneSprite(spriteSet) {
+function SceneSprite() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SceneSprite(spriteSet)
+		this.__ptr = Polycode.SceneSprite()
 	}
 }
 
@@ -10,32 +10,12 @@ function SceneSprite(spriteSet) {
 SceneSprite.prototype = Object.create(SceneMesh.prototype)
 
 
-SceneSprite.prototype.Clone = function(deepClone,ignoreEditorOnly) {
-	var retVal = new Entity()
-	retVal.__ptr = Polycode.SceneSprite_Clone(this.__ptr, deepClone, ignoreEditorOnly)
-	return retVal
-}
-
-SceneSprite.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
-	Polycode.SceneSprite_applyClone(this.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-}
-
-SceneSprite.prototype.getSpriteSet = function() {
-	var retVal = new SpriteSet()
-	retVal.__ptr = Polycode.SceneSprite_getSpriteSet(this.__ptr)
-	return retVal
-}
-
 SceneSprite.prototype.getCurrentSprite = function() {
-	var retVal = new Sprite()
+	var retVal = new Sprite("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneSprite_getCurrentSprite(this.__ptr)
 	return retVal
 }
 
-SceneSprite.prototype.setSpriteSet = function(spriteSet) {
-	Polycode.SceneSprite_setSpriteSet(this.__ptr, spriteSet.__ptr)
-}
-
 SceneSprite.prototype.setSpriteByName = function(spriteName) {
 	Polycode.SceneSprite_setSpriteByName(this.__ptr, spriteName)
 }
@@ -52,12 +32,8 @@ SceneSprite.prototype.Update = function() {
 	Polycode.SceneSprite_Update(this.__ptr)
 }
 
-SceneSprite.prototype.Render = function(buffer) {
-	Polycode.SceneSprite_Render(this.__ptr, buffer.__ptr)
-}
-
 SceneSprite.prototype.getSpriteBoundingBox = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SceneSprite_getSpriteBoundingBox(this.__ptr)
 	return retVal
 }
@@ -74,20 +50,10 @@ SceneSprite.prototype.setSprite = function(spriteEntry) {
 	Polycode.SceneSprite_setSprite(this.__ptr, spriteEntry)
 }
 
-SceneSprite.prototype.setSpriteState = function(spriteState,startingFrame,playOnce) {
-	Polycode.SceneSprite_setSpriteState(this.__ptr, spriteState.__ptr, startingFrame, playOnce)
-}
-
 SceneSprite.prototype.setSpriteStateByName = function(name,startingFrame,playOnce) {
 	Polycode.SceneSprite_setSpriteStateByName(this.__ptr, name, startingFrame, playOnce)
 }
 
-SceneSprite.prototype.getCurrentSpriteState = function() {
-	var retVal = new SpriteState()
-	retVal.__ptr = Polycode.SceneSprite_getCurrentSpriteState(this.__ptr)
-	return retVal
-}
-
 SceneSprite.prototype.getStartOnRandomFrame = function() {
 	return Polycode.SceneSprite_getStartOnRandomFrame(this.__ptr)
 }

+ 0 - 13
bindings/javascript/Polycode/ScriptInstance.js

@@ -2,22 +2,9 @@ function ScriptInstance() {
 	if(arguments[0] != "__skip_ptr__") {
 		this.__ptr = Polycode.ScriptInstance()
 	}
-	Object.defineProperties(this, {
-		'script': { enumerable: true, configurable: true, get: ScriptInstance.prototype.__get_script, set: ScriptInstance.prototype.__set_script}
-	})
 }
 
 
-ScriptInstance.prototype.__get_script = function() {
-	var retVal = new Script()
-	retVal.__ptr = 	Polycode.ScriptInstance__get_script(this.__ptr)
-	return retVal
-}
-
-ScriptInstance.prototype.__set_script = function(val) {
-	Polycode.ScriptInstance__set_script(this.__ptr, val.__ptr)
-}
-
 Duktape.fin(ScriptInstance.prototype, function (x) {
 	if (x === ScriptInstance.prototype) {
 		return;

+ 0 - 6
bindings/javascript/Polycode/ScriptResourceLoader.js

@@ -11,9 +11,3 @@ Duktape.fin(ScriptResourceLoader.prototype, function (x) {
 	}
 	Polycode.ScriptResourceLoader__delete(x.__ptr)
 })
-
-ScriptResourceLoader.prototype.loadResource = function(path,targetPool) {
-	var retVal = new Resource()
-	retVal.__ptr = Polycode.ScriptResourceLoader_loadResource(this.__ptr, path, targetPool.__ptr)
-	return retVal
-}

+ 0 - 12
bindings/javascript/Polycode/Shader.js

@@ -63,18 +63,6 @@ Shader.prototype.getName = function() {
 	return Polycode.Shader_getName(this.__ptr)
 }
 
-Shader.prototype.getParamPointer = function(name) {
-	var retVal = new ProgramParam()
-	retVal.__ptr = Polycode.Shader_getParamPointer(this.__ptr, name)
-	return retVal
-}
-
-Shader.prototype.getAttribPointer = function(name) {
-	var retVal = new ProgramAttribute()
-	retVal.__ptr = Polycode.Shader_getAttribPointer(this.__ptr, name)
-	return retVal
-}
-
 Shader.prototype.reload = function() {
 	Polycode.Shader_reload(this.__ptr)
 }

+ 5 - 84
bindings/javascript/Polycode/ShaderBinding.js

@@ -2,22 +2,9 @@ function ShaderBinding() {
 	if(arguments[0] != "__skip_ptr__") {
 		this.__ptr = Polycode.ShaderBinding()
 	}
-	Object.defineProperties(this, {
-		'accessMutex': { enumerable: true, configurable: true, get: ShaderBinding.prototype.__get_accessMutex, set: ShaderBinding.prototype.__set_accessMutex}
-	})
 }
 
 
-ShaderBinding.prototype.__get_accessMutex = function() {
-	var retVal = new CoreMutex()
-	retVal.__ptr = 	Polycode.ShaderBinding__get_accessMutex(this.__ptr)
-	return retVal
-}
-
-ShaderBinding.prototype.__set_accessMutex = function(val) {
-	Polycode.ShaderBinding__set_accessMutex(this.__ptr, val.__ptr)
-}
-
 Duktape.fin(ShaderBinding.prototype, function (x) {
 	if (x === ShaderBinding.prototype) {
 		return;
@@ -25,24 +12,14 @@ Duktape.fin(ShaderBinding.prototype, function (x) {
 	Polycode.ShaderBinding__delete(x.__ptr)
 })
 
-ShaderBinding.prototype.copyTo = function(targetBinding) {
-	Polycode.ShaderBinding_copyTo(this.__ptr, targetBinding.__ptr)
-}
-
 ShaderBinding.prototype.addParam = function(type,name) {
-	var retVal = new LocalShaderParam()
+	var retVal = new LocalShaderParam("__skip_ptr__")
 	retVal.__ptr = Polycode.ShaderBinding_addParam(this.__ptr, type, name)
 	return retVal
 }
 
-ShaderBinding.prototype.addParamPointer = function(type,name,ptr) {
-	var retVal = new LocalShaderParam()
-	retVal.__ptr = Polycode.ShaderBinding_addParamPointer(this.__ptr, type, name, ptr.__ptr)
-	return retVal
-}
-
 ShaderBinding.prototype.addParamFromData = function(name,data) {
-	var retVal = new LocalShaderParam()
+	var retVal = new LocalShaderParam("__skip_ptr__")
 	retVal.__ptr = Polycode.ShaderBinding_addParamFromData(this.__ptr, name, data)
 	return retVal
 }
@@ -52,13 +29,13 @@ ShaderBinding.prototype.getNumLocalParams = function() {
 }
 
 ShaderBinding.prototype.getLocalParam = function(index) {
-	var retVal = new LocalShaderParam()
+	var retVal = new LocalShaderParam("__skip_ptr__")
 	retVal.__ptr = Polycode.ShaderBinding_getLocalParam(this.__ptr, index)
 	return retVal
 }
 
 ShaderBinding.prototype.getLocalParamByName = function(name) {
-	var retVal = new LocalShaderParam()
+	var retVal = new LocalShaderParam("__skip_ptr__")
 	retVal.__ptr = Polycode.ShaderBinding_getLocalParamByName(this.__ptr, name)
 	return retVal
 }
@@ -68,7 +45,7 @@ ShaderBinding.prototype.removeParam = function(name) {
 }
 
 ShaderBinding.prototype.loadTextureForParam = function(paramName,fileName) {
-	var retVal = new Texture()
+	var retVal = new Texture("__skip_ptr__")
 	retVal.__ptr = Polycode.ShaderBinding_loadTextureForParam(this.__ptr, paramName, fileName)
 	return retVal
 }
@@ -85,78 +62,22 @@ ShaderBinding.prototype.getNumAttributeBindings = function() {
 	return Polycode.ShaderBinding_getNumAttributeBindings(this.__ptr)
 }
 
-ShaderBinding.prototype.getAttributeBinding = function(index) {
-	var retVal = new AttributeBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getAttributeBinding(this.__ptr, index)
-	return retVal
-}
-
-ShaderBinding.prototype.addAttributeBinding = function(name,dataArray) {
-	var retVal = new AttributeBinding()
-	retVal.__ptr = Polycode.ShaderBinding_addAttributeBinding(this.__ptr, name, dataArray.__ptr)
-	return retVal
-}
-
-ShaderBinding.prototype.getAttributeBindingByName = function(name) {
-	var retVal = new AttributeBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getAttributeBindingByName(this.__ptr, name)
-	return retVal
-}
-
-ShaderBinding.prototype.addRenderTargetBinding = function(binding) {
-	Polycode.ShaderBinding_addRenderTargetBinding(this.__ptr, binding.__ptr)
-}
-
-ShaderBinding.prototype.removeRenderTargetBinding = function(binding) {
-	Polycode.ShaderBinding_removeRenderTargetBinding(this.__ptr, binding.__ptr)
-}
-
 ShaderBinding.prototype.getNumRenderTargetBindings = function() {
 	return Polycode.ShaderBinding_getNumRenderTargetBindings(this.__ptr)
 }
 
-ShaderBinding.prototype.getRenderTargetBinding = function(index) {
-	var retVal = new RenderTargetBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getRenderTargetBinding(this.__ptr, index)
-	return retVal
-}
-
 ShaderBinding.prototype.getNumInTargetBindings = function() {
 	return Polycode.ShaderBinding_getNumInTargetBindings(this.__ptr)
 }
 
-ShaderBinding.prototype.getInTargetBinding = function(index) {
-	var retVal = new RenderTargetBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getInTargetBinding(this.__ptr, index)
-	return retVal
-}
-
 ShaderBinding.prototype.getNumColorTargetBindings = function() {
 	return Polycode.ShaderBinding_getNumColorTargetBindings(this.__ptr)
 }
 
-ShaderBinding.prototype.getColorTargetBinding = function(index) {
-	var retVal = new RenderTargetBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getColorTargetBinding(this.__ptr, index)
-	return retVal
-}
-
 ShaderBinding.prototype.getNumDepthTargetBindings = function() {
 	return Polycode.ShaderBinding_getNumDepthTargetBindings(this.__ptr)
 }
 
-ShaderBinding.prototype.getDepthTargetBinding = function(index) {
-	var retVal = new RenderTargetBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getDepthTargetBinding(this.__ptr, index)
-	return retVal
-}
-
 ShaderBinding.prototype.getNumOutTargetBindings = function() {
 	return Polycode.ShaderBinding_getNumOutTargetBindings(this.__ptr)
 }
-
-ShaderBinding.prototype.getOutTargetBinding = function(index) {
-	var retVal = new RenderTargetBinding()
-	retVal.__ptr = Polycode.ShaderBinding_getOutTargetBinding(this.__ptr, index)
-	return retVal
-}

+ 1 - 1
bindings/javascript/Polycode/ShaderPass.js

@@ -33,7 +33,7 @@ Duktape.fin(ShaderPass.prototype, function (x) {
 })
 
 ShaderPass.prototype.getShaderBinding = function() {
-	var retVal = new ShaderBinding()
+	var retVal = new ShaderBinding("__skip_ptr__")
 	retVal.__ptr = Polycode.ShaderPass_getShaderBinding(this.__ptr)
 	return retVal
 }

+ 3 - 3
bindings/javascript/Polycode/ShaderPlatformData.js

@@ -11,7 +11,7 @@ function ShaderPlatformData() {
 
 
 ShaderPlatformData.prototype.__get_shaderID = function() {
-	var retVal = new GLuint()
+	var retVal = new GLuint("__skip_ptr__")
 	retVal.__ptr = 	Polycode.ShaderPlatformData__get_shaderID(this.__ptr)
 	return retVal
 }
@@ -21,7 +21,7 @@ ShaderPlatformData.prototype.__set_shaderID = function(val) {
 }
 
 ShaderPlatformData.prototype.__get_vertexProgramID = function() {
-	var retVal = new GLuint()
+	var retVal = new GLuint("__skip_ptr__")
 	retVal.__ptr = 	Polycode.ShaderPlatformData__get_vertexProgramID(this.__ptr)
 	return retVal
 }
@@ -31,7 +31,7 @@ ShaderPlatformData.prototype.__set_vertexProgramID = function(val) {
 }
 
 ShaderPlatformData.prototype.__get_fragmentProgramID = function() {
-	var retVal = new GLuint()
+	var retVal = new GLuint("__skip_ptr__")
 	retVal.__ptr = 	Polycode.ShaderPlatformData__get_fragmentProgramID(this.__ptr)
 	return retVal
 }

+ 2 - 32
bindings/javascript/Polycode/Skeleton.js

@@ -16,12 +16,6 @@ Duktape.fin(Skeleton.prototype, function (x) {
 	Polycode.Skeleton__delete(x.__ptr)
 })
 
-Skeleton.prototype.BlankSkeleton = function() {
-	var retVal = new Skeleton()
-	retVal.__ptr = Polycode.Skeleton_BlankSkeleton()
-	return retVal
-}
-
 Skeleton.prototype.loadSkeleton = function(fileName) {
 	Polycode.Skeleton_loadSkeleton(this.__ptr, fileName)
 }
@@ -30,52 +24,28 @@ Skeleton.prototype.playAnimationByName = function(animName,weight,once,restartIf
 	Polycode.Skeleton_playAnimationByName(this.__ptr, animName, weight, once, restartIfPlaying)
 }
 
-Skeleton.prototype.playAnimation = function(animation,weight,once,restartIfPlaying) {
-	Polycode.Skeleton_playAnimation(this.__ptr, animation.__ptr, weight, once, restartIfPlaying)
-}
-
 Skeleton.prototype.setBaseAnimationByName = function(animName) {
 	Polycode.Skeleton_setBaseAnimationByName(this.__ptr, animName)
 }
 
-Skeleton.prototype.setBaseAnimation = function(animation) {
-	Polycode.Skeleton_setBaseAnimation(this.__ptr, animation.__ptr)
-}
-
 Skeleton.prototype.stopAllAnimations = function() {
 	Polycode.Skeleton_stopAllAnimations(this.__ptr)
 }
 
-Skeleton.prototype.getBaseAnimation = function() {
-	var retVal = new SkeletonAnimation()
-	retVal.__ptr = Polycode.Skeleton_getBaseAnimation(this.__ptr)
-	return retVal
-}
-
 Skeleton.prototype.addAnimation = function(name,fileName) {
 	Polycode.Skeleton_addAnimation(this.__ptr, name, fileName)
 }
 
-Skeleton.prototype.getAnimation = function(name) {
-	var retVal = new SkeletonAnimation()
-	retVal.__ptr = Polycode.Skeleton_getAnimation(this.__ptr, name)
-	return retVal
-}
-
 Skeleton.prototype.stopAnimationByName = function(name) {
 	Polycode.Skeleton_stopAnimationByName(this.__ptr, name)
 }
 
-Skeleton.prototype.stopAnimation = function(animation) {
-	Polycode.Skeleton_stopAnimation(this.__ptr, animation.__ptr)
-}
-
 Skeleton.prototype.Update = function() {
 	Polycode.Skeleton_Update(this.__ptr)
 }
 
 Skeleton.prototype.getBoneByName = function(name) {
-	var retVal = new Bone()
+	var retVal = new Bone("__skip_ptr__")
 	retVal.__ptr = Polycode.Skeleton_getBoneByName(this.__ptr, name)
 	return retVal
 }
@@ -89,7 +59,7 @@ Skeleton.prototype.getNumBones = function() {
 }
 
 Skeleton.prototype.getBone = function(index) {
-	var retVal = new Bone()
+	var retVal = new Bone("__skip_ptr__")
 	retVal.__ptr = Polycode.Skeleton_getBone(this.__ptr, index)
 	return retVal
 }

+ 0 - 4
bindings/javascript/Polycode/SkeletonAnimation.js

@@ -12,10 +12,6 @@ Duktape.fin(SkeletonAnimation.prototype, function (x) {
 	Polycode.SkeletonAnimation__delete(x.__ptr)
 })
 
-SkeletonAnimation.prototype.addBoneTrack = function(boneTrack) {
-	Polycode.SkeletonAnimation_addBoneTrack(this.__ptr, boneTrack.__ptr)
-}
-
 SkeletonAnimation.prototype.getName = function() {
 	return Polycode.SkeletonAnimation_getName(this.__ptr)
 }

+ 0 - 4
bindings/javascript/Polycode/Sound.js

@@ -120,10 +120,6 @@ Sound.prototype.getMaxDistance = function() {
 	return Polycode.Sound_getMaxDistance(this.__ptr)
 }
 
-Sound.prototype.loadBytes = function(data,size,channels,freq,format) {
-	return Polycode.Sound_loadBytes(this.__ptr, data.__ptr, size, channels, freq, format)
-}
-
 Sound.prototype.loadWAV = function(fileName) {
 	return Polycode.Sound_loadWAV(this.__ptr, fileName)
 }

+ 0 - 18
bindings/javascript/Polycode/SoundManager.js

@@ -24,16 +24,6 @@ SoundManager.prototype.recordSound = function(rate,sampleSize) {
 	return Polycode.SoundManager_recordSound(this.__ptr, rate, sampleSize)
 }
 
-SoundManager.prototype.stopRecording = function(generateFloatBuffer) {
-	var retVal = new Sound()
-	retVal.__ptr = Polycode.SoundManager_stopRecording(this.__ptr, generateFloatBuffer)
-	return retVal
-}
-
-SoundManager.prototype.setAudioInterface = function(audioInterface) {
-	Polycode.SoundManager_setAudioInterface(this.__ptr, audioInterface.__ptr)
-}
-
 SoundManager.prototype.Update = function() {
 	Polycode.SoundManager_Update(this.__ptr)
 }
@@ -41,11 +31,3 @@ SoundManager.prototype.Update = function() {
 SoundManager.prototype.setGlobalVolume = function(globalVolume) {
 	Polycode.SoundManager_setGlobalVolume(this.__ptr, globalVolume)
 }
-
-SoundManager.prototype.registerSound = function(sound) {
-	Polycode.SoundManager_registerSound(this.__ptr, sound.__ptr)
-}
-
-SoundManager.prototype.unregisterSound = function(sound) {
-	Polycode.SoundManager_unregisterSound(this.__ptr, sound.__ptr)
-}

+ 0 - 30
bindings/javascript/Polycode/Sprite.js

@@ -24,36 +24,6 @@ Sprite.prototype.setName = function(name) {
 	Polycode.Sprite_setName(this.__ptr, name)
 }
 
-Sprite.prototype.addSpriteState = function(state) {
-	Polycode.Sprite_addSpriteState(this.__ptr, state.__ptr)
-}
-
-Sprite.prototype.removeSpriteState = function(state) {
-	Polycode.Sprite_removeSpriteState(this.__ptr, state.__ptr)
-}
-
 Sprite.prototype.getNumStates = function() {
 	return Polycode.Sprite_getNumStates(this.__ptr)
 }
-
-Sprite.prototype.getState = function(index) {
-	var retVal = new SpriteState()
-	retVal.__ptr = Polycode.Sprite_getState(this.__ptr, index)
-	return retVal
-}
-
-Sprite.prototype.getStateByName = function(name) {
-	var retVal = new SpriteState()
-	retVal.__ptr = Polycode.Sprite_getStateByName(this.__ptr, name)
-	return retVal
-}
-
-Sprite.prototype.setParentSpritSet = function(spriteSet) {
-	Polycode.Sprite_setParentSpritSet(this.__ptr, spriteSet.__ptr)
-}
-
-Sprite.prototype.getParentSpriteSet = function() {
-	var retVal = new SpriteSet()
-	retVal.__ptr = Polycode.Sprite_getParentSpriteSet(this.__ptr)
-	return retVal
-}

+ 2 - 2
bindings/javascript/Polycode/SpriteFrame.js

@@ -11,7 +11,7 @@ function SpriteFrame() {
 
 
 SpriteFrame.prototype.__get_coordinates = function() {
-	var retVal = new Rectangle()
+	var retVal = new Rectangle("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SpriteFrame__get_coordinates(this.__ptr)
 	return retVal
 }
@@ -21,7 +21,7 @@ SpriteFrame.prototype.__set_coordinates = function(val) {
 }
 
 SpriteFrame.prototype.__get_anchorPoint = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.SpriteFrame__get_anchorPoint(this.__ptr)
 	return retVal
 }

+ 7 - 7
bindings/javascript/Polycode/SpriteSet.js

@@ -1,8 +1,8 @@
 require('Polycode/ResourcePool')
 
-function SpriteSet(fileName,parentPool) {
+function SpriteSet() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SpriteSet(fileName,parentPool)
+		this.__ptr = Polycode.SpriteSet()
 	}
 }
 
@@ -21,7 +21,7 @@ SpriteSet.prototype.setTexture = function(texture) {
 }
 
 SpriteSet.prototype.getTexture = function() {
-	var retVal = new Texture()
+	var retVal = new Texture("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteSet_getTexture(this.__ptr)
 	return retVal
 }
@@ -35,7 +35,7 @@ SpriteSet.prototype.getNumSpriteEntries = function() {
 }
 
 SpriteSet.prototype.getSpriteEntry = function(index) {
-	var retVal = new Sprite()
+	var retVal = new Sprite("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteSet_getSpriteEntry(this.__ptr, index)
 	return retVal
 }
@@ -57,13 +57,13 @@ SpriteSet.prototype.getNumFrames = function() {
 }
 
 SpriteSet.prototype.getSpriteFrame = function(index) {
-	var retVal = new SpriteFrame()
+	var retVal = new SpriteFrame("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteSet_getSpriteFrame(this.__ptr, index)
 	return retVal
 }
 
 SpriteSet.prototype.getSpriteFrameByID = function(frameID) {
-	var retVal = new SpriteFrame()
+	var retVal = new SpriteFrame("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteSet_getSpriteFrameByID(this.__ptr, frameID)
 	return retVal
 }
@@ -89,7 +89,7 @@ SpriteSet.prototype.createFramesFromIslands = function(minDistance,defaultAnchor
 }
 
 SpriteSet.prototype.getSpriteByName = function(spriteName) {
-	var retVal = new Sprite()
+	var retVal = new Sprite("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteSet_getSpriteByName(this.__ptr, spriteName)
 	return retVal
 }

+ 6 - 6
bindings/javascript/Polycode/SpriteState.js

@@ -1,6 +1,6 @@
-function SpriteState(spriteSet,name) {
+function SpriteState() {
 	if(arguments[0] != "__skip_ptr__") {
-		this.__ptr = Polycode.SpriteState(spriteSet,name)
+		this.__ptr = Polycode.SpriteState()
 	}
 }
 
@@ -29,7 +29,7 @@ SpriteState.prototype.getFrameIDAtIndex = function(index) {
 }
 
 SpriteState.prototype.getMeshForFrameIndex = function(index) {
-	var retVal = new Mesh()
+	var retVal = new Mesh("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteState_getMeshForFrameIndex(this.__ptr, index)
 	return retVal
 }
@@ -67,7 +67,7 @@ SpriteState.prototype.getStateFPS = function() {
 }
 
 SpriteState.prototype.getLargestFrameBoundingBox = function() {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteState_getLargestFrameBoundingBox(this.__ptr)
 	return retVal
 }
@@ -77,13 +77,13 @@ SpriteState.prototype.setBoundingBox = function(boundingBox) {
 }
 
 SpriteState.prototype.getBoundingBox = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteState_getBoundingBox(this.__ptr)
 	return retVal
 }
 
 SpriteState.prototype.getSpriteOffset = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = Polycode.SpriteState_getSpriteOffset(this.__ptr)
 	return retVal
 }

+ 10 - 32
bindings/javascript/Polycode/String.js

@@ -11,7 +11,7 @@ function String() {
 String.ENCODING_UTF8 = 0
 
 String.prototype.__get_contents = function() {
-	var retVal = new string()
+	var retVal = new string("__skip_ptr__")
 	retVal.__ptr = 	Polycode.String__get_contents(this.__ptr)
 	return retVal
 }
@@ -21,7 +21,7 @@ String.prototype.__set_contents = function(val) {
 }
 
 String.prototype.__get_w_contents = function() {
-	var retVal = new wstring()
+	var retVal = new wstring("__skip_ptr__")
 	retVal.__ptr = 	Polycode.String__get_w_contents(this.__ptr)
 	return retVal
 }
@@ -38,13 +38,13 @@ Duktape.fin(String.prototype, function (x) {
 })
 
 String.prototype.size = function() {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_size(this.__ptr)
 	return retVal
 }
 
 String.prototype.length = function() {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_length(this.__ptr)
 	return retVal
 }
@@ -54,31 +54,31 @@ String.prototype.substr = function(pos,n) {
 }
 
 String.prototype.rfind = function(str,pos) {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_rfind(this.__ptr, str, pos)
 	return retVal
 }
 
 String.prototype.find = function(str,pos) {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_find(this.__ptr, str, pos)
 	return retVal
 }
 
 String.prototype.find_last_of = function(str,pos) {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_find_last_of(this.__ptr, str, pos)
 	return retVal
 }
 
 String.prototype.find_first_of = function(str,pos) {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_find_first_of(this.__ptr, str, pos)
 	return retVal
 }
 
 String.prototype.find_first_not_of = function(str,pos) {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_find_first_not_of(this.__ptr, str, pos)
 	return retVal
 }
@@ -115,38 +115,16 @@ String.prototype.IntToString = function(value) {
 	return Polycode.String_IntToString(value)
 }
 
-String.prototype.c_str = function() {
-	var retVal = new char()
-	retVal.__ptr = Polycode.String_c_str(this.__ptr)
-	return retVal
-}
-
-String.prototype.getDataWithEncoding = function(encoding) {
-	var retVal = new char()
-	retVal.__ptr = Polycode.String_getDataWithEncoding(this.__ptr, encoding)
-	return retVal
-}
-
-String.prototype.getWDataWithEncoding = function(encoding) {
-	var retVal = new wchar_t()
-	retVal.__ptr = Polycode.String_getWDataWithEncoding(this.__ptr, encoding)
-	return retVal
-}
-
 String.prototype.append = function(c) {
 	Polycode.String_append(this.__ptr, c)
 }
 
 String.prototype.getDataSizeWithEncoding = function(encoding) {
-	var retVal = new size_t()
+	var retVal = new size_t("__skip_ptr__")
 	retVal.__ptr = Polycode.String_getDataSizeWithEncoding(this.__ptr, encoding)
 	return retVal
 }
 
-String.prototype.setDataWithEncoding = function(data,encoding) {
-	Polycode.String_setDataWithEncoding(this.__ptr, data.__ptr, encoding)
-}
-
 String.prototype.isNumber = function() {
 	return Polycode.String_isNumber(this.__ptr)
 }

+ 0 - 21
bindings/javascript/Polycode/Texture.js

@@ -3,7 +3,6 @@ require('Polycode/Resource')
 function Texture() {
 	Object.defineProperties(this, {
 		'clamp': { enumerable: true, configurable: true, get: Texture.prototype.__get_clamp, set: Texture.prototype.__set_clamp},
-		'textureData': { enumerable: true, configurable: true, get: Texture.prototype.__get_textureData, set: Texture.prototype.__set_textureData},
 		'type': { enumerable: true, configurable: true, get: Texture.prototype.__get_type, set: Texture.prototype.__set_type},
 		'filteringMode': { enumerable: true, configurable: true, get: Texture.prototype.__get_filteringMode, set: Texture.prototype.__set_filteringMode},
 		'createMipmaps': { enumerable: true, configurable: true, get: Texture.prototype.__get_createMipmaps, set: Texture.prototype.__set_createMipmaps},
@@ -26,16 +25,6 @@ Texture.prototype.__set_clamp = function(val) {
 	Polycode.Texture__set_clamp(this.__ptr, val)
 }
 
-Texture.prototype.__get_textureData = function() {
-	var retVal = new char()
-	retVal.__ptr = 	Polycode.Texture__get_textureData(this.__ptr)
-	return retVal
-}
-
-Texture.prototype.__set_textureData = function(val) {
-	Polycode.Texture__set_textureData(this.__ptr, val.__ptr)
-}
-
 Texture.prototype.__get_type = function() {
 	return Polycode.Texture__get_type(this.__ptr)
 }
@@ -89,16 +78,6 @@ Texture.prototype.reloadResource = function() {
 	Polycode.Texture_reloadResource(this.__ptr)
 }
 
-Texture.prototype.setImageData = function(data) {
-	Polycode.Texture_setImageData(this.__ptr, data.__ptr)
-}
-
-Texture.prototype.getTextureData = function() {
-	var retVal = new char()
-	retVal.__ptr = Polycode.Texture_getTextureData(this.__ptr)
-	return retVal
-}
-
 Texture.prototype.getWidth = function() {
 	return Polycode.Texture_getWidth(this.__ptr)
 }

+ 0 - 6
bindings/javascript/Polycode/TextureResourceLoader.js

@@ -11,9 +11,3 @@ Duktape.fin(TextureResourceLoader.prototype, function (x) {
 	}
 	Polycode.TextureResourceLoader__delete(x.__ptr)
 })
-
-TextureResourceLoader.prototype.loadResource = function(path,targetPool) {
-	var retVal = new Resource()
-	retVal.__ptr = Polycode.TextureResourceLoader_loadResource(this.__ptr, path, targetPool.__ptr)
-	return retVal
-}

+ 1 - 1
bindings/javascript/Polycode/TouchInfo.js

@@ -22,7 +22,7 @@ TouchInfo.prototype.__set_id = function(val) {
 }
 
 TouchInfo.prototype.__get_position = function() {
-	var retVal = new Vector2()
+	var retVal = new Vector2("__skip_ptr__")
 	retVal.__ptr = 	Polycode.TouchInfo__get_position(this.__ptr)
 	return retVal
 }

+ 2 - 2
bindings/javascript/Polycode/Vector3.js

@@ -62,7 +62,7 @@ Vector3.prototype.lengthSquared = function() {
 }
 
 Vector3.prototype.setLength = function(newLength) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Vector3_setLength(this.__ptr, newLength)
 	return retVal
 }
@@ -72,7 +72,7 @@ Vector3.prototype.dot = function(u) {
 }
 
 Vector3.prototype.crossProduct = function(vec2) {
-	var retVal = new Vector3()
+	var retVal = new Vector3("__skip_ptr__")
 	retVal.__ptr = Polycode.Vector3_crossProduct(this.__ptr, vec2)
 	return retVal
 }

BIN
bindings/javascript/js_Polycode.pak


+ 0 - 4
bindings/lua/Polycode.lua

@@ -42,15 +42,12 @@ require "Polycode/Matrix4"
 require "Polycode/Mesh"
 require "Polycode/MeshGeometry"
 require "Polycode/ObjectEntry"
-require "Polycode/BinaryObjectReader"
-require "Polycode/BinaryObjectWriter"
 require "Polycode/ShaderPlatformData"
 require "Polycode/SceneParticle"
 require "Polycode/SceneParticleEmitter"
 require "Polycode/Perlin"
 require "Polycode/Quaternion"
 require "Polycode/QuatTriple"
-require "Polycode/QuaternionCurve"
 require "Polycode/Ray"
 require "Polycode/Rectangle"
 require "Polycode/RenderDataArray"
@@ -79,7 +76,6 @@ require "Polycode/SceneLabel"
 require "Polycode/SceneLight"
 require "Polycode/SceneCurve"
 require "Polycode/SceneLine"
-require "Polycode/SceneManager"
 require "Polycode/SceneMesh"
 require "Polycode/ScenePrimitive"
 require "Polycode/SceneRenderTexture"

+ 0 - 18
bindings/lua/Polycode/AttributeBinding.lua

@@ -4,18 +4,6 @@ class "AttributeBinding"
 function AttributeBinding:__getvar(name)
 	if name == "name" then
 		return Polycode.AttributeBinding_get_name(self.__ptr)
-	elseif name == "vertexData" then
-		local retVal = Polycode.AttributeBinding_get_vertexData(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["VertexDataArray"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "attribute" then
-		local retVal = Polycode.AttributeBinding_get_attribute(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["ProgramAttribute"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
 	elseif name == "enabled" then
 		return Polycode.AttributeBinding_get_enabled(self.__ptr)
 	end
@@ -25,12 +13,6 @@ function AttributeBinding:__setvar(name,value)
 	if name == "name" then
 		Polycode.AttributeBinding_set_name(self.__ptr, value)
 		return true
-	elseif name == "vertexData" then
-		Polycode.AttributeBinding_set_vertexData(self.__ptr, value.__ptr)
-		return true
-	elseif name == "attribute" then
-		Polycode.AttributeBinding_set_attribute(self.__ptr, value.__ptr)
-		return true
 	elseif name == "enabled" then
 		Polycode.AttributeBinding_set_enabled(self.__ptr, value)
 		return true

+ 0 - 13
bindings/lua/Polycode/AudioMixer.lua

@@ -16,12 +16,6 @@ function AudioMixer:__getvar(name)
 		local __c = _G["Quaternion"]("__skip_ptr__")
 		__c.__ptr = retVal
 		return __c
-	elseif name == "mixerMutex" then
-		local retVal = Polycode.AudioMixer_get_mixerMutex(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["CoreMutex"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
 	end
 end
 
@@ -35,9 +29,6 @@ function AudioMixer:__setvar(name,value)
 	elseif name == "listenerOrientation" then
 		Polycode.AudioMixer_set_listenerOrientation(self.__ptr, value.__ptr)
 		return true
-	elseif name == "mixerMutex" then
-		Polycode.AudioMixer_set_mixerMutex(self.__ptr, value.__ptr)
-		return true
 	end
 	return false
 end
@@ -55,10 +46,6 @@ function AudioMixer:AudioMixer(...)
 	end
 end
 
-function AudioMixer:mixIntoBuffer(buffer, numSamples)
-	local retVal = Polycode.AudioMixer_mixIntoBuffer(self.__ptr, buffer.__ptr, numSamples)
-end
-
 function AudioMixer:__delete()
 	if self then Polycode.delete_AudioMixer(self.__ptr) end
 end

+ 2 - 31
bindings/lua/Polycode/BezierCurve.lua

@@ -2,22 +2,13 @@ class "BezierCurve"
 
 
 function BezierCurve:__getvar(name)
-	if name == "insertPoint" then
-		local retVal = Polycode.BezierCurve_get_insertPoint(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierPoint"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "evaluationAccuracy" then
+	if name == "evaluationAccuracy" then
 		return Polycode.BezierCurve_get_evaluationAccuracy(self.__ptr)
 	end
 end
 
 function BezierCurve:__setvar(name,value)
-	if name == "insertPoint" then
-		Polycode.BezierCurve_set_insertPoint(self.__ptr, value.__ptr)
-		return true
-	elseif name == "evaluationAccuracy" then
+	if name == "evaluationAccuracy" then
 		Polycode.BezierCurve_set_evaluationAccuracy(self.__ptr, value)
 		return true
 	end
@@ -37,14 +28,6 @@ function BezierCurve:BezierCurve(...)
 	end
 end
 
-function BezierCurve:getControlPoint(index)
-	local retVal = Polycode.BezierCurve_getControlPoint(self.__ptr, index)
-	if retVal == nil then return nil end
-	local __c = _G["BezierPoint"]("__skip_ptr__")
-	__c.__ptr = retVal
-	return __c
-end
-
 function BezierCurve:getNumControlPoints()
 	local retVal =  Polycode.BezierCurve_getNumControlPoints(self.__ptr)
 	return retVal
@@ -78,14 +61,6 @@ function BezierCurve:getPointAt(a)
 	return __c
 end
 
-function BezierCurve:getPointBetween(a, bp1, bp2)
-	local retVal = Polycode.BezierCurve_getPointBetween(self.__ptr, a, bp1.__ptr, bp2.__ptr)
-	if retVal == nil then return nil end
-	local __c = _G["Vector3"]("__skip_ptr__")
-	__c.__ptr = retVal
-	return __c
-end
-
 function BezierCurve:clearControlPoints()
 	local retVal =  Polycode.BezierCurve_clearControlPoints(self.__ptr)
 end
@@ -100,10 +75,6 @@ function BezierCurve:getTValueAtX(x)
 	return retVal
 end
 
-function BezierCurve:removePoint(point)
-	local retVal = Polycode.BezierCurve_removePoint(self.__ptr, point.__ptr)
-end
-
 function BezierCurve:setHeightCacheResolution(resolution)
 	local retVal = Polycode.BezierCurve_setHeightCacheResolution(self.__ptr, resolution)
 end

+ 0 - 14
bindings/lua/Polycode/BinaryObjectReader.lua

@@ -14,20 +14,6 @@ function BinaryObjectReader:__setvar(name,value)
 	end
 	return false
 end
-function BinaryObjectReader:BinaryObjectReader(...)
-	local arg = {...}
-	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 = Polycode.BinaryObjectReader(unpack(arg))
-	end
-end
-
 function BinaryObjectReader:__delete()
 	if self then Polycode.delete_BinaryObjectReader(self.__ptr) end
 end

+ 0 - 22
bindings/lua/Polycode/BinaryObjectWriter.lua

@@ -1,28 +1,6 @@
 class "BinaryObjectWriter"
 
 
-function BinaryObjectWriter:BinaryObjectWriter(...)
-	local arg = {...}
-	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 = Polycode.BinaryObjectWriter(unpack(arg))
-	end
-end
-
-function BinaryObjectWriter:parseKeysFromObjectEntry(entry)
-	local retVal = Polycode.BinaryObjectWriter_parseKeysFromObjectEntry(self.__ptr, entry.__ptr)
-end
-
-function BinaryObjectWriter:writeEntryToFile(entry)
-	local retVal = Polycode.BinaryObjectWriter_writeEntryToFile(self.__ptr, entry.__ptr)
-end
-
 function BinaryObjectWriter:addKey(key)
 	local retVal = Polycode.BinaryObjectWriter_addKey(self.__ptr, key)
 	return retVal

+ 2 - 101
bindings/lua/Polycode/BoneTrack.lua

@@ -2,67 +2,7 @@ class "BoneTrack"
 
 
 function BoneTrack:__getvar(name)
-	if name == "scaleX" then
-		local retVal = Polycode.BoneTrack_get_scaleX(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "scaleY" then
-		local retVal = Polycode.BoneTrack_get_scaleY(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "scaleZ" then
-		local retVal = Polycode.BoneTrack_get_scaleZ(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "QuatW" then
-		local retVal = Polycode.BoneTrack_get_QuatW(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "QuatX" then
-		local retVal = Polycode.BoneTrack_get_QuatX(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "QuatY" then
-		local retVal = Polycode.BoneTrack_get_QuatY(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "QuatZ" then
-		local retVal = Polycode.BoneTrack_get_QuatZ(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "LocX" then
-		local retVal = Polycode.BoneTrack_get_LocX(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "LocY" then
-		local retVal = Polycode.BoneTrack_get_LocY(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "LocZ" then
-		local retVal = Polycode.BoneTrack_get_LocZ(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["BezierCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
-	elseif name == "position" then
+	if name == "position" then
 		local retVal = Polycode.BoneTrack_get_position(self.__ptr)
 		if retVal == nil then return nil end
 		local __c = _G["Vector3"]("__skip_ptr__")
@@ -80,49 +20,13 @@ function BoneTrack:__getvar(name)
 		local __c = _G["Quaternion"]("__skip_ptr__")
 		__c.__ptr = retVal
 		return __c
-	elseif name == "quatCurve" then
-		local retVal = Polycode.BoneTrack_get_quatCurve(self.__ptr)
-		if retVal == nil then return nil end
-		local __c = _G["QuaternionCurve"]("__skip_ptr__")
-		__c.__ptr = retVal
-		return __c
 	elseif name == "weight" then
 		return Polycode.BoneTrack_get_weight(self.__ptr)
 	end
 end
 
 function BoneTrack:__setvar(name,value)
-	if name == "scaleX" then
-		Polycode.BoneTrack_set_scaleX(self.__ptr, value.__ptr)
-		return true
-	elseif name == "scaleY" then
-		Polycode.BoneTrack_set_scaleY(self.__ptr, value.__ptr)
-		return true
-	elseif name == "scaleZ" then
-		Polycode.BoneTrack_set_scaleZ(self.__ptr, value.__ptr)
-		return true
-	elseif name == "QuatW" then
-		Polycode.BoneTrack_set_QuatW(self.__ptr, value.__ptr)
-		return true
-	elseif name == "QuatX" then
-		Polycode.BoneTrack_set_QuatX(self.__ptr, value.__ptr)
-		return true
-	elseif name == "QuatY" then
-		Polycode.BoneTrack_set_QuatY(self.__ptr, value.__ptr)
-		return true
-	elseif name == "QuatZ" then
-		Polycode.BoneTrack_set_QuatZ(self.__ptr, value.__ptr)
-		return true
-	elseif name == "LocX" then
-		Polycode.BoneTrack_set_LocX(self.__ptr, value.__ptr)
-		return true
-	elseif name == "LocY" then
-		Polycode.BoneTrack_set_LocY(self.__ptr, value.__ptr)
-		return true
-	elseif name == "LocZ" then
-		Polycode.BoneTrack_set_LocZ(self.__ptr, value.__ptr)
-		return true
-	elseif name == "position" then
+	if name == "position" then
 		Polycode.BoneTrack_set_position(self.__ptr, value.__ptr)
 		return true
 	elseif name == "scale" then
@@ -131,9 +35,6 @@ function BoneTrack:__setvar(name,value)
 	elseif name == "boneQuat" then
 		Polycode.BoneTrack_set_boneQuat(self.__ptr, value.__ptr)
 		return true
-	elseif name == "quatCurve" then
-		Polycode.BoneTrack_set_quatCurve(self.__ptr, value.__ptr)
-		return true
 	elseif name == "weight" then
 		Polycode.BoneTrack_set_weight(self.__ptr, value)
 		return true

+ 0 - 32
bindings/lua/Polycode/Camera.lua

@@ -128,18 +128,6 @@ function Camera:getFarClippingPlane()
 	return retVal
 end
 
-function Camera:setParentScene(parentScene)
-	local retVal = Polycode.Camera_setParentScene(self.__ptr, parentScene.__ptr)
-end
-
-function Camera:getParentScene()
-	local retVal =  Polycode.Camera_getParentScene(self.__ptr)
-	if retVal == nil then return nil end
-	local __c = _G["Scene"]("__skip_ptr__")
-	__c.__ptr = retVal
-	return __c
-end
-
 function Camera:createProjectionMatrix()
 	local retVal =  Polycode.Camera_createProjectionMatrix(self.__ptr)
 	if retVal == nil then return nil end
@@ -153,10 +141,6 @@ function Camera:hasFilterShader()
 	return retVal
 end
 
-function Camera:drawFilter(targetBuffer)
-	local retVal = Polycode.Camera_drawFilter(self.__ptr, targetBuffer.__ptr)
-end
-
 function Camera:setPostFilter(material)
 	local retVal = Polycode.Camera_setPostFilter(self.__ptr, material.__ptr)
 end
@@ -177,18 +161,6 @@ function Camera:getScreenShaderMaterial()
 	return __c
 end
 
-function Camera:Clone(deepClone, ignoreEditorOnly)
-	local retVal = Polycode.Camera_Clone(self.__ptr, deepClone, ignoreEditorOnly)
-	if retVal == nil then return nil end
-	local __c = _G["Entity"]("__skip_ptr__")
-	__c.__ptr = retVal
-	return __c
-end
-
-function Camera:applyClone(clone, deepClone, ignoreEditorOnly)
-	local retVal = Polycode.Camera_applyClone(self.__ptr, clone.__ptr, deepClone, ignoreEditorOnly)
-end
-
 function Camera:getProjectionMatrix()
 	local retVal =  Polycode.Camera_getProjectionMatrix(self.__ptr)
 	if retVal == nil then return nil end
@@ -239,10 +211,6 @@ function Camera:projectRayFrom2DCoordinate(coordinate, viewport)
 	return __c
 end
 
-function Camera:renderFullScreenQuad(drawBuffer, shaderPass)
-	local retVal = Polycode.Camera_renderFullScreenQuad(self.__ptr, drawBuffer.__ptr, shaderPass)
-end
-
 function Camera:getShaderPass(index)
 	local retVal = Polycode.Camera_getShaderPass(self.__ptr, index)
 	if retVal == nil then return nil end

+ 0 - 8
bindings/lua/Polycode/Config.lua

@@ -23,14 +23,6 @@ function Config:saveConfig(configNamespace, fileName)
 	local retVal = Polycode.Config_saveConfig(self.__ptr, configNamespace, fileName)
 end
 
-function Config:getEntry(configNamespace, key)
-	local retVal = Polycode.Config_getEntry(self.__ptr, configNamespace, key)
-	if retVal == nil then return nil end
-	local __c = _G["ConfigEntry"]("__skip_ptr__")
-	__c.__ptr = retVal
-	return __c
-end
-
 function Config:setStringValue(configNamespace, key, value)
 	local retVal = Polycode.Config_setStringValue(self.__ptr, configNamespace, key, value)
 end

Некоторые файлы не были показаны из-за большого количества измененных файлов