Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
currentGroup.textures.elements[currentGroup.textures.count++] = nextTexture;
textureCount++;
}
}
currentGroup.size += data.size;
index += data.size;
textureId = nextTexture._batchLocation;
this.addColors(colors, style.color, style.alpha, data.attribSize);
this.addTextureIds(textureIds, textureId, data.attribSize);
}
BaseTexture._globalBatch = TICK;
// upload..
// merge for now!
this.packAttributes();
}
buildDrawCalls()
{
let TICK = ++BaseTexture._globalBatch;
for (let i = 0; i < this.drawCalls.length; i++)
{
this.drawCalls[i].textures.length = 0;
DRAW_CALL_POOL.push(this.drawCalls[i]);
}
this.drawCalls.length = 0;
const colors = this.colors;
const textureIds = this.textureIds;
let currentGroup = DRAW_CALL_POOL.pop();
if (!currentGroup)
{