File size: 1,030 Bytes
2b7aae2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
 * Represents the data source of a texture.
 */
export class Source {
	/**
	 * @param [data] The data definition of a texture. default is **null**.
	 */
	constructor(data: any);

	/**
	 * The actual data of a texture. The type of this property depends on the texture that uses this instance.
	 */
	data: any;

	/**
	 * Set this to **true** to trigger a data upload to the GPU next time the source is used.
	 */
	set needsUpdate(value: boolean);

	/**
	 * [UUID](http://en.wikipedia.org/wiki/Universally_unique_identifier) of this object instance.
	 * This gets automatically assigned, so this shouldn't be edited.
	 */
	uuid: string;

	/**
	 * This starts at **0** and counts how many times [property:Boolean needsUpdate] is set to **true**.
	 */
	version: number;

	/**
	 * Convert the data source to three.js [JSON Object/Scene format](https://github.com/mrdoob/three.js/wiki/JSON-Object-Scene-format-4).
	 *
	 * @param [meta] optional object containing metadata.
	 */
	toJSON(meta: any): any;

	readonly isTexture: true;
}