Three.V8

3D rendering engine using JavaScript as user script.

View on GitHub

<–Home

class ImageLoader

Provides a few interfaces to load images from local files or from memory.

No constructor, exposed as a global object imageLoader.

class ImageLoader

Name Description
Methods  
loadFile() Load an image from local file.
loadMemory() Load an image from a memory buffer.
loadCubeFromFile() Load 6 images from local files to form a cubemap image.
loadCubeFromMemory() Load 6 images from memory buffers to form a cubemap image.

Methods

loadFile()

.loadFile(name: String): Image

Load an image from local file.

loadMemory()

.loadMemory(buf: ArrayBuffer): Image

Load an image from a memory buffer.

loadCubeFromFile()

.loadCubeFromFile(name0: String, name1: String, name2: String, name3: String, name4: String, name5: String) : CubeImage

Load 6 images from local files to form a cubemap image.

loadCubeFromMemory()

.loadCubeFromMemory(buf0: ArrayBuffer, buf1: ArrayBuffer, buf2: ArrayBuffer, buf3: ArrayBuffer, buf4: ArrayBuffer, buf5: ArrayBuffer) : CubeImage

Load 6 images from memory buffers to form a cubemap image.