Inheritance: EventDispatcher → Texture →
Creates a texture based on data in compressed form.
These texture are usually loaded with CompressedTextureLoader.
Constructs a new compressed texture.
mipmaps
This array holds for all mipmaps (including the bases mip) the data and dimensions.
width
The width of the texture.
height
The height of the texture.
format
The texture format.
Default is RGBAFormat.
type
The texture type.
Default is UnsignedByteType.
mapping
The texture mapping.
Default is Texture.DEFAULT_MAPPING.
wrapS
The wrapS value.
Default is ClampToEdgeWrapping.
wrapT
The wrapT value.
Default is ClampToEdgeWrapping.
magFilter
The mag filter value.
Default is LinearFilter.
minFilter
The min filter value.
Default is LinearMipmapLinearFilter.
anisotropy
The anisotropy value.
Default is Texture.DEFAULT_ANISOTROPY.
colorSpace
The color space.
Default is NoColorSpace.
If set to true, the texture is flipped along the vertical axis when uploaded to the GPU.
Overwritten and set to false by default since it is not possible to flip compressed textures.
Default is false.
Overrides: Texture#flipY
Whether to generate mipmaps (if possible) for a texture.
Overwritten and set to false by default since it is not possible to generate mipmaps for compressed data. Mipmaps must be embedded in the compressed texture file.
Default is false.
Overrides: Texture#generateMipmaps
The image property of a compressed texture just defines its dimensions.
Overrides: Texture#image
This flag can be used for type testing.
Default is true.
This array holds for all mipmaps (including the bases mip) the data and dimensions.
Overrides: Texture#mipmaps