@awayjs/stage
Version:
Stage for AwayJS
38 lines (37 loc) • 1.49 kB
JavaScript
import { __extends } from "tslib";
import { AttributesView } from './AttributesView';
var Float4Attributes = /** @class */ (function (_super) {
__extends(Float4Attributes, _super);
function Float4Attributes(attributesBufferLength) {
return _super.call(this, Float32Array, 4, attributesBufferLength) || this;
}
Object.defineProperty(Float4Attributes.prototype, "assetType", {
/**
*
* @returns {string}
*/
get: function () {
return Float4Attributes.assetType;
},
enumerable: false,
configurable: true
});
Float4Attributes.prototype.set = function (values, offset) {
if (offset === void 0) { offset = 0; }
_super.prototype.set.call(this, values, offset);
};
Float4Attributes.prototype.get = function (count, offset) {
if (offset === void 0) { offset = 0; }
return _super.prototype.get.call(this, count, offset);
};
Float4Attributes.prototype._internalClone = function (attributesBuffer) {
return (this._cloneCache = new Float4Attributes(attributesBuffer));
};
Float4Attributes.prototype.clone = function (attributesBuffer) {
if (attributesBuffer === void 0) { attributesBuffer = null; }
return _super.prototype.clone.call(this, attributesBuffer);
};
Float4Attributes.assetType = '[attributes Float4Attributes]';
return Float4Attributes;
}(AttributesView));
export { Float4Attributes };