CLASSES
TagsA - Z

BaseTexture

BaseTexture

Description

class BaseTexture

Constructor

new BaseTexture(scene)

Parameters

Name Type Description
scene Nullable<Scene>

Members

static DEFAULT_ANISOTROPIC_FILTERING_LEVEL : number

name : string

hasAlpha : boolean

getAlphaFromRGB : boolean

level : number

coordinatesIndex : number

coordinatesMode : number

wrapU : number

wrapV : number

anisotropicFilteringLevel : number

isCube : boolean

gammaSpace : boolean

invertZ : boolean

lodLevelInAlpha : boolean

lodGenerationOffset : number

lodGenerationScale : number

isRenderTarget : boolean

uid : string

animations : Animation[]

onDisposeObservable : Observable<BaseTexture>

An event triggered when the texture is disposed.

@type {BABYLON.Observable}

onDispose : () => void

delayLoadState : number

isBlocking : boolean

canRescale : boolean

textureType : number

textureFormat : number

sphericalPolynomial : Nullable<SphericalPolynomial>

Methods

toString() string

getClassName() string

getScene() Nullable<Scene>

getTextureMatrix() Matrix

getReflectionTextureMatrix() Matrix

getInternalTexture() Nullable<InternalTexture>

isReadyOrNotBlocking() boolean

isReady() boolean

getSize() ISize

getBaseSize() ISize

scale(ratio) void

Parameters

Name Type Description
ratio number

delayLoad() void

clone() Nullable<BaseTexture>

readPixels(faceIndex) Nullable<ArrayBufferView>

Parameters

Name Type Description
optional faceIndex number

releaseInternalTexture() void

dispose() void

serialize() any

static WhenAllReady(textures, callback) void

Parameters

Name Type Description
textures BaseTexture[]
callback () => void