| Modifier and Type | Class and Description |
|---|---|
class |
Texture
A handle to an OpenGL texture.
|
| Modifier and Type | Method and Description |
|---|---|
Tile |
Tile.tile() |
Tile |
Image.tile() |
abstract Tile |
TileSource.tile()
Returns the tile provided by this source.
|
Tile |
Texture.tile(float x,
float y,
float width,
float height)
Returns an instance that can be used to render a sub-region of this texture.
|
Tile |
Texture.tile(IRectangle region)
Returns an instance that can be used to render a sub-region of this texture.
|
| Modifier and Type | Method and Description |
|---|---|
RFuture<Tile> |
Tile.tileAsync() |
RFuture<Tile> |
Image.tileAsync() |
abstract RFuture<Tile> |
TileSource.tileAsync()
Delivers the tile provided by this source once the source is loaded.
|
| Modifier and Type | Method and Description |
|---|---|
Surface |
Surface.draw(Tile tile,
float x,
float y)
Draws a tile at the specified location:
x, y. |
Surface |
Surface.draw(Tile tile,
float x,
float y,
float w,
float h)
Draws a tile at the specified location
(x, y) and size (w x h). |
Surface |
Surface.draw(Tile tile,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
Draws a scaled subset of an image (defined by
(sx, sy) and (w x h)) at the
specified location (dx, dy) and size (dw x dh). |
Surface |
Surface.draw(Tile tile,
int tint,
float x,
float y,
float w,
float h)
Draws a tile at the specified location
(x, y) and size (w x h), with tint
tint. |
Surface |
Surface.draw(Tile tile,
int tint,
float dx,
float dy,
float dw,
float dh,
float sx,
float sy,
float sw,
float sh)
Draws a scaled subset of an image (defined by
(sx, sy) and (w x h)) at the
specified location (dx, dy) and size (dw x dh), with tint tint. |
Surface |
Surface.drawCentered(Tile tile,
float x,
float y)
Draws a texture tile, centered at the specified location.
|
Copyright © 2018. All Rights Reserved.