Uses of Class
playn.core.Tile

  • Uses of Tile in playn.core

    Subclasses of Tile in playn.core
    Modifier and Type
    Class
    Description
    class 
    A handle to an OpenGL texture.
    Methods in playn.core that return Tile
    Modifier and Type
    Method
    Description
    Image.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.
    Texture.tile(IRectangle region)
    Returns an instance that can be used to render a sub-region of this texture.
    Tile.tile()
     
    abstract Tile
    TileSource.tile()
    Returns the tile provided by this source.
    Methods in playn.core that return types with arguments of type Tile
    Modifier and Type
    Method
    Description
    Image.tileAsync()
     
    Tile.tileAsync()
     
    abstract RFuture<Tile>
    TileSource.tileAsync()
    Delivers the tile provided by this source once the source is loaded.
    Methods in playn.core with parameters of type Tile
    Modifier and Type
    Method
    Description
    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.
    Surface.drawCentered(Tile tile, float x, float y)
    Draws a texture tile, centered at the specified location.