Class Texture

Hierarchy

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(image: any, mapping?: Mapping, wrapS?: Wrapping, wrapT?: Wrapping, magFilter?: TextureFilter, minFilter?: TextureFilter, format?: PixelFormat, type?: TextureDataType, anisotropy?: number): Texture

Parameters

Returns

Texture

constructor(image: HTMLCanvasElement, mapping?: Mapping, wrapS?: Wrapping, wrapT?: Wrapping, magFilter?: TextureFilter, minFilter?: TextureFilter, format?: PixelFormat, type?: TextureDataType, anisotropy?: number): Texture

Parameters

Returns

Texture

constructor(image: HTMLImageElement, mapping?: MappingConstructor, wrapS?: Wrapping, wrapT?: Wrapping, magFilter?: TextureFilter, minFilter?: TextureFilter, format?: PixelFormat, type?: TextureDataType, anisotropy?: number): Texture

Parameters

Returns

Texture

constructor(image: HTMLCanvasElement, mapping?: MappingConstructor, wrapS?: Wrapping, wrapT?: Wrapping, magFilter?: TextureFilter, minFilter?: TextureFilter, format?: PixelFormat, type?: TextureDataType, anisotropy?: number): Texture

Parameters

Returns

Texture

Properties

public anisotropy: number

public flipY: boolean

public format: PixelFormat

public generateMipmaps: boolean

public id: number

public image: any

public magFilter: TextureFilter

public mapping: Mapping

public minFilter: TextureFilter

public mipmaps: Array<ImageData>

public name: string

public needsUpdate: boolean

public offset: Vector2

public onUpdate: () => void

public premultiplyAlpha: boolean

public repeat: Vector2

public type: TextureDataType

public unpackAlignment: number

public wrapS: Wrapping

public wrapT: Wrapping

Methods

public clone(): Texture

Returns

Texture

public dispose()