TextureSlice

open class TextureSlice(var texture: Texture, x: Int = 0, y: Int = 0, width: Int = texture.width, height: Int = texture.height)

Author

Colton Daily

Constructors

Link copied to clipboard
fun TextureSlice(slice: TextureSlice, x: Int = 0, y: Int = 0, width: Int = slice.width, height: Int = slice.height)
Link copied to clipboard
fun TextureSlice(texture: Texture, x: Int = 0, y: Int = 0, width: Int = texture.width, height: Int = texture.height)

Functions

Link copied to clipboard
fun flipH()
Link copied to clipboard
fun flipV()
Link copied to clipboard
fun setSlice(u: Float, v: Float, u2: Float, v2: Float)
fun setSlice(x: Int, y: Int, width: Int, height: Int)
fun setSlice(slice: TextureSlice, x: Int, y: Int, width: Int, height: Int)
Link copied to clipboard
fun slice(sliceWidth: Int, sliceHeight: Int, border: Int = 0): Array<Array<TextureSlice>>

Slice this TextureSlice into smaller slices.

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
var height: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var rotated: Boolean = false
Link copied to clipboard
Link copied to clipboard
var u: Float
Link copied to clipboard
var u2: Float
Link copied to clipboard
var v: Float
Link copied to clipboard
var v2: Float
Link copied to clipboard
var virtualFrame: Rect? = null
Link copied to clipboard
var width: Int
Link copied to clipboard
var x: Int
Link copied to clipboard
var y: Int

Extensions

Link copied to clipboard