Options
All
  • Public
  • Public/Protected
  • All
Menu

Resource for a CubeTexture which contains six resources.

memberof

PIXI

Hierarchy

Index

Constructors

constructor

Properties

Protected _height

_height: number

Protected _width

_width: number

baseTexture

destroyed

destroyed: boolean

internal

internal: boolean

itemDirtyIds

itemDirtyIds: number[]

items

Readonly length

length: number

linkBaseTexture

linkBaseTexture: boolean

Protected onError

onError: Runner

Protected onResize

onResize: Runner

Protected onUpdate

onUpdate: Runner

Static SIDES

SIDES: number

Number of texture sides to store for CubeResources

name

PIXI.CubeResource.SIDES

static
member

{number}

default

6

Accessors

height

  • get height(): number
  • The height of the resource.

    member

    {number}

    readonly

    Returns number

valid

  • get valid(): boolean
  • Has been validated

    readonly
    member

    {boolean}

    Returns boolean

width

  • get width(): number
  • The width of the resource.

    member

    {number}

    readonly

    Returns number

Methods

addBaseTextureAt

addResourceAt

bind

destroy

  • destroy(): void
  • Call when destroying resource, unbind any BaseTexture object before calling this method, as reference counts are maintained internally.

    Returns void

dispose

  • dispose(): void
  • Destroy this BaseImageResource

    override

    Returns void

Protected initFromArray

  • used from ArrayResource and CubeResource constructors

    Parameters

    • resources: any[]

      Can be resources, image elements, canvas, etc. , length should be same as constructor length

    • Optional options: IAutoDetectOptions

    Returns void

load

  • Load all the resources simultaneously

    override

    Returns Promise<CubeResource>

    When load is resolved

resize

  • resize(width: number, height: number): void
  • Trigger a resize event

    Parameters

    • width: number

      X dimension

    • height: number

      Y dimension

    Returns void

style

unbind

update

  • update(): void
  • Has been updated trigger event

    Returns void

upload

Static test

  • Used to auto-detect the type of resource.

    static

    Parameters

    • source: unknown

      The source object

    Returns source is ArrayFixed<string | Resource, 6>

    true if source is an array of 6 elements

Generated using TypeDoc