Last change
on this file since 28897 was 28897, checked in by davidb, 10 years ago |
GUI front-end to server base plus web page content
|
File size:
597 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * @author alteredq / http://alteredqualia.com/
|
---|
3 | */
|
---|
4 |
|
---|
5 | THREE.DataTexture = function ( data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter, anisotropy ) {
|
---|
6 |
|
---|
7 | THREE.Texture.call( this, null, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );
|
---|
8 |
|
---|
9 | this.image = { data: data, width: width, height: height };
|
---|
10 |
|
---|
11 | };
|
---|
12 |
|
---|
13 | THREE.DataTexture.prototype = Object.create( THREE.Texture.prototype );
|
---|
14 |
|
---|
15 | THREE.DataTexture.prototype.clone = function () {
|
---|
16 |
|
---|
17 | var texture = new THREE.DataTexture();
|
---|
18 |
|
---|
19 | THREE.Texture.prototype.clone.call( this, texture );
|
---|
20 |
|
---|
21 | return texture;
|
---|
22 |
|
---|
23 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.