| Modifier and Type | Class and Description |
|---|---|
static class |
TexturedBatch.Source
Provides some standard bits for a shader program that uses a tint and a texture.
|
Closeable.Set, Closeable.Util| Modifier and Type | Method and Description |
|---|---|
void |
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.
|
public final GL20 gl
public void setTexture(Texture texture)
GLBatch.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.
public void end()
GLBatchGLBatch.flush() and marks this batch as inactive.Copyright © 2018. All Rights Reserved.