Capítulo 159 de 859

Chapter 159: CompressedTextureLoader

Core Idea

Abstract base class for loading compressed texture formats S3TC, ASTC or ETC. Textures are internally loaded via FileLoader.

Derived classes have to implement the parse() method which holds the parsing for the respective format.

Reference Tables

Constructor

Signature
new CompressedTextureLoader( manager : LoadingManager ) (abstract)

Methods

MethodDescription
.load( url : string, onLoad : function, onProgress : onProgressCallback, onError : onErrorCallback ) : CompressedTextureStarts loading from the given URL and passes the loaded compressed texture to the onLoad() callback. The method also returns a new texture object which can directly be used for material creation. I…

Key Takeaways

  1. CompressedTextureLoader extends: Loader
  2. Key methods: load.

Connects To