1 | import { TYPES } from '@pixi/constants';
|
2 | import { Buffer } from '../geometry/Buffer.mjs';
|
3 | import { Geometry } from '../geometry/Geometry.mjs';
|
4 |
|
5 | class BatchGeometry extends Geometry {
|
6 | constructor(_static = false) {
|
7 | super();
|
8 | this._buffer = new Buffer(null, _static, false);
|
9 | this._indexBuffer = new Buffer(null, _static, true);
|
10 | this.addAttribute("aVertexPosition", this._buffer, 2, false, TYPES.FLOAT).addAttribute("aTextureCoord", this._buffer, 2, false, TYPES.FLOAT).addAttribute("aColor", this._buffer, 4, true, TYPES.UNSIGNED_BYTE).addAttribute("aTextureId", this._buffer, 1, true, TYPES.FLOAT).addIndex(this._indexBuffer);
|
11 | }
|
12 | }
|
13 |
|
14 | export { BatchGeometry };
|
15 |
|