UNPKG

1.08 kBSource Map (JSON)View Raw
1{"version":3,"file":"BatchTextureArray.mjs","sources":["../../src/batch/BatchTextureArray.ts"],"sourcesContent":["import type { BaseTexture } from '../textures/BaseTexture';\n\n/**\n * Used by the batcher to build texture batches.\n * Holds list of textures and their respective locations.\n * @memberof PIXI\n */\nexport class BatchTextureArray\n{\n /** Inside textures array. */\n public elements: BaseTexture[];\n\n /** Respective locations for textures. */\n public ids: number[];\n\n /** Number of filled elements. */\n public count: number;\n\n constructor()\n {\n this.elements = [];\n this.ids = [];\n this.count = 0;\n }\n\n clear(): void\n {\n for (let i = 0; i < this.count; i++)\n {\n this.elements[i] = null;\n }\n this.count = 0;\n }\n}\n"],"names":[],"mappings":"AAOO,MAAM,kBACb;AAAA,EAUI,cACA;AACS,SAAA,WAAW,CAAA,GAChB,KAAK,MAAM,IACX,KAAK,QAAQ;AAAA,EACjB;AAAA,EAEA,QACA;AACI,aAAS,IAAI,GAAG,IAAI,KAAK,OAAO;AAEvB,WAAA,SAAS,CAAC,IAAI;AAEvB,SAAK,QAAQ;AAAA,EACjB;AACJ;"}
\No newline at end of file