| 123456789101112131415161718192021222324252627282930313233343536373839 |
- 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}
- })
- }
- ProgramParam.prototype.__get_name = function() {
- return Polycode.ProgramParam__get_name(this.__ptr)
- }
- ProgramParam.prototype.__set_name = function(val) {
- Polycode.ProgramParam__set_name(this.__ptr, val)
- }
- ProgramParam.prototype.__get_type = function() {
- return Polycode.ProgramParam__get_type(this.__ptr)
- }
- 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)
- })
|