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
Modifier and TypeClassDescriptionstatic class
Provides 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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
end()
Must be called when one is done using this batch to accumulate and send drawing commands.void
setTexture
(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
add
methods 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:GLBatch
Must 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.
-