Texture

BaseTextureTexture

Description

class Texture extends BaseTexture

Constructor

new Texture(url, scene, noMipmap, invertY, samplingMode, onLoad, onError, buffer, deleteBuffer, format)

Parameters

Name Type Description
url Nullable<string>
scene Nullable<Scene>
optional noMipmap boolean
optional invertY boolean
optional samplingMode number
optional onLoad Nullable<() => void>
optional onError Nullable<(message: string, exception: any) => void>
optional buffer any
optional deleteBuffer boolean

Members

static NEAREST_SAMPLINGMODE : number

static NEAREST_NEAREST_MIPLINEAR : number

static BILINEAR_SAMPLINGMODE : number

static LINEAR_LINEAR_MIPNEAREST : number

static TRILINEAR_SAMPLINGMODE : number

static LINEAR_LINEAR_MIPLINEAR : number

static NEAREST_NEAREST_MIPNEAREST : number

static NEAREST_LINEAR_MIPNEAREST : number

static NEAREST_LINEAR_MIPLINEAR : number

static NEAREST_LINEAR : number

static NEAREST_NEAREST : number

static LINEAR_NEAREST_MIPNEAREST : number

static LINEAR_NEAREST_MIPLINEAR : number

static LINEAR_LINEAR : number

static LINEAR_NEAREST : number

static EXPLICIT_MODE : number

static SPHERICAL_MODE : number

static PLANAR_MODE : number

static CUBIC_MODE : number

static PROJECTION_MODE : number

static SKYBOX_MODE : number

static INVCUBIC_MODE : number

static EQUIRECTANGULAR_MODE : number

static FIXED_EQUIRECTANGULAR_MODE : number

static FIXED_EQUIRECTANGULAR_MIRRORED_MODE : number

static CLAMP_ADDRESSMODE : number

static WRAP_ADDRESSMODE : number

static MIRROR_ADDRESSMODE : number

url : Nullable<string>

uOffset : number

vOffset : number

uScale : number

vScale : number

uAng : number

vAng : number

wAng : number

noMipmap : boolean

isBlocking : boolean

samplingMode : number

onLoadObservable : Observable<Texture>

Methods

updateURL(url) void

Parameters

Name Type Description
url string

delayLoad() void

updateSamplingMode(samplingMode) void

Parameters

Name Type Description
samplingMode number

getTextureMatrix() Matrix

getReflectionTextureMatrix() Matrix

clone() Texture

serialize() any

getClassName() string

dispose() void

static CreateFromBase64String(data, name, scene, noMipmap, invertY, samplingMode, onLoad, onError, format) Texture

Parameters

Name Type Description
data string
name string
scene Scene
optional noMipmap boolean
optional invertY boolean
optional samplingMode number
optional onLoad Nullable<() => void>
optional onError Nullable<() => void>

static Parse(parsedTexture, scene, rootUrl) Nullable<BaseTexture>

Parameters

Name Type Description
parsedTexture any
scene Scene
rootUrl string

static LoadFromDataString(name, buffer, scene, deleteBuffer, noMipmap, invertY, samplingMode, onLoad, onError, format) Texture

Parameters

Name Type Description
name string
buffer any
scene Scene
optional deleteBuffer boolean
optional noMipmap boolean
optional invertY boolean
optional samplingMode number
optional onLoad Nullable<() => void>
optional onError Nullable<(message: string, exception: any) => void>