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

Static member support in JavaScript bindings

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

+ 1 - 0
bindings/javascript/Polycode/AABB.js

@@ -8,6 +8,7 @@ function AABB() {
 	})
 }
 
+
 AABB.prototype.__get_min = function() {
 	var retVal = new Vector3()
 	retVal.__ptr = 	Polycode.AABB__get_min(this.__ptr)

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

@@ -10,6 +10,7 @@ function AttributeBinding() {
 	})
 }
 
+
 AttributeBinding.prototype.__get_name = function() {
 	return Polycode.AttributeBinding__get_name(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/AudioMixer.js

@@ -10,6 +10,7 @@ function AudioMixer() {
 	})
 }
 
+
 AudioMixer.prototype.__get_globalVolume = function() {
 	return Polycode.AudioMixer__get_globalVolume(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/AudioStreamingSource.js

@@ -4,6 +4,7 @@ function AudioStreamingSource(channels,freq) {
 	}
 }
 
+
 Duktape.fin(AudioStreamingSource.prototype, function (x) {
 	if (x === AudioStreamingSource.prototype) {
 		return;

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

@@ -8,6 +8,7 @@ function BezierCurve() {
 	})
 }
 
+
 BezierCurve.prototype.__get_insertPoint = function() {
 	var retVal = new BezierPoint()
 	retVal.__ptr = 	Polycode.BezierCurve__get_insertPoint(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/BezierPoint.js

@@ -9,6 +9,7 @@ function BezierPoint(p1x,p1y,p1z,p2x,p2y,p2z,p3x,p3y,p3z) {
 	})
 }
 
+
 BezierPoint.prototype.__get_p1 = function() {
 	var retVal = new Vector3()
 	retVal.__ptr = 	Polycode.BezierPoint__get_p1(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/BinaryObjectReader.js

@@ -7,6 +7,7 @@ function BinaryObjectReader(fileName,object) {
 	})
 }
 
+
 BinaryObjectReader.prototype.__get_success = function() {
 	return Polycode.BinaryObjectReader__get_success(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/BinaryObjectWriter.js

@@ -4,6 +4,7 @@ function BinaryObjectWriter(object) {
 	}
 }
 
+
 Duktape.fin(BinaryObjectWriter.prototype, function (x) {
 	if (x === BinaryObjectWriter.prototype) {
 		return;

+ 2 - 1
bindings/javascript/Polycode/Bone.js

@@ -17,7 +17,8 @@ function Bone(boneName) {
 	})
 }
 
-Bone.prototype = Object.create(Entity.prototype);
+
+Bone.prototype = Object.create(Entity.prototype)
 
 Bone.prototype.__get_parentBoneId = function() {
 	return Polycode.Bone__get_parentBoneId(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/BoneTrack.js

@@ -21,6 +21,7 @@ function BoneTrack(bone,length) {
 	})
 }
 
+
 BoneTrack.prototype.__get_scaleX = function() {
 	var retVal = new BezierCurve()
 	retVal.__ptr = 	Polycode.BoneTrack__get_scaleX(this.__ptr)

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

@@ -11,7 +11,15 @@ function Camera(parentScene) {
 	})
 }
 
-Camera.prototype = Object.create(Entity.prototype);
+Camera.ORTHO_SIZE_MANUAL = 0
+Camera.ORTHO_SIZE_LOCK_HEIGHT = 1
+Camera.ORTHO_SIZE_LOCK_WIDTH = 2
+Camera.ORTHO_SIZE_VIEWPORT = 3
+Camera.PERSPECTIVE_FOV = 4
+Camera.PERSPECTIVE_FRUSTUM = 5
+Camera.MANUAL_MATRIX = 6
+
+Camera.prototype = Object.create(Entity.prototype)
 
 Camera.prototype.__get_frustumCulling = function() {
 	return Polycode.Camera__get_frustumCulling(this.__ptr)

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

@@ -10,6 +10,10 @@ function Color(r,g,b,a) {
 	})
 }
 
+Color.BLEND_NORMAL = 0
+Color.BLEND_REPLACE_COLOR = 1
+Color.BLEND_ADDITIVE = 2
+
 Color.prototype.__get_r = function() {
 	return Polycode.Color__get_r(this.__ptr)
 }

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

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

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

@@ -4,6 +4,7 @@ function Config() {
 	}
 }
 
+
 Duktape.fin(Config.prototype, function (x) {
 	if (x === Config.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/ConfigEntry.js

@@ -11,6 +11,7 @@ function ConfigEntry() {
 	})
 }
 
+
 ConfigEntry.prototype.__get_key = function() {
 	return Polycode.ConfigEntry__get_key(this.__ptr)
 }

+ 21 - 1
bindings/javascript/Polycode/Core.js

@@ -11,7 +11,27 @@ function Core() {
 	})
 }
 
