-
class
A handle to an OpenGL texture.
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.
Returns an instance that can be used to render a sub-region of this texture.
Returns the tile provided by this source.
Delivers the tile provided by this source once the source is loaded.
Surface.draw(Tile tile,
float x,
float y)
Draws a tile at the specified location: x, y
.
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.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.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.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
.
Draws a texture tile, centered at the specified location.