SceneMesh.js 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. function SceneMesh() {
  2. }
  3. SceneMesh.prototype.Render = function(buffer) {
  4. Polycode.SceneMesh_Render(this.__ptr, buffer)
  5. }
  6. SceneMesh.prototype.getShaderPass = function(index) {
  7. Polycode.SceneMesh_getShaderPass(this.__ptr, index)
  8. }
  9. SceneMesh.prototype.getNumShaderPasses = function() {
  10. Polycode.SceneMesh_getNumShaderPasses(this.__ptr)
  11. }
  12. SceneMesh.prototype.addShaderPass = function(pass) {
  13. Polycode.SceneMesh_addShaderPass(this.__ptr, pass)
  14. }
  15. SceneMesh.prototype.removeShaderPass = function(shaderIndex) {
  16. Polycode.SceneMesh_removeShaderPass(this.__ptr, shaderIndex)
  17. }
  18. SceneMesh.prototype.getMesh = function() {
  19. Polycode.SceneMesh_getMesh(this.__ptr)
  20. }
  21. SceneMesh.prototype.getMaterial = function() {
  22. Polycode.SceneMesh_getMaterial(this.__ptr)
  23. }
  24. SceneMesh.prototype.loadSkeleton = function(fileName) {
  25. Polycode.SceneMesh_loadSkeleton(this.__ptr, fileName)
  26. }
  27. SceneMesh.prototype.clearMaterial = function() {
  28. Polycode.SceneMesh_clearMaterial(this.__ptr)
  29. }
  30. SceneMesh.prototype.setMaterial = function(material) {
  31. Polycode.SceneMesh_setMaterial(this.__ptr, material)
  32. }
  33. SceneMesh.prototype.rebuildAttributes = function() {
  34. Polycode.SceneMesh_rebuildAttributes(this.__ptr)
  35. }
  36. SceneMesh.prototype.setMaterialByName = function(materialName,resourcePool) {
  37. Polycode.SceneMesh_setMaterialByName(this.__ptr, materialName,resourcePool)
  38. }
  39. SceneMesh.prototype.setMesh = function(mesh) {
  40. Polycode.SceneMesh_setMesh(this.__ptr, mesh)
  41. }
  42. SceneMesh.prototype.setSkeleton = function(skeleton) {
  43. Polycode.SceneMesh_setSkeleton(this.__ptr, skeleton)
  44. }
  45. SceneMesh.prototype.getSkeleton = function() {
  46. Polycode.SceneMesh_getSkeleton(this.__ptr)
  47. }
  48. SceneMesh.prototype.applySkeletonLocally = function() {
  49. Polycode.SceneMesh_applySkeletonLocally(this.__ptr)
  50. }
  51. SceneMesh.prototype.setLineWidth = function(newWidth) {
  52. Polycode.SceneMesh_setLineWidth(this.__ptr, newWidth)
  53. }
  54. SceneMesh.prototype.getFilename = function() {
  55. Polycode.SceneMesh_getFilename(this.__ptr)
  56. }
  57. SceneMesh.prototype.setFilename = function(fileName) {
  58. Polycode.SceneMesh_setFilename(this.__ptr, fileName)
  59. }
  60. SceneMesh.prototype.loadFromFile = function(fileName) {
  61. Polycode.SceneMesh_loadFromFile(this.__ptr, fileName)
  62. }
  63. SceneMesh.prototype.customHitDetection = function(ray) {
  64. Polycode.SceneMesh_customHitDetection(this.__ptr, ray)
  65. }
  66. SceneMesh.prototype.setForceMaterial = function(forceMaterial) {
  67. Polycode.SceneMesh_setForceMaterial(this.__ptr, forceMaterial)
  68. }
  69. SceneMesh.prototype.getForceMaterial = function() {
  70. Polycode.SceneMesh_getForceMaterial(this.__ptr)
  71. }
  72. SceneMesh.prototype.Clone = function(deepClone,ignoreEditorOnly) {
  73. Polycode.SceneMesh_Clone(this.__ptr, deepClone,ignoreEditorOnly)
  74. }
  75. SceneMesh.prototype.applyClone = function(clone,deepClone,ignoreEditorOnly) {
  76. Polycode.SceneMesh_applyClone(this.__ptr, clone,deepClone,ignoreEditorOnly)
  77. }