public abstract class GLBatch extends java.lang.Object implements Closeable
GLProgram
and one or more buffers.Closeable.Set, Closeable.Util
Constructor and Description |
---|
GLBatch() |
Modifier and Type | Method and Description |
---|---|
void |
begin(float fbufWidth,
float fbufHeight,
boolean flip)
Must be called before this batch is used to accumulate and send drawing commands.
|
void |
close()
Releases any GPU resources retained by this batch.
|
void |
end()
Must be called when one is done using this batch to accumulate and send drawing commands.
|
void |
flush()
Sends any accumulated drawing calls to the GPU.
|
public void begin(float fbufWidth, float fbufHeight, boolean flip)
flip
- whether or not to flip the y-axis. This is generally true when rendering to the
default frame buffer (the screen), and false when rendering to textures.public void flush()
public void end()
flush()
and marks this batch as inactive.Copyright © 2019. All Rights Reserved.