Dart DocumentationthreeDataTexture

DataTexture class

class DataTexture extends Texture {

 DataTexture._internal( image, data, width, height, format, [type, mapping, wrapS, wrapT, magFilter, minFilter] )
 : super(image, mapping, wrapS, wrapT, magFilter, minFilter, format, type ) ;

 factory DataTexture ( data, width, height, format, {type, mapping, wrapS, wrapT, magFilter, minFilter} ) {
		  return new DataTexture._internal(
		      { "data": data, "width": width, "height": height },
		      data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter);
		}

}

Extends

Texture > DataTexture

Constructors

factory DataTexture(data, width, height, format, {type, mapping, wrapS, wrapT, magFilter, minFilter}) #

Creates a new Object instance.

Object instances have no meaningful state, and are only useful through their identity. An Object instance is equal to itself only.

docs inherited from Object
factory DataTexture ( data, width, height, format, {type, mapping, wrapS, wrapT, magFilter, minFilter} ) {
		  return new DataTexture._internal(
		      { "data": data, "width": width, "height": height },
		      data, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter);
		}

Properties

int anisotropy #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter, format, type, anisotropy

bool flipY #

inherited from Texture
bool flipY

int format #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter, format

bool generateMipmaps #

inherited from Texture
bool generateMipmaps

int id #

inherited from Texture
int id

var image #

inherited from Texture
var image

int magFilter #

inherited from Texture
int wrapS, wrapT, magFilter

var mapping #

inherited from Texture
var mapping

int minFilter #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter

List mipmaps #

inherited from Texture
List mipmaps = []

bool needsUpdate #

inherited from Texture
bool needsUpdate

Vector2 offset #

inherited from Texture
Vector2 offset

var onUpdate #

inherited from Texture
var onUpdate

bool premultiplyAlpha #

inherited from Texture
bool premultiplyAlpha

Vector2 repeat #

inherited from Texture
Vector2 offset, repeat

int type #

inherited from Texture
int wrapS, wrapT, magFilter, minFilter, format, type

int unpackAlignment #

inherited from Texture
int unpackAlignment = 4

int wrapS #

inherited from Texture
int wrapS

int wrapT #

inherited from Texture
int wrapS, wrapT

Operators

dynamic operator [](String key) #

inherited from Texture
operator [] (String key) => _data[key];

dynamic operator []=(String key, value) #

inherited from Texture
operator []= (String key, value) => _data[key] = value;

Methods

Texture clone() #

inherited from Texture
Texture clone() {
 Texture clonedTexture = new Texture( image, mapping, wrapS, wrapT, magFilter, minFilter, format, type, anisotropy );

 clonedTexture.mipmaps = new List.from( mipmaps );
 clonedTexture.offset.setFrom( offset );
 clonedTexture.repeat.setFrom( repeat );

 return clonedTexture;
}