CLASSES
TagsA - Z

BaseTexture

BaseTexture

Description

class BaseTexture

Create a new BaseTexture. A tutorial about materials and textures can be found here : http://doc.babylonjs.com/tutorials/Materials

Constructor

new BaseTexture(scene)

Create a new BaseTexture;

Parameters

Name Type Description
scene Scene The scene which will contains the new base texture

Members

static DEFAULT_ANISOTROPIC_FILTERING_LEVEL : number

name : string

Name of the base texture.

hasAlpha : boolean

True if the base texture has alpha ; False otherwise

By default : false

getAlphaFromRGB : boolean

True if RGBA ; False otherwise

By default : false

level : number

The render level

By default : 1

coordinatesIndex : number

The coordinates index

By default : 0

coordinatesMode : number

The coordinates mode

By default : Explicit_Mode

wrapU : number

The texture repetition in U axis

wrapV : number

The texture repetition in V axis

anisotropicFilteringLevel : number

The level of the anisotropic filtering level

By default : 4

isCube : boolean

True if the basetexture is a cube ; False otherwise

By default : false

isRenderTarget : boolean

True if this is a render target ; False otherwise

By default : false

uid : string

animations : Animation[]

The animations of the base texture

onDisposeObservable : Observable<BaseTexture>

An event triggered when the texture is disposed.

@type {BABYLON.Observable}

onDispose : () => void

Function to call on dispose

delayLoadState : number

Delay to load

By default : no delay

isBlocking : boolean

canRescale : boolean

Methods

toString() string

getScene() Scene

Get the scene which contains the base texture @return The scene

getTextureMatrix() Matrix

Get the texture matrix - return null @return null

getReflectionTextureMatrix() Matrix

Get the reflection texture matrix - return null @return null

getInternalTexture() WebGLTexture

Get the internal texture @return The internal texture

isReadyOrNotBlocking() boolean

isReady() boolean

True if the base texture is ready ; False otherwise

getSize() ISize

Get the size of the base texture @return ISize

getBaseSize() ISize

Get the base size of the base texture @return ISize

scale(ratio) void

Parameters

Name Type Description
ratio number

delayLoad() void

Do the load delay

clone() BaseTexture

Clone the base texture

releaseInternalTexture() void

Release the internal texture

dispose() void

serialize() any