Class type Texture-PIXI._t
inherit PIXI.EventEmitter._t
method _frame#=: Js.Internal.meth([ `Arity_1(PIXI.Rectangle.t) ], unit)This is the area of the BaseTexture image to actually copy to the Canvas / WebGL when rendering, irrespective of the actual frame size or placement (which can be influenced by trimmed texture atlases)
method _frame: PIXI.Rectangle.tThis is the area of the BaseTexture image to actually copy to the Canvas / WebGL when rendering, irrespective of the actual frame size or placement (which can be influenced by trimmed texture atlases)
method baseTexture#=: Js.Internal.meth([ `Arity_1(PIXI.BaseTexture.t) ], unit)The base texture that this texture uses.
method baseTexture: PIXI.BaseTexture.tThe base texture that this texture uses.
method defaultAnchor#=: Js.Internal.meth([ `Arity_1(PIXI.Point.t) ], unit)Anchor point that is used as default if sprite is created with this texture. Changing the defaultAnchor at a later point of time will not update Sprite's anchor point.
method defaultAnchor: PIXI.Point.tAnchor point that is used as default if sprite is created with this texture. Changing the defaultAnchor at a later point of time will not update Sprite's anchor point.
method frame#=: Js.Internal.meth([ `Arity_1(PIXI.Rectangle.t) ], unit)The frame specifies the region of the base texture that this texture uses. Please call updateUvs() after you change coordinates of frame manually.
method frame: PIXI.Rectangle.tThe frame specifies the region of the base texture that this texture uses. Please call updateUvs() after you change coordinates of frame manually.
method noFrame#=: Js.Internal.meth([ `Arity_1(bool) ], unit)Does this Texture have any frame data assigned to it? This mode is enabled automatically if no frame was passed inside constructor. In this mode texture is subscribed to baseTexture events, and fires update on any change. Beware, after loading or resize of baseTexture event can fired two times! If you want more control, subscribe on baseTexture itself. Any assignment of frame switches off noFrame mode.
method noFrame: boolDoes this Texture have any frame data assigned to it? This mode is enabled automatically if no frame was passed inside constructor. In this mode texture is subscribed to baseTexture events, and fires update on any change. Beware, after loading or resize of baseTexture event can fired two times! If you want more control, subscribe on baseTexture itself. Any assignment of frame switches off noFrame mode.
method orig#=: Js.Internal.meth([ `Arity_1(PIXI.Rectangle.t) ], unit)This is the area of original texture, before it was put in atlas
method orig: PIXI.Rectangle.tThis is the area of original texture, before it was put in atlas
method requiresUpdate#=: Js.Internal.meth([ `Arity_1(bool) ], unit)This will let a renderer know that a texture has been updated (used mainly for WebGL uv updates)
method requiresUpdate: boolThis will let a renderer know that a texture has been updated (used mainly for WebGL uv updates)
method rotate#=: Js.Internal.meth([ `Arity_1(float) ], unit)Indicates whether the texture is rotated inside the atlas set to 2 to compensate for texture packer rotation set to 6 to compensate for spine packer rotation can be used to rotate or mirror sprites See PIXI.groupD8 for explanation
method rotate: floatIndicates whether the texture is rotated inside the atlas set to 2 to compensate for texture packer rotation set to 6 to compensate for spine packer rotation can be used to rotate or mirror sprites See PIXI.groupD8 for explanation
method textureCacheIds#=: Js.Internal.meth([ `Arity_1(array(string)) ], unit)The ids under which this Texture has been added to the texture cache. This is automatically set as long as Texture.addToCache is used, but may not be set if a Texture is added directly to the TextureCache array.
method textureCacheIds: array(string)The ids under which this Texture has been added to the texture cache. This is automatically set as long as Texture.addToCache is used, but may not be set if a Texture is added directly to the TextureCache array.
method trim#=: Js.Internal.meth([ `Arity_1(PIXI.Rectangle.t) ], unit)This is the trimmed area of original texture, before it was put in atlas Please call updateUvs() after you change coordinates of trim manually.
method trim: PIXI.Rectangle.tThis is the trimmed area of original texture, before it was put in atlas Please call updateUvs() after you change coordinates of trim manually.
method uvMatrix#=: Js.Internal.meth([ `Arity_1(PIXI.TextureMatrix.t) ], unit)Default TextureMatrix instance for this texture By default that object is not created because its heavy
method uvMatrix: PIXI.TextureMatrix.tDefault TextureMatrix instance for this texture By default that object is not created because its heavy
method valid#=: Js.Internal.meth([ `Arity_1(bool) ], unit)This will let the renderer know if the texture is valid. If it's not then it cannot be rendered
method valid: boolThis will let the renderer know if the texture is valid. If it's not then it cannot be rendered
method clone: Js.Internal.meth([ `Arity_0 ], unit)Creates a new texture object that acts the same as this one