Optional
source: ArrayFixed<string | Resource, 6>Collection of URLs or resources to use as the sides of the cube.
Optional
options: ICubeResourceOptionsImageResource options
Constructor options for CubeResource.
Optional
autoLoad?: booleanWhether to auto-load resources
Optional
linkBaseTexture?: booleanIn case BaseTextures are supplied, whether to copy them or use.
Protected
_Internal height of the resource.
Protected
_Internal width of the resource.
Bound baseTexture, there can only be one.
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.
Readonly
itemDirty IDs for each part.
Readonly
itemsCollection of partial baseTextures that correspond to resources.
Readonly
lengthNumber of elements in array.
Protected
linkIn case BaseTextures are supplied, whether to use same resource or bind baseTexture itself.
The url of the resource
Static
SIDESNumber of texture sides to store for CubeResources.
The height of the resource.
Has been validated
The width of the resource.
Set a baseTexture by ID
Zero-based index of resource to set
Optional
linkBaseTexture: booleanSet a resource by ID
Zero-based index of resource to set
Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.
Destroy this BaseImageResource.
Protected
initUsed from ArrayResource and CubeResource constructors.
Can be resources, image elements, canvas, etc. , length should be same as constructor length
Optional
options: IAutoDetectOptionsDetect options for resources
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 resource
true is success
Static
testUsed to auto-detect the type of resource.
The source object
true
if source is an array of 6 elements
Resource for a CubeTexture which contains six resources.
Memberof
PIXI