Search
Preparing search index...
The search index is not available
DefinitelyTyped
Inherited
Private
Externals
Only exported
PIXI
Texture
Class Texture
Hierarchy
EventTarget
Texture
RenderTexture
Index
Constructor methods
constructor
Properties
baseTexture
frame
trim
Methods
addEventListener
addTextureToCache
destroy
dispatchEvent
fromCanvas
fromFrame
fromImage
removeEventListener
removeTextureFromCache
render
setFrame
Constructor methods
constructor
(
baseTexture
:
BaseTexture
, frame
?:
Rectangle
)
:
Texture
Parameters
baseTexture:
BaseTexture
frame?:
Rectangle
optional
Returns
Texture
Properties
public
baseTexture
:
BaseTexture
public
frame
:
Rectangle
public
trim
:
Point
Methods
public
addEventListener
(
type
:
string
, listener
:
(event: PIXI.IEvent) => void
)
:
any
Parameters
type:
string
listener:
(event: PIXI.IEvent) => void
Returns
any
public
static
addTextureToCache
(
texture
:
Texture
, id
:
string
)
Parameters
texture:
Texture
id:
string
public
destroy
(
destroyBase
:
boolean
)
Parameters
destroyBase:
boolean
public
dispatchEvent
(
event
:
IEvent
)
:
any
Parameters
event:
IEvent
Returns
any
public
static
fromCanvas
(
canvas
:
HTMLCanvasElement
)
:
Texture
Parameters
canvas:
HTMLCanvasElement
Returns
Texture
public
static
fromFrame
(
frameId
:
string
)
:
Texture
Parameters
frameId:
string
Returns
Texture
public
static
fromImage
(
imageUrl
:
string
, crossorigin
?:
boolean
)
:
Texture
Parameters
imageUrl:
string
crossorigin?:
boolean
optional
Returns
Texture
public
removeEventListener
(
type
:
string
, listener
:
(event: PIXI.IEvent) => void
)
:
any
Parameters
type:
string
listener:
(event: PIXI.IEvent) => void
Returns
any
public
static
removeTextureFromCache
(
id
:
any
)
:
Texture
Parameters
id:
any
Returns
Texture
public
render
(
displayObject
:
DisplayObject
, position
:
Point
, clear
:
boolean
)
Parameters
displayObject:
DisplayObject
position:
Point
clear:
boolean
public
setFrame
(
frame
:
Rectangle
)
Parameters
frame:
Rectangle
Globals
PIXI
PIXI.PolyK
BaseTextureCache
FrameCache
TextureCache
blendModes
gl
texturesToDestroy
texturesToUpdate
IBasicCallback
IBitmapTextStyle
IEvent
IHitArea
IInteractionDataCallback
IPixiRenderer
ITextStyle
AssetLoader
BaseTexture
BitmapFontLoader
BitmapText
CanvasRenderer
Circle
CustomRenderable
DisplayObject
DisplayObjectContainer
Ellipse
EventTarget
Graphics
ImageLoader
InteractionData
InteractionManager
JsonLoader
MovieClip
Point
Polygon
Rectangle
RenderTexture
Sprite
SpriteSheetLoader
Stage
Text
Texture
constructor
baseTexture
frame
trim
addEventListener
addTextureToCache
destroy
dispatchEvent
fromCanvas
fromFrame
fromImage
removeEventListener
removeTextureFromCache
render
setFrame
TilingSprite
WebGLBatch
WebGLRenderGroup
WebGLRenderer
FilterBlock
MaskFilter
autoDetectRenderer
runList