-Core.prototype = Object.create(EventDispatcher.prototype);
+Core.EVENTBASE_CORE = 0x200
+Core.EVENT_CORE_RESIZE = EVENTBASE_CORE + 0
+Core.EVENT_LOST_FOCUS = EVENTBASE_CORE + 1
+Core.EVENT_GAINED_FOCUS = EVENTBASE_CORE + 2
+Core.EVENT_UNDO = EVENTBASE_CORE + 3
+Core.EVENT_REDO = EVENTBASE_CORE + 4
+Core.EVENT_COPY = EVENTBASE_CORE + 5
+Core.EVENT_CUT = EVENTBASE_CORE + 6
+Core.EVENT_SELECT_ALL = EVENTBASE_CORE + 7
+Core.EVENT_PASTE = EVENTBASE_CORE + 8
+Core.EVENT_GYRO_ROTATION = EVENTBASE_CORE + 9
+Core.EVENT_ACCELEROMETER_MOTION = EVENTBASE_CORE + 10
+Core.CURSOR_ARROW = 0
+Core.CURSOR_TEXT = 1
+Core.CURSOR_POINTER = 2
+Core.CURSOR_CROSSHAIR = 3
+Core.CURSOR_RESIZE_LEFT_RIGHT = 4
+Core.CURSOR_RESIZE_UP_DOWN = 5
+Core.CURSOR_OPEN_HAND = 6
+
+Core.prototype = Object.create(EventDispatcher.prototype)
 
 Core.prototype.__get_eventMutex = function() {
 	var retVal = new CoreMutex()

+ 1 - 0
bindings/javascript/Polycode/CoreFileExtension.js

@@ -8,6 +8,7 @@ function CoreFileExtension() {
 	})
 }
 
+
 CoreFileExtension.prototype.__get_extension = function() {
 	return Polycode.CoreFileExtension__get_extension(this.__ptr)
 }

+ 5 - 1
bindings/javascript/Polycode/CoreInput.js

@@ -15,7 +15,11 @@ function CoreInput() {
 	})
 }
 
-CoreInput.prototype = Object.create(EventDispatcher.prototype);
+CoreInput.MOUSE_BUTTON1 = 0
+CoreInput.MOUSE_BUTTON2 = 1
+CoreInput.MOUSE_BUTTON3 = 2
+
+CoreInput.prototype = Object.create(EventDispatcher.prototype)
 
 CoreInput.prototype.__get_simulateTouchWithMouse = function() {
 	return Polycode.CoreInput__get_simulateTouchWithMouse(this.__ptr)

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

@@ -9,7 +9,8 @@ function CoreMotionEvent() {
 	})
 }
 
-CoreMotionEvent.prototype = Object.create(Event.prototype);
+
+CoreMotionEvent.prototype = Object.create(Event.prototype)
 
 CoreMotionEvent.prototype.__get_amount = function() {
 	var retVal = new Vector3()

+ 2 - 1
bindings/javascript/Polycode/CoreServices.js

@@ -3,7 +3,8 @@ require('Polycode/EventDispatcher')
 function CoreServices() {
 }
 
-CoreServices.prototype = Object.create(EventDispatcher.prototype);
+
+CoreServices.prototype = Object.create(EventDispatcher.prototype)
 
 Duktape.fin(CoreServices.prototype, function (x) {
 	if (x === CoreServices.prototype) {

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

@@ -4,6 +4,7 @@ function Data() {
 	}
 }
 
+
 Duktape.fin(Data.prototype, function (x) {
 	if (x === Data.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/DebugBackTraceEntry.js

@@ -8,6 +8,7 @@ function DebugBackTraceEntry() {
 	})
 }
 
+
 DebugBackTraceEntry.prototype.__get_fileName = function() {
 	return Polycode.DebugBackTraceEntry__get_fileName(this.__ptr)
 }

+ 2 - 1
bindings/javascript/Polycode/DummyCore.js

@@ -6,7 +6,8 @@ function DummyCore() {
 	}
 }
 
-DummyCore.prototype = Object.create(Core.prototype);
+
+DummyCore.prototype = Object.create(Core.prototype)
 
 Duktape.fin(DummyCore.prototype, function (x) {
 	if (x === DummyCore.prototype) {

+ 2 - 1
bindings/javascript/Polycode/Entity.js

@@ -29,7 +29,8 @@ function Entity() {
 	})
 }
 
-Entity.prototype = Object.create(EventDispatcher.prototype);
+
+Entity.prototype = Object.create(EventDispatcher.prototype)
 
 Entity.prototype.__get_ownsChildren = function() {
 	return Polycode.Entity__get_ownsChildren(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/EntityProp.js

@@ -8,6 +8,7 @@ function EntityProp() {
 	})
 }
 
+
 EntityProp.prototype.__get_propName = function() {
 	return Polycode.EntityProp__get_propName(this.__ptr)
 }

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

@@ -8,6 +8,18 @@ function Event() {
 	})
 }
 
+Event.EVENTBASE_EVENT = 0x100
+Event.COMPLETE_EVENT = EVENTBASE_EVENT + 0
+Event.CHANGE_EVENT = EVENTBASE_EVENT + 1
+Event.CANCEL_EVENT = EVENTBASE_EVENT + 2
+Event.NOTIFY_EVENT = EVENTBASE_EVENT + 3
+Event.FIRE_EVENT = EVENTBASE_EVENT + 4
+Event.RESOURCE_RELOAD_EVENT = EVENTBASE_EVENT + 5
+Event.SELECT_EVENT = EVENTBASE_EVENT + 6
+Event.REMOVE_EVENT = EVENTBASE_EVENT + 7
+Event.RESOURCE_CHANGE_EVENT = EVENTBASE_EVENT + 8
+Event.EVENTBASE_NONPOLYCODE = 0x10000
+
 Event.prototype.__get_deleteOnDispatch = function() {
 	return Polycode.Event__get_deleteOnDispatch(this.__ptr)
 }

+ 2 - 1
bindings/javascript/Polycode/EventDispatcher.js

@@ -6,7 +6,8 @@ function EventDispatcher() {
 	}
 }
 
-EventDispatcher.prototype = Object.create(EventHandler.prototype);
+
+EventDispatcher.prototype = Object.create(EventHandler.prototype)
 
 Duktape.fin(EventDispatcher.prototype, function (x) {
 	if (x === EventDispatcher.prototype) {

+ 1 - 0
bindings/javascript/Polycode/EventHandler.js

@@ -4,6 +4,7 @@ function EventHandler() {
 	}
 }
 
+
 Duktape.fin(EventHandler.prototype, function (x) {
 	if (x === EventHandler.prototype) {
 		return;

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

@@ -9,7 +9,8 @@ function Font(fileName,FTLibrary) {
 	})
 }
 
-Font.prototype = Object.create(Resource.prototype);
+
+Font.prototype = Object.create(Resource.prototype)
 
 Font.prototype.__get_loaded = function() {
 	return Polycode.Font__get_loaded(this.__ptr)

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

@@ -4,6 +4,7 @@ function FontResourceLoader() {
 	}
 }
 
+
 Duktape.fin(FontResourceLoader.prototype, function (x) {
 	if (x === FontResourceLoader.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/GPUDrawBuffer.js

@@ -14,6 +14,7 @@ function GPUDrawBuffer() {
 	})
 }
 
+
 GPUDrawBuffer.prototype.__get_projectionMatrix = function() {
 	var retVal = new Matrix4()
 	retVal.__ptr = 	Polycode.GPUDrawBuffer__get_projectionMatrix(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/GPUDrawCall.js

@@ -8,6 +8,7 @@ function GPUDrawCall() {
 	})
 }
 
+
 GPUDrawCall.prototype.__get_options = function() {
 	var retVal = new GPUDrawOptions()
 	retVal.__ptr = 	Polycode.GPUDrawCall__get_options(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/GPUDrawOptions.js

@@ -17,6 +17,7 @@ function GPUDrawOptions() {
 	})
 }
 
+
 GPUDrawOptions.prototype.__get_depthTest = function() {
 	return Polycode.GPUDrawOptions__get_depthTest(this.__ptr)
 }

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

@@ -10,6 +10,7 @@ function GlyphData() {
 	})
 }
 
+
 GlyphData.prototype.__get_glyphs = function() {
 	var retVal = new FT_Glyph()
 	retVal.__ptr = 	Polycode.GlyphData__get_glyphs(this.__ptr)

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

@@ -4,6 +4,10 @@ function Image(fileName) {
 	}
 }
 
+Image.IMAGE_RGB = 0
+Image.IMAGE_RGBA = 1
+Image.IMAGE_FP16 = 2
+
 
 Image.prototype.BlankImage = function(width,height,type) {
 	var retVal = new Image()

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

@@ -21,7 +21,29 @@ function InputEvent() {
 	})
 }
 
-InputEvent.prototype = Object.create(Event.prototype);
+InputEvent.EVENTBASE_INPUTEVENT = 0x400
+InputEvent.EVENT_MOUSEDOWN = EVENTBASE_INPUTEVENT + 0
+InputEvent.EVENT_MOUSEUP = EVENTBASE_INPUTEVENT + 1
+InputEvent.EVENT_MOUSEMOVE = EVENTBASE_INPUTEVENT + 2
+InputEvent.EVENT_MOUSEOVER = EVENTBASE_INPUTEVENT + 3
+InputEvent.EVENT_MOUSEOUT = EVENTBASE_INPUTEVENT + 4
+InputEvent.EVENT_DOUBLECLICK = EVENTBASE_INPUTEVENT + 5
+InputEvent.EVENT_MOUSEUP_OUTSIDE = EVENTBASE_INPUTEVENT + 6
+InputEvent.EVENT_MOUSEWHEEL_UP = EVENTBASE_INPUTEVENT + 7
+InputEvent.EVENT_MOUSEWHEEL_DOWN = EVENTBASE_INPUTEVENT + 8
+InputEvent.EVENT_KEYDOWN = EVENTBASE_INPUTEVENT + 13
+InputEvent.EVENT_KEYUP = EVENTBASE_INPUTEVENT + 14
+InputEvent.EVENT_JOYBUTTON_DOWN = EVENTBASE_INPUTEVENT + 15
+InputEvent.EVENT_JOYBUTTON_UP = EVENTBASE_INPUTEVENT + 16
+InputEvent.EVENT_JOYAXIS_MOVED = EVENTBASE_INPUTEVENT + 17
+InputEvent.EVENT_JOYDEVICE_ATTACHED = EVENTBASE_INPUTEVENT + 18
+InputEvent.EVENT_JOYDEVICE_DETACHED = EVENTBASE_INPUTEVENT + 19
+InputEvent.EVENT_TOUCHES_BEGAN = EVENTBASE_INPUTEVENT + 20
+InputEvent.EVENT_TOUCHES_MOVED = EVENTBASE_INPUTEVENT + 21
+InputEvent.EVENT_TOUCHES_ENDED = EVENTBASE_INPUTEVENT + 22
+InputEvent.EVENT_TEXTINPUT = EVENTBASE_INPUTEVENT + 23
+
+InputEvent.prototype = Object.create(Event.prototype)
 
 InputEvent.prototype.__get_mouseButton = function() {
 	return Polycode.InputEvent__get_mouseButton(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/JoystickInfo.js

@@ -8,6 +8,7 @@ function JoystickInfo() {
 	})
 }
 
+
 JoystickInfo.prototype.__get_deviceID = function() {
 	return Polycode.JoystickInfo__get_deviceID(this.__ptr)
 }

+ 8 - 1
bindings/javascript/Polycode/Label.js

@@ -6,7 +6,14 @@ function Label(font,text,size,antiAliasMode,premultiplyAlpha,backgroundColor,for
 	}
 }
 
-Label.prototype = Object.create(Image.prototype);
+Label.ANTIALIAS_FULL = 0
+Label.ANTIALIAS_NONE = 1
+Label.ANTIALIAS_STRONG = 2
+Label.ANTIALIAS_LCD = 3
+Label.ANTIALIAS_LCD_HINT = 4
+Label.ANTIALIAS_FULL_HINT = 5
+
+Label.prototype = Object.create(Image.prototype)
 
 Duktape.fin(Label.prototype, function (x) {
 	if (x === Label.prototype) {

+ 1 - 0
bindings/javascript/Polycode/LightInfo.js

@@ -20,6 +20,7 @@ function LightInfo() {
 	})
 }
 
+
 LightInfo.prototype.__get_importance = function() {
 	return Polycode.LightInfo__get_importance(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/LightInfoBinding.js

@@ -4,6 +4,7 @@ function LightInfoBinding() {
 	}
 }
 
+
 Duktape.fin(LightInfoBinding.prototype, function (x) {
 	if (x === LightInfoBinding.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/LightShadowInfoBinding.js

@@ -4,6 +4,7 @@ function LightShadowInfoBinding() {
 	}
 }
 
+
 Duktape.fin(LightShadowInfoBinding.prototype, function (x) {
 	if (x === LightShadowInfoBinding.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/LocalShaderParam.js

@@ -12,6 +12,7 @@ function LocalShaderParam() {
 	})
 }
 
+
 LocalShaderParam.prototype.__get_name = function() {
 	return Polycode.LocalShaderParam__get_name(this.__ptr)
 }

+ 2 - 1
bindings/javascript/Polycode/Material.js

@@ -11,7 +11,8 @@ function Material(name) {
 	})
 }
 
-Material.prototype = Object.create(Resource.prototype);
+
+Material.prototype = Object.create(Resource.prototype)
 
 Material.prototype.__get_fp16RenderTargets = function() {
 	return Polycode.Material__get_fp16RenderTargets(this.__ptr)

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

@@ -4,6 +4,7 @@ function MaterialResourceLoader() {
 	}
 }
 
+
 Duktape.fin(MaterialResourceLoader.prototype, function (x) {
 	if (x === MaterialResourceLoader.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/Matrix4.js

@@ -4,6 +4,7 @@ function Matrix4() {
 	}
 }
 
+
 Duktape.fin(Matrix4.prototype, function (x) {
 	if (x === Matrix4.prototype) {
 		return;

+ 2 - 1
bindings/javascript/Polycode/Mesh.js

@@ -6,7 +6,8 @@ function Mesh() {
 	}
 }
 
-Mesh.prototype = Object.create(Resource.prototype);
+
+Mesh.prototype = Object.create(Resource.prototype)
 
 
 Mesh.prototype.MeshFromFileName = function(fileName) {

+ 8 - 0
bindings/javascript/Polycode/MeshGeometry.js

@@ -9,6 +9,14 @@ function MeshGeometry() {
 	})
 }
 
+MeshGeometry.TRISTRIP_MESH = 0
+MeshGeometry.TRI_MESH = 1
+MeshGeometry.TRIFAN_MESH = 2
+MeshGeometry.LINE_MESH = 4
+MeshGeometry.POINT_MESH = 5
+MeshGeometry.LINE_STRIP_MESH = 6
+MeshGeometry.LINE_LOOP_MESH = 7
+
 MeshGeometry.prototype.__get_meshType = function() {
 	return Polycode.MeshGeometry__get_meshType(this.__ptr)
 }

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

@@ -4,6 +4,7 @@ function MeshResourceLoader() {
 	}
 }
 
+
 Duktape.fin(MeshResourceLoader.prototype, function (x) {
 	if (x === MeshResourceLoader.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/MouseEventResult.js

@@ -8,6 +8,7 @@ function MouseEventResult() {
 	})
 }
 
+
 MouseEventResult.prototype.__get_hit = function() {
 	return Polycode.MouseEventResult__get_hit(this.__ptr)
 }

+ 3 - 0
bindings/javascript/Polycode/OSFileEntry.js

@@ -12,6 +12,9 @@ function OSFileEntry() {
 	})
 }
 
+OSFileEntry.TYPE_FILE = 0
+OSFileEntry.TYPE_FOLDER = 1
+
 OSFileEntry.prototype.__get_name = function() {
 	return Polycode.OSFileEntry__get_name(this.__ptr)
 }

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

@@ -13,6 +13,14 @@ function ObjectEntry() {
 	})
 }
 
+ObjectEntry.UNKNOWN_ENTRY = - 1
+ObjectEntry.FLOAT_ENTRY = 0
+ObjectEntry.INT_ENTRY = 1
+ObjectEntry.BOOL_ENTRY = 2
+ObjectEntry.ARRAY_ENTRY = 3
+ObjectEntry.STRING_ENTRY = 4
+ObjectEntry.CONTAINER_ENTRY = 5
+
 ObjectEntry.prototype.__get_type = function() {
 	return Polycode.ObjectEntry__get_type(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/Perlin.js

@@ -4,6 +4,7 @@ function Perlin(octaves,freq,amp,seed) {
 	}
 }
 
+
 Duktape.fin(Perlin.prototype, function (x) {
 	if (x === Perlin.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/PolycodeViewBase.js

@@ -7,6 +7,7 @@ function PolycodeViewBase() {
 	})
 }
 
+
 PolycodeViewBase.prototype.__get_resizable = function() {
 	return Polycode.PolycodeViewBase__get_resizable(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/ProgramAttribute.js

@@ -9,6 +9,7 @@ function ProgramAttribute() {
 	})
 }
 
+
 ProgramAttribute.prototype.__get_size = function() {
 	return Polycode.ProgramAttribute__get_size(this.__ptr)
 }

+ 9 - 0
bindings/javascript/Polycode/ProgramParam.js

@@ -9,6 +9,15 @@ function ProgramParam() {
 	})
 }
 
+ProgramParam.PARAM_UNKNOWN = 0
+ProgramParam.PARAM_NUMBER = 1
+ProgramParam.PARAM_VECTOR2 = 2
+ProgramParam.PARAM_VECTOR3 = 3
+ProgramParam.PARAM_COLOR = 4
+ProgramParam.PARAM_MATRIX = 5
+ProgramParam.PARAM_TEXTURE = 6
+ProgramParam.PARAM_CUBEMAP = 7
+
 ProgramParam.prototype.__get_name = function() {
 	return Polycode.ProgramParam__get_name(this.__ptr)
 }

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

@@ -4,6 +4,7 @@ function ProgramResourceLoader() {
 	}
 }
 
+
 Duktape.fin(ProgramResourceLoader.prototype, function (x) {
 	if (x === ProgramResourceLoader.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/QuatTriple.js

@@ -10,6 +10,7 @@ function QuatTriple() {
 	})
 }
 
+
 QuatTriple.prototype.__get_q1 = function() {
 	var retVal = new Quaternion()
 	retVal.__ptr = 	Polycode.QuatTriple__get_q1(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/Quaternion.js

@@ -10,6 +10,7 @@ function Quaternion(w,x,y,z) {
 	})
 }
 
+
 Quaternion.prototype.__get_x = function() {
 	return Polycode.Quaternion__get_x(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/QuaternionCurve.js

@@ -4,6 +4,7 @@ function QuaternionCurve(wCurve,xCurve,yCurve,zCurve) {
 	}
 }
 
+
 Duktape.fin(QuaternionCurve.prototype, function (x) {
 	if (x === QuaternionCurve.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/Ray.js

@@ -9,6 +9,7 @@ function Ray() {
 	})
 }
 
+
 Ray.prototype.__get_origin = function() {
 	var retVal = new Vector3()
 	retVal.__ptr = 	Polycode.Ray__get_origin(this.__ptr)

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

@@ -10,6 +10,7 @@ function Rectangle() {
 	})
 }
 
+
 Rectangle.prototype.__get_x = function() {
 	return Polycode.Rectangle__get_x(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/RenderBuffer.js

@@ -4,6 +4,7 @@ function RenderBuffer(width,height,attachDepthBuffer,floatingPoint) {
 	}
 }
 
+
 Duktape.fin(RenderBuffer.prototype, function (x) {
 	if (x === RenderBuffer.prototype) {
 		return;

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

@@ -8,6 +8,21 @@ function RenderDataArray(type) {
 	})
 }
 
+RenderDataArray.VERTEX_DATA_ARRAY = 0
+RenderDataArray.COLOR_DATA_ARRAY = 1
+RenderDataArray.NORMAL_DATA_ARRAY = 2
+RenderDataArray.TEXCOORD_DATA_ARRAY = 3
+RenderDataArray.TANGENT_DATA_ARRAY = 4
+RenderDataArray.BONE_WEIGHT_DATA_ARRAY = 5
+RenderDataArray.BONE_INDEX_DATA_ARRAY = 6
+RenderDataArray.INDEX_DATA_ARRAY = 7
+RenderDataArray.TEXCOORD2_DATA_ARRAY = 8
+RenderDataArray.CUSTOM_DATA_ARRAY1 = 9
+RenderDataArray.CUSTOM_DATA_ARRAY2 = 10
+RenderDataArray.CUSTOM_DATA_ARRAY3 = 11
+RenderDataArray.CUSTOM_DATA_ARRAY4 = 12
+RenderDataArray.UNKNOWN_DATA_ARRAY = 13
+
 RenderDataArray.prototype.__get_type = function() {
 	return Polycode.RenderDataArray__get_type(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/RenderFrame.js

@@ -4,6 +4,7 @@ function RenderFrame() {
 	}
 }
 
+
 Duktape.fin(RenderFrame.prototype, function (x) {
 	if (x === RenderFrame.prototype) {
 		return;

+ 5 - 0
bindings/javascript/Polycode/RenderTargetBinding.js

@@ -9,6 +9,11 @@ function RenderTargetBinding() {
 	})
 }
 
+RenderTargetBinding.MODE_IN = 0
+RenderTargetBinding.MODE_OUT = 1
+RenderTargetBinding.MODE_COLOR = 2
+RenderTargetBinding.MODE_DEPTH = 3
+
 RenderTargetBinding.prototype.__get_id = function() {
 	return Polycode.RenderTargetBinding__get_id(this.__ptr)
 }

+ 11 - 0
bindings/javascript/Polycode/RenderThread.js

@@ -4,6 +4,17 @@ 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
+RenderThread.JOB_DESTROY_SUBMESH_BUFFER = 11
+RenderThread.JOB_DESTROY_RENDER_BUFFER = 13
+RenderThread.JOB_SET_TEXTURE_PARAM = 14
+
 Duktape.fin(RenderThread.prototype, function (x) {
 	if (x === RenderThread.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/RenderThreadDebugInfo.js

@@ -9,6 +9,7 @@ function RenderThreadDebugInfo() {
 	})
 }
 
+
 RenderThreadDebugInfo.prototype.__get_buffersProcessed = function() {
 	return Polycode.RenderThreadDebugInfo__get_buffersProcessed(this.__ptr)
 }

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

@@ -1,6 +1,16 @@
 function Renderer() {
 }
 
+Renderer.BLEND_MODE_NONE = 0
+Renderer.BLEND_MODE_NORMAL = 1
+Renderer.BLEND_MODE_LIGHTEN = 2
+Renderer.BLEND_MODE_COLOR = 3
+Renderer.BLEND_MODE_PREMULTIPLIED = 4
+Renderer.BLEND_MODE_MULTIPLY = 5
+Renderer.BLEND_MODE_MATERIAL = 6
+Renderer.DEPTH_FUNCTION_GREATER = 0
+Renderer.DEPTH_FUNCTION_LEQUAL = 1
+
 Duktape.fin(Renderer.prototype, function (x) {
 	if (x === Renderer.prototype) {
 		return;

+ 1 - 0
bindings/javascript/Polycode/RendererThreadJob.js

@@ -7,6 +7,7 @@ function RendererThreadJob() {
 	})
 }
 
+
 RendererThreadJob.prototype.__get_jobType = function() {
 	return Polycode.RendererThreadJob__get_jobType(this.__ptr)
 }

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

@@ -10,7 +10,18 @@ function Resource(type) {
 	})
 }
 
-Resource.prototype = Object.create(EventDispatcher.prototype);
+Resource.RESOURCE_TEXTURE = 0
+Resource.RESOURCE_MATERIAL = 1
+Resource.RESOURCE_SHADER = 2
+Resource.RESOURCE_PROGRAM = 3
+Resource.RESOURCE_MESH = 5
+Resource.RESOURCE_CUBEMAP = 6
+Resource.RESOURCE_SPRITE = 7
+Resource.RESOURCE_ENTITY_INSTANCE = 8
+Resource.RESOURCE_FONT = 9
+Resource.RESOURCE_SCRIPT = 10
+
+Resource.prototype = Object.create(EventDispatcher.prototype)
 
 Resource.prototype.__get_reloadOnFileModify = function() {
 	return Polycode.Resource__get_reloadOnFileModify(this.__ptr)

+ 2 - 1
bindings/javascript/Polycode/ResourceManager.js

@@ -6,7 +6,8 @@ function ResourceManager() {
 	}
 }
 
-ResourceManager.prototype = Object.create(EventDispatcher.prototype);
+
+ResourceManager.prototype = Object.create(EventDispatcher.prototype)
 
 Duktape.fin(ResourceManager.prototype, function (x) {
 	if (x === ResourceManager.prototype) {

+ 2 - 1
bindings/javascript/Polycode/ResourcePool.js

@@ -12,7 +12,8 @@ function ResourcePool(name,fallbackPool) {
 	})
 }
 
-ResourcePool.prototype = Object.create(EventDispatcher.prototype);
+
+ResourcePool.prototype = Object.create(EventDispatcher.prototype)
 
 ResourcePool.prototype.__get_reloadResourcesOnModify = function() {
 	return Polycode.ResourcePool__get_reloadResourcesOnModify(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/Rotation.js

@@ -9,6 +9,7 @@ function Rotation() {
 	})
 }
 
+
 Rotation.prototype.__get_pitch = function() {
 	return Polycode.Rotation__get_pitch(this.__ptr)
 }

+ 5 - 1
bindings/javascript/Polycode/Scene.js

@@ -19,7 +19,11 @@ function Scene(sceneType,virtualScene) {
 	})
 }
 
-Scene.prototype = Object.create(EventDispatcher.prototype);
+Scene.SCENE_3D = 0
+Scene.SCENE_2D = 1
+Scene.SCENE_2D_TOPLEFT = 2
+
+Scene.prototype = Object.create(EventDispatcher.prototype)
 
 Scene.prototype.__get_clearColor = function() {
 	var retVal = new Color()

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

@@ -10,7 +10,8 @@ function SceneCurve() {
 	})
 }
 
-SceneCurve.prototype = Object.create(SceneMesh.prototype);
+
+SceneCurve.prototype = Object.create(SceneMesh.prototype)
 
 SceneCurve.prototype.__get_renderCurve = function() {
 	return Polycode.SceneCurve__get_renderCurve(this.__ptr)

+ 2 - 1
bindings/javascript/Polycode/SceneEntityInstance.js

@@ -10,7 +10,8 @@ function SceneEntityInstance(parentScene,fileName) {
 	})
 }
 
-SceneEntityInstance.prototype = Object.create(Entity.prototype);
+
+SceneEntityInstance.prototype = Object.create(Entity.prototype)
 
 SceneEntityInstance.prototype.__get_cloneUsingReload = function() {
 	return Polycode.SceneEntityInstance__get_cloneUsingReload(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/SceneEntityInstanceLayer.js

@@ -10,6 +10,7 @@ function SceneEntityInstanceLayer(instance,name) {
 	})
 }
 
+
 SceneEntityInstanceLayer.prototype.__get_name = function() {
 	return Polycode.SceneEntityInstanceLayer__get_name(this.__ptr)
 }

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

@@ -6,7 +6,8 @@ function SceneEntityInstanceResourceEntry(instance) {
 	}
 }
 
-SceneEntityInstanceResourceEntry.prototype = Object.create(Resource.prototype);
+
+SceneEntityInstanceResourceEntry.prototype = Object.create(Resource.prototype)
 
 Duktape.fin(SceneEntityInstanceResourceEntry.prototype, function (x) {
 	if (x === SceneEntityInstanceResourceEntry.prototype) {

+ 2 - 1
bindings/javascript/Polycode/SceneLabel.js

@@ -9,7 +9,8 @@ function SceneLabel(text,size,fontName,amode,actualHeight) {
 	})
 }
 
-SceneLabel.prototype = Object.create(ScenePrimitive.prototype);
+
+SceneLabel.prototype = Object.create(ScenePrimitive.prototype)
 
 SceneLabel.prototype.__get_positionAtBaseline = function() {
 	return Polycode.SceneLabel__get_positionAtBaseline(this.__ptr)

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

@@ -6,7 +6,10 @@ function SceneLight(type,parentScene,intensity,constantAttenuation,linearAttenua
 	}
 }
 
-SceneLight.prototype = Object.create(Entity.prototype);
+SceneLight.POINT_LIGHT = 0
+SceneLight.SPOT_LIGHT = 1
+
+SceneLight.prototype = Object.create(Entity.prototype)
 
 
 SceneLight.prototype.getIntensity = function() {

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

@@ -6,7 +6,8 @@ function SceneLine(ent1,ent2) {
 	}
 }
 
-SceneLine.prototype = Object.create(SceneMesh.prototype);
+
+SceneLine.prototype = Object.create(SceneMesh.prototype)
 
 
 SceneLine.prototype.SceneLineWithPositions = function(startp,endp) {

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

@@ -4,6 +4,7 @@ function SceneManager() {
 	}
 }
 
+
 Duktape.fin(SceneManager.prototype, function (x) {
 	if (x === SceneManager.prototype) {
 		return;

+ 2 - 1
bindings/javascript/Polycode/SceneMesh.js

@@ -15,7 +15,8 @@ function SceneMesh(fileName) {
 	})
 }
 
-SceneMesh.prototype = Object.create(Entity.prototype);
+
+SceneMesh.prototype = Object.create(Entity.prototype)
 
 SceneMesh.prototype.__get_lineWidth = function() {
 	return Polycode.SceneMesh__get_lineWidth(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/SceneParticle.js

@@ -15,6 +15,7 @@ function SceneParticle() {
 	})
 }
 
+
 SceneParticle.prototype.__get_lifetime = function() {
 	return Polycode.SceneParticle__get_lifetime(this.__ptr)
 }

+ 5 - 1
bindings/javascript/Polycode/SceneParticleEmitter.js

@@ -16,7 +16,11 @@ function SceneParticleEmitter(particleCount,lifetime,speed) {
 	})
 }
 
-SceneParticleEmitter.prototype = Object.create(SceneMesh.prototype);
+SceneParticleEmitter.PARTICLE_TYPE_POINT = 0
+SceneParticleEmitter.PARTICLE_TYPE_QUAD = 1
+SceneParticleEmitter.PARTICLE_TYPE_MESH = 2
+
+SceneParticleEmitter.prototype = Object.create(SceneMesh.prototype)
 
 SceneParticleEmitter.prototype.__get_useScaleCurve = function() {
 	return Polycode.SceneParticleEmitter__get_useScaleCurve(this.__ptr)

+ 14 - 1
bindings/javascript/Polycode/ScenePrimitive.js

@@ -6,7 +6,20 @@ function ScenePrimitive(type,v1,v2,v3,v4,v5) {
 	}
 }
 
-ScenePrimitive.prototype = Object.create(SceneMesh.prototype);
+ScenePrimitive.TYPE_BOX = 0
+ScenePrimitive.TYPE_PLANE = 1
+ScenePrimitive.TYPE_VPLANE = 2
+ScenePrimitive.TYPE_CYLINDER = 3
+ScenePrimitive.TYPE_UNCAPPED_CYLINDER = 4
+ScenePrimitive.TYPE_SPHERE = 5
+ScenePrimitive.TYPE_TORUS = 6
+ScenePrimitive.TYPE_CONE = 7
+ScenePrimitive.TYPE_CIRCLE = 8
+ScenePrimitive.TYPE_ICOSPHERE = 9
+ScenePrimitive.TYPE_OCTOSPHERE = 10
+ScenePrimitive.TYPE_LINE_CIRCLE = 11
+
+ScenePrimitive.prototype = Object.create(SceneMesh.prototype)
 
 
 ScenePrimitive.prototype.setPrimitiveOptions = function(type,v1,v2,v3,v4,v5) {

+ 1 - 0
bindings/javascript/Polycode/SceneRenderTexture.js

@@ -7,6 +7,7 @@ function SceneRenderTexture(targetScene,targetCamera,renderWidth,renderHeight,fl
 	})
 }
 
+
 SceneRenderTexture.prototype.__get_enabled = function() {
 	return Polycode.SceneRenderTexture__get_enabled(this.__ptr)
 }

+ 2 - 1
bindings/javascript/Polycode/SceneSound.js

@@ -6,7 +6,8 @@ function SceneSound(fileName,referenceDistance,maxDistance,directionalSound) {
 	}
 }
 
-SceneSound.prototype = Object.create(Entity.prototype);
+
+SceneSound.prototype = Object.create(Entity.prototype)
 
 
 SceneSound.prototype.Update = function() {

+ 2 - 1
bindings/javascript/Polycode/SceneSoundListener.js

@@ -6,7 +6,8 @@ function SceneSoundListener() {
 	}
 }
 
-SceneSoundListener.prototype = Object.create(Entity.prototype);
+
+SceneSoundListener.prototype = Object.create(Entity.prototype)
 
 Duktape.fin(SceneSoundListener.prototype, function (x) {
 	if (x === SceneSoundListener.prototype) {

+ 2 - 1
bindings/javascript/Polycode/SceneSprite.js

@@ -6,7 +6,8 @@ function SceneSprite(spriteSet) {
 	}
 }
 
-SceneSprite.prototype = Object.create(SceneMesh.prototype);
+
+SceneSprite.prototype = Object.create(SceneMesh.prototype)
 
 
 SceneSprite.prototype.Clone = function(deepClone,ignoreEditorOnly) {

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

@@ -7,6 +7,7 @@ function ScriptInstance() {
 	})
 }
 
+
 ScriptInstance.prototype.__get_script = function() {
 	var retVal = new Script()
 	retVal.__ptr = 	Polycode.ScriptInstance__get_script(this.__ptr)

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

@@ -4,6 +4,7 @@ function ScriptResourceLoader() {
 	}
 }
 
+
 Duktape.fin(ScriptResourceLoader.prototype, function (x) {
 	if (x === ScriptResourceLoader.prototype) {
 		return;

+ 2 - 1
bindings/javascript/Polycode/Shader.js

@@ -9,7 +9,8 @@ function Shader() {
 	})
 }
 
-Shader.prototype = Object.create(Resource.prototype);
+
+Shader.prototype = Object.create(Resource.prototype)
 
 Shader.prototype.__get_numSpotLights = function() {
 	return Polycode.Shader__get_numSpotLights(this.__ptr)

+ 1 - 0
bindings/javascript/Polycode/ShaderBinding.js

@@ -7,6 +7,7 @@ function ShaderBinding() {
 	})
 }
 
+
 ShaderBinding.prototype.__get_accessMutex = function() {
 	var retVal = new CoreMutex()
 	retVal.__ptr = 	Polycode.ShaderBinding__get_accessMutex(this.__ptr)

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

@@ -8,6 +8,7 @@ function ShaderPass() {
 	})
 }
 
+
 ShaderPass.prototype.__get_wireframe = function() {
 	return Polycode.ShaderPass__get_wireframe(this.__ptr)
 }

+ 1 - 0
bindings/javascript/Polycode/ShaderPlatformData.js

@@ -9,6 +9,7 @@ function ShaderPlatformData() {
 	})
 }
 
+
 ShaderPlatformData.prototype.__get_shaderID = function() {
 	var retVal = new GLuint()
 	retVal.__ptr = 	Polycode.ShaderPlatformData__get_shaderID(this.__ptr)

+ 4 - 1
bindings/javascript/Polycode/ShaderProgram.js

@@ -9,7 +9,10 @@ function ShaderProgram(fileName) {
 	})
 }
 
-ShaderProgram.prototype = Object.create(Resource.prototype);
+ShaderProgram.TYPE_VERT = 0
+ShaderProgram.TYPE_FRAG = 1
+
+ShaderProgram.prototype = Object.create(Resource.prototype)
 
 ShaderProgram.prototype.__get_type = function() {
 	return Polycode.ShaderProgram__get_type(this.__ptr)

+ 3 - 0
bindings/javascript/Polycode/ShaderRenderTarget.js

@@ -12,6 +12,9 @@ function ShaderRenderTarget() {
 	})
 }
 
+ShaderRenderTarget.SIZE_MODE_PIXELS = 0
+ShaderRenderTarget.SIZE_MODE_NORMALIZED = 1
+
 ShaderRenderTarget.prototype.__get_id = function() {
 	return Polycode.ShaderRenderTarget__get_id(this.__ptr)
 }

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

@@ -6,7 +6,8 @@ function Skeleton(fileName) {
 	}
 }
 
-Skeleton.prototype = Object.create(Entity.prototype);
+
+Skeleton.prototype = Object.create(Entity.prototype)
 
 Duktape.fin(Skeleton.prototype, function (x) {
 	if (x === Skeleton.prototype) {

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

@@ -4,6 +4,7 @@ function SkeletonAnimation(name,duration) {
 	}
 }
 
+
 Duktape.fin(SkeletonAnimation.prototype, function (x) {
 	if (x === SkeletonAnimation.prototype) {
 		return;

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