Dart DocumentationthreeCompressedTexture

CompressedTexture class

class CompressedTexture extends Texture {
 var mipmaps;
 var images;
 CompressedTexture( {this.mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter} )
   : super ( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type ),
     images = { "width": width, "height": height };
}

Extends

Texture > CompressedTexture

Constructors

new CompressedTexture({mipmaps, 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
CompressedTexture( {this.mipmaps, width, height, format, type, mapping, wrapS, wrapT, magFilter, minFilter} )
 : super ( null, mapping, wrapS, wrapT, magFilter, minFilter, format, type ),
   images = { "width": width, "height": height };

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

var images #

var images

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

var mipmaps #

var 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;
}