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 |
Extends
Members
number
static Face
Faces
Properties:
Name | Type | Description |
---|---|---|
Up |
number | |
Down |
number | |
Left |
number | |
Right |
number | |
Back |
number | |
Front |
number |
number
UID
Unique identifier
- Inherited From:
Methods
getImages() → {Array.<Image>}
Get images
An array with images instances
Array.<Image>
getUID() → {number}
Get unique ID
- Inherited From:
An unsigned integer
number
isReady() → {boolean}
Check if texture cube is ready to be use
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 |