MCPcopy Create free account
hub / github.com/axmolengine/axmol / fillWithEmptyQuadsFromIndex

Method fillWithEmptyQuadsFromIndex

core/renderer/TextureAtlas.cpp:468–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

466}
467
468void TextureAtlas::fillWithEmptyQuadsFromIndex(ssize_t index, ssize_t amount)
469{
470 AXASSERT(index >= 0 && amount >= 0, "values must be >= 0");
471 V3F_C4B_T2F_Quad quad;
472 memset(&quad, 0, sizeof(quad));
473
474 auto to = index + amount;
475 for (ssize_t i = index; i < to; i++)
476 {
477 _quads[i] = quad;
478 }
479}
480
481}

Callers 2

removeChildMethod · 0.80
insertChildMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected