Class: Batcher

Batcher

A batcher is used to batch together objects with the same texture.

Methods

break (instructionSet)

breaks the batcher. This happens when a batch gets too big, or we need to switch to a different type of rendering (a filter for example)

Name Type Description
instructionSet InstructionSet

ensureAttributeBuffer (size)

Resizes the attribute buffer to the given size (1 = 1 float32)

Name Type Description
size number

the size in vertices to ensure (not bytes!)

ensureIndexBuffer (size)

Resizes the index buffer to the given size (1 = 1 float32)

Name Type Description
size number

the size in vertices to ensure (not bytes!)