Source buffer
Options
Constructor options for BufferResource.
Optional
unpackAlignment?: 1 | 2 | 4 | 8Protected
_Internal height of the resource.
Protected
_Internal width of the resource.
The data of this 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 alignment of the rows in the data.
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.
Destroy and don't use after this.
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.
Upload the texture to the GPU.
Upload to the renderer
Reference to parent texture
glTexture
Static
testUsed to auto-detect the type of resource.
The source object
true
if buffer source
Buffer resource with data of typed array.
Memberof
PIXI