Class

TextureInterface

TextureInterface()

A texture

Constructor

new TextureInterface()

Constructor

View Source Textures/TextureInterface.js, line 9

Extends

Members

boolean

protected mipmap

Mipmap state

View Source Textures/TextureInterface.js, line 30

boolean

protected ready

State

View Source Textures/TextureInterface.js, line 22

number

UID

Unique identifier
Inherited From:

View Source ContextResource.js, line 19

Methods

getUID() → {number}

Get unique ID
Inherited From:

View Source ContextResource.js, line 29

An unsigned integer
number

isMipmaped() → {boolean}

Indicates if the texture use mip-mapping

View Source Textures/TextureInterface.js, line 47

True if the texture is mip-mapped
boolean

isReady() → {boolean}

Indicates if texture is ready

View Source Textures/TextureInterface.js, line 38

True if the texture is ready to be use
boolean

isRepeated() → {boolean}

Indicates if the texture is repeated

View Source Textures/TextureInterface.js, line 56

True if the texture is repeated
boolean

isSmoothed() → {boolean}

Indicates if the texture is smoothed

View Source Textures/TextureInterface.js, line 65

True if the texture is smoothed
boolean

useMipmap(value)

Indicates if the texture must use mip-mapping
Parameters:
Name Type Description
value boolean True to use mip-mapping

View Source Textures/TextureInterface.js, line 74