wggl
Version:
A friendly interface to shaders
20 lines (19 loc) • 730 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var primitives_1 = require("./primitives");
// Classes for storing state related to various buffer types before actually reading the buffers
var Attr = /** @class */ (function () {
function Attr(size, stride, offset, normalize) {
if (size === void 0) { size = 1; }
if (stride === void 0) { stride = 0; }
if (offset === void 0) { offset = 0; }
if (normalize === void 0) { normalize = false; }
this.size = size;
this.stride = stride;
this.offset = offset;
this.normalize = normalize;
this.glType = primitives_1.GlType.attribute;
}
return Attr;
}());
exports.Attr = Attr;