| Modifier and Type | Class and Description |
|---|---|
class |
TriangleBatch
A batch which renders indexed triangles.
|
class |
UniformQuadBatch
A batch which renders quads by stuffing them into a big(ish) GLSL uniform variable.
|
| Modifier and Type | Method and Description |
|---|---|
QuadBatch |
Surface.pushBatch(QuadBatch newBatch)
Configures this surface to use
batch, if non-null. |
| Modifier and Type | Method and Description |
|---|---|
void |
Texture.addToBatch(QuadBatch batch,
int tint,
AffineTransform tx,
float x,
float y,
float width,
float height) |
abstract void |
Tile.addToBatch(QuadBatch batch,
int tint,
AffineTransform tx,
float x,
float y,
float width,
float height)
Adds this tile to the supplied quad batch.
|
void |
Texture.addToBatch(QuadBatch batch,
int tint,
AffineTransform tx,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh) |
abstract void |
Tile.addToBatch(QuadBatch batch,
int tint,
AffineTransform tx,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
Adds this tile to the supplied quad batch.
|
void |
Surface.popBatch(QuadBatch oldBatch)
Restores the batch that was in effect prior to a
Surface.pushBatch(playn.core.QuadBatch) call. |
QuadBatch |
Surface.pushBatch(QuadBatch newBatch)
Configures this surface to use
batch, if non-null. |
| Constructor and Description |
|---|
Surface(Graphics gfx,
RenderTarget target,
QuadBatch defaultBatch)
Creates a surface which will render to
target using defaultBatch as its
default quad renderer. |
TextureSurface(Graphics gfx,
QuadBatch defaultBatch,
float width,
float height)
Creates a texture surface which is
width x height in display units. |
TextureSurface(Graphics gfx,
QuadBatch defaultBatch,
Texture texture)
Creates a texture surface which renders to
texture. |
Copyright © 2018. All Rights Reserved.