Class

TextureCube

TextureCube(paths)

A texture cube to use with Sky-boxes

Constructor

new TextureCube(paths)

Constructor
Parameters:
Name Type Description
paths Array.<string> An array with the image's path for the right cube's face, Paths must be provided in the given order: up, down, left, right, back, front

View Source Textures/TextureCube.js, line 10

Extends

Members

number

static Face

Faces
Properties:
Name Type Description
Up number
Down number
Left number
Right number
Back number
Front number

View Source Textures/TextureCube.js, line 81

number

UID

Unique identifier
Inherited From:

View Source ContextResource.js, line 19

Methods

getImages() → {Array.<Image>}

Get images

View Source Textures/TextureCube.js, line 52

An array with images instances
Array.<Image>

getUID() → {number}

Get unique ID
Inherited From:

View Source ContextResource.js, line 29

An unsigned integer
number

isReady() → {boolean}

Check if texture cube is ready to be use

View Source Textures/TextureCube.js, line 61

True if everything is ready
boolean

loadFromFiles(paths)

Load images from the given paths
Parameters:
Name Type Description
paths Array.<string> An array with the image's path for the right cube's face, Paths must be provided in the given order: up, down, left, right, back, front

View Source Textures/TextureCube.js, line 39