UNPKG

1.04 kBSource Map (JSON)View Raw
1{"version":3,"file":"BatchDrawCall.mjs","sources":["../../src/batch/BatchDrawCall.ts"],"sourcesContent":["import { DRAW_MODES } from '@pixi/constants';\n\nimport type { BLEND_MODES } from '@pixi/constants';\nimport type { BatchTextureArray } from './BatchTextureArray';\n\n/**\n * Used by the batcher to draw batches.\n * Each one of these contains all information required to draw a bound geometry.\n * @memberof PIXI\n */\nexport class BatchDrawCall\n{\n texArray: BatchTextureArray;\n type: DRAW_MODES;\n blend: BLEND_MODES;\n start: number;\n size: number;\n\n /** Data for uniforms or custom webgl state. */\n data: any;\n\n constructor()\n {\n this.texArray = null;\n this.blend = 0;\n this.type = DRAW_MODES.TRIANGLES;\n\n this.start = 0;\n this.size = 0;\n\n this.data = null;\n }\n}\n"],"names":[],"mappings":";AAUO,MAAM,cACb;AAAA,EAUI,cACA;AACI,SAAK,WAAW,MAChB,KAAK,QAAQ,GACb,KAAK,OAAO,WAAW,WAEvB,KAAK,QAAQ,GACb,KAAK,OAAO,GAEZ,KAAK,OAAO;AAAA,EAChB;AACJ;"}
\No newline at end of file