| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- require('Polycode/Entity')
- function SceneMesh() {
- if(arguments[0] != "__skip_ptr__") {
- this.__ptr = Polycode.SceneMesh()
- }
- Object.defineProperties(this, {
- 'lineWidth': { enumerable: true, configurable: true, get: SceneMesh.prototype.__get_lineWidth, set: SceneMesh.prototype.__set_lineWidth},
- 'lineSmooth': { enumerable: true, configurable: true, get: SceneMesh.prototype.__get_lineSmooth, set: SceneMesh.prototype.__set_lineSmooth},
- 'pointSmooth': { enumerable: true, configurable: true, get: SceneMesh.prototype.__get_pointSmooth, set: SceneMesh.prototype.__set_pointSmooth},
- 'useGeometryHitDetection': { enumerable: true, configurable: true, get: SceneMesh.prototype.__get_useGeometryHitDetection, set: SceneMesh.prototype.__set_useGeometryHitDetection},
- 'backfaceCulled': { enumerable: true, configurable: true, get: SceneMesh.prototype.__get_backfaceCulled, set: SceneMesh.prototype.__set_backfaceCulled},
- 'sendBoneMatricesToMaterial': { enumerable: true, configurable: true, get: SceneMesh.prototype.__get_sendBoneMatricesToMaterial, set: SceneMesh.prototype.__set_sendBoneMatricesToMaterial}
- })
- }
- SceneMesh.prototype = Object.create(Entity.prototype)
- SceneMesh.prototype.__get_lineWidth = function() {
- return Polycode.SceneMesh__get_lineWidth(this.__ptr)
- }
- SceneMesh.prototype.__set_lineWidth = function(val) {
- Polycode.SceneMesh__set_lineWidth(this.__ptr, val)
- }
- SceneMesh.prototype.__get_lineSmooth = function() {
- return Polycode.SceneMesh__get_lineSmooth(this.__ptr)
- }
- SceneMesh.prototype.__set_lineSmooth = function(val) {
- Polycode.SceneMesh__set_lineSmooth(this.__ptr, val)
- }
- SceneMesh.prototype.__get_pointSmooth = function() {
- return Polycode.SceneMesh__get_pointSmooth(this.__ptr)
- }
- SceneMesh.prototype.__set_pointSmooth = function(val) {
- Polycode.SceneMesh__set_pointSmooth(this.__ptr, val)
- }
- SceneMesh.prototype.__get_useGeometryHitDetection = function() {
- return Polycode.SceneMesh__get_useGeometryHitDetection(this.__ptr)
- }
- SceneMesh.prototype.__set_useGeometryHitDetection = function(val) {
- Polycode.SceneMesh__set_useGeometryHitDetection(this.__ptr, val)
- }
- SceneMesh.prototype.__get_backfaceCulled = function() {
- return Polycode.SceneMesh__get_backfaceCulled(this.__ptr)
- }
- SceneMesh.prototype.__set_backfaceCulled = function(val) {
- Polycode.SceneMesh__set_backfaceCulled(this.__ptr, val)
- }
- SceneMesh.prototype.__get_sendBoneMatricesToMaterial = function() {
- return Polycode.SceneMesh__get_sendBoneMatricesToMaterial(this.__ptr)
- }
- SceneMesh.prototype.__set_sendBoneMatricesToMaterial = function(val) {
- Polycode.SceneMesh__set_sendBoneMatricesToMaterial(this.__ptr, val)
- }
- SceneMesh.prototype.getShaderPass = function(index) {
- var retVal = new ShaderPass("__skip_ptr__")
- retVal.__ptr = Polycode.SceneMesh_getShaderPass(this.__ptr, index)
- return retVal
- }
- SceneMesh.prototype.getNumShaderPasses = function() {
- return Polycode.SceneMesh_getNumShaderPasses(this.__ptr)
- }
- SceneMesh.prototype.addShaderPass = function(pass) {
- Polycode.SceneMesh_addShaderPass(this.__ptr, pass)
- }
- SceneMesh.prototype.removeShaderPass = function(shaderIndex) {
- Polycode.SceneMesh_removeShaderPass(this.__ptr, shaderIndex)
- }
- SceneMesh.prototype.getMesh = function() {
- var retVal = new Mesh("__skip_ptr__")
- retVal.__ptr = Polycode.SceneMesh_getMesh(this.__ptr)
- return retVal
- }
- SceneMesh.prototype.getMaterial = function() {
- var retVal = new Material("__skip_ptr__")
- retVal.__ptr = Polycode.SceneMesh_getMaterial(this.__ptr)
- return retVal
- }
- SceneMesh.prototype.clearMaterial = function() {
- Polycode.SceneMesh_clearMaterial(this.__ptr)
- }
- SceneMesh.prototype.setMaterial = function(material) {
- Polycode.SceneMesh_setMaterial(this.__ptr, material)
- }
- SceneMesh.prototype.setMesh = function(mesh) {
- Polycode.SceneMesh_setMesh(this.__ptr, mesh)
- }
- SceneMesh.prototype.setSkeleton = function(skeleton) {
- Polycode.SceneMesh_setSkeleton(this.__ptr, skeleton)
- }
- SceneMesh.prototype.getSkeleton = function() {
- var retVal = new Skeleton("__skip_ptr__")
- retVal.__ptr = Polycode.SceneMesh_getSkeleton(this.__ptr)
- return retVal
- }
- SceneMesh.prototype.setLineWidth = function(newWidth) {
- Polycode.SceneMesh_setLineWidth(this.__ptr, newWidth)
- }
- SceneMesh.prototype.getFilename = function() {
- return Polycode.SceneMesh_getFilename(this.__ptr)
- }
- SceneMesh.prototype.setFilename = function(fileName) {
- Polycode.SceneMesh_setFilename(this.__ptr, fileName)
- }
- SceneMesh.prototype.customHitDetection = function(ray) {
- return Polycode.SceneMesh_customHitDetection(this.__ptr, ray)
- }
- SceneMesh.prototype.setForceMaterial = function(forceMaterial) {
- Polycode.SceneMesh_setForceMaterial(this.__ptr, forceMaterial)
- }
- SceneMesh.prototype.getForceMaterial = function() {
- return Polycode.SceneMesh_getForceMaterial(this.__ptr)
- }
|