SceneLight.js 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. function SceneLight() {
  2. }
  3. SceneLight.prototype.getIntensity = function() {
  4. Polycode.SceneLight_getIntensity(this.__ptr)
  5. }
  6. SceneLight.prototype.setIntensity = function(newIntensity) {
  7. Polycode.SceneLight_setIntensity(this.__ptr, newIntensity)
  8. }
  9. SceneLight.prototype.setAttenuation = function(constantAttenuation,linearAttenuation,quadraticAttenuation) {
  10. Polycode.SceneLight_setAttenuation(this.__ptr, constantAttenuation,linearAttenuation,quadraticAttenuation)
  11. }
  12. SceneLight.prototype.getConstantAttenuation = function() {
  13. Polycode.SceneLight_getConstantAttenuation(this.__ptr)
  14. }
  15. SceneLight.prototype.getLinearAttenuation = function() {
  16. Polycode.SceneLight_getLinearAttenuation(this.__ptr)
  17. }
  18. SceneLight.prototype.getQuadraticAttenuation = function() {
  19. Polycode.SceneLight_getQuadraticAttenuation(this.__ptr)
  20. }
  21. SceneLight.prototype.getType = function() {
  22. Polycode.SceneLight_getType(this.__ptr)
  23. }
  24. SceneLight.prototype.renderDepthMap = function(scene) {
  25. Polycode.SceneLight_renderDepthMap(this.__ptr, scene)
  26. }
  27. SceneLight.prototype.getZBufferTexture = function() {
  28. Polycode.SceneLight_getZBufferTexture(this.__ptr)
  29. }
  30. SceneLight.prototype.setSpecularLightColor = function(r,g,b,a) {
  31. Polycode.SceneLight_setSpecularLightColor(this.__ptr, r,g,b,a)
  32. }
  33. SceneLight.prototype.setDiffuseLightColor = function(r,g,b,a) {
  34. Polycode.SceneLight_setDiffuseLightColor(this.__ptr, r,g,b,a)
  35. }
  36. SceneLight.prototype.setLightColor = function(r,g,b,a) {
  37. Polycode.SceneLight_setLightColor(this.__ptr, r,g,b,a)
  38. }
  39. SceneLight.prototype.setSpotlightProperties = function(spotlightCutoff,spotlightExponent) {
  40. Polycode.SceneLight_setSpotlightProperties(this.__ptr, spotlightCutoff,spotlightExponent)
  41. }
  42. SceneLight.prototype.getSpotlightCutoff = function() {
  43. Polycode.SceneLight_getSpotlightCutoff(this.__ptr)
  44. }
  45. SceneLight.prototype.getSpotlightExponent = function() {
  46. Polycode.SceneLight_getSpotlightExponent(this.__ptr)
  47. }
  48. SceneLight.prototype.enableShadows = function(val,resolution) {
  49. Polycode.SceneLight_enableShadows(this.__ptr, val,resolution)
  50. }
  51. SceneLight.prototype.setShadowMapFOV = function(fov) {
  52. Polycode.SceneLight_setShadowMapFOV(this.__ptr, fov)
  53. }
  54. SceneLight.prototype.getShadowMapFOV = function() {
  55. Polycode.SceneLight_getShadowMapFOV(this.__ptr)
  56. }
  57. SceneLight.prototype.getShadowMapResolution = function() {
  58. Polycode.SceneLight_getShadowMapResolution(this.__ptr)
  59. }
  60. SceneLight.prototype.areShadowsEnabled = function() {
  61. Polycode.SceneLight_areShadowsEnabled(this.__ptr)
  62. }
  63. SceneLight.prototype.getLightType = function() {
  64. Polycode.SceneLight_getLightType(this.__ptr)
  65. }
  66. SceneLight.prototype.setLightImportance = function(newImportance) {
  67. Polycode.SceneLight_setLightImportance(this.__ptr, newImportance)
  68. }
  69. SceneLight.prototype.getLightImportance = function() {
  70. Polycode.SceneLight_getLightImportance(this.__ptr)
  71. }
  72. SceneLight.prototype.setLightType = function(lightType) {
  73. Polycode.SceneLight_setLightType(this.__ptr, lightType)
  74. }
  75. SceneLight.prototype.Clone = function(deepClone,ignoreEditorOnly) {
  76. Polycode.SceneLight_Clone(this.__ptr, deepClone,ignoreEditorOnly)
  77. }
  78. SceneLight.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
  79. Polycode.SceneLight_applyClone(this.__ptr, clone,deepClone,ignoreEditorOnly)
  80. }
  81. SceneLight.prototype.getParentScene = function() {
  82. Polycode.SceneLight_getParentScene(this.__ptr)
  83. }
  84. SceneLight.prototype.setParentScene = function(scene) {
  85. Polycode.SceneLight_setParentScene(this.__ptr, scene)
  86. }
  87. SceneLight.prototype.getSpotlightCamera = function() {
  88. Polycode.SceneLight_getSpotlightCamera(this.__ptr)
  89. }
  90. SceneLight.prototype.getLightInfo = function() {
  91. Polycode.SceneLight_getLightInfo(this.__ptr)
  92. }