Texture

CompressedTexture

Creates a texture based on data in compressed form, for example from a KTX file.

For use with the CompressedTextureLoader.

Constructor

CompressedTexture(mipmaps : Array, width : Integer, height : Integer, format : Constant, type : Constant, mapping : Constant, wrapS : Constant, wrapT : Constant, magFilter : Constant, minFilter : Constant, anisotropy : Integer, encoding : Constant)

Properties

See the base Texture class for inherited properties.

.flipY : Boolean

False by default. Flipping textures does not work for compressed textures.

.generateMipmaps : Boolean

False by default. Mipmaps can't be generated for compressed textures

.isCompressedTexture : Boolean

Read-only flag to check if a given object is of type CompressedTexture.

Methods

See the base Texture class for inherited methods.

Source

For more info on how to obtain the source code of this module see this page.