- Direct Known Subclasses:
public class TexturedBatch extends GLBatch
A batch that renders textured primitives.
Nested Class SummaryModifier and TypeClassDescription
static classProvides some standard bits for a shader program that uses a tint and a texture.
glpublic final GL20 gl
setTexturepublic void setTexture
(Texture texture)Prepares this batch to render using the supplied texture. If pending operations have been added to this batch for a different texture, this call will trigger a
Note: if you call
addmethods that take a texture, you do not need to call this method manually. Only if you're adding bare primitives is it needed.
endpublic void end()Description copied from class:
GLBatchMust be called when one is done using this batch to accumulate and send drawing commands. The default implementation calls
GLBatch.flush()and marks this batch as inactive.