Abstract
Optional
width: numberWidth of the resource
Optional
height: numberHeight of the resource
Protected
_Internal height of the resource.
Protected
_Internal width of the resource.
Readonly
destroyedIf resource has been destroyed.
true
if resource is created by BaseTexture
useful for doing cleanup with BaseTexture destroy
and not cleaning up resources that were created
externally.
The url of the resource
The height of the resource.
Has been validated
The width of the resource.
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Clean up anything, this happens when destroying is ready.
Protected
loadProtected
This can be overridden to start preloading a resource or do any other prepare step.
Handle the validate event
Trigger a resize event
X dimension
Y dimension
Set the style, optional to override
yeah, renderer!
the texture
texture instance for this webgl context
true
is successHas been updated trigger event.
Abstract
uploadUploads the texture or returns false if it cant for some reason. Override this.
yeah, renderer!
the texture
texture instance for this webgl context
Static
testAbstract, used to auto-detect resource type.
The source object
Optional
_extension: stringThe extension of source, if set
Base resource class for textures that manages validation and uploading, depending on its type.
Uploading of a base texture to the GPU is required.
Memberof
PIXI