TextureSource

THREE.TextureSource
class TextureSource(var data: Any = ...) extends Object

Represents the data source of a texture. The main purpose of this class is to decouple the data definition from the texture definition so the same data can be used with multiple texture instances.

Renamed from Source in r186.

Attributes

Since

r186

Graph
Supertypes
class Object
trait Any
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def getSize(target: Vector2 | Vector3): Vector2 | Vector3

Returns the dimensions of the source into the given target vector.

Returns the dimensions of the source into the given target vector.

Attributes

def toJSON(meta: UndefOr[Object] = ...): Object

Inherited methods

def hasOwnProperty(v: String): Boolean

Attributes

Inherited from:
Object
def isPrototypeOf(v: Object): Boolean

Attributes

Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean

Attributes

Inherited from:
Object
def toLocaleString(): String

Attributes

Inherited from:
Object
def valueOf(): Any

Attributes

Inherited from:
Object

Concrete fields

var data: Any
var dataReady: Boolean

Whether the data are ready to be used or not.

Whether the data are ready to be used or not.

Attributes

val id: Int
val isTextureSource: Boolean
var needsUpdate: Boolean

When set to true, the data of this source are uploaded to the GPU again.

When set to true, the data of this source are uploaded to the GPU again.

Attributes

var uuid: String
var version: Int

Starts at 0 and counts how many times needsUpdate is set to true.

Starts at 0 and counts how many times needsUpdate is set to true.

Attributes