Package playn.core
Class TexturedBatch
java.lang.Object
playn.core.GLBatch
playn.core.TexturedBatch
- All Implemented Interfaces:
AutoCloseable,Closeable
- Direct Known Subclasses:
QuadBatch
A batch that renders textured primitives.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classProvides some standard bits for a shader program that uses a tint and a texture.Nested classes/interfaces inherited from interface react.Closeable
Closeable.Set, Closeable.Util -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidend()Must be called when one is done using this batch to accumulate and send drawing commands.voidsetTexture(Texture texture) Prepares this batch to render using the supplied texture.
-
Field Details
-
gl
-
-
Method Details
-
setTexture
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 aGLBatch.flush().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. -
end
public 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 callsGLBatch.flush()and marks this batch as inactive.
-