File: pixi/extras/TilingSprite.hx
package pixi.extras;
import pixi.display.Sprite;
import pixi.geom.Point;
import pixi.textures.Texture;
@:native("PIXI.TilingSprite")
extern class TilingSprite extends Sprite {
/**
* A tiling sprite is a fast way of rendering a tiling image
*
* @class TilingSprite
* @extends Sprite
* @constructor
* @param texture {Texture} the texture of the tiling sprite
* @param width {Float} the width of the tiling sprite
* @param height {Float} the height of the tiling sprite
*/
function new(texture:Texture, width:Float, height:Float);
/**
* The scaling of the image that is being tiled
*
* @property tileScale
* @type Point
*/
var tileScale:Point;
/**
* A point that represents the scale of the texture object
*
* @property tileScaleOffset
* @type Point
*/
var tileScaleOffset:Point;
/**
* The offset position of the image that is being tiled
*
* @property tilePosition
* @type Point
*/
var tilePosition:Point;
/**
*
* @method generateTilingTexture
*
* @param forcePowerOfTwo {Bool} Whether we want to force the texture to be a power of two
*/
function generateTilingTexture(forcePowerOfTwo:Bool):Void;
}