Class GltfModel.DecodedTextures

java.lang.Object
limn.render3d.gltf.GltfModel.DecodedTextures
Enclosing class:
GltfModel

public static final class GltfModel.DecodedTextures extends Object
The model's texture images decoded to pixels, ready to upload: the CPU half of GltfModel.toScene3D(), separated so it can be done off the UI thread. Produced by GltfModel.decodeTextures() or GltfModel.decodeTexturesAsync() and consumed by GltfModel.toScene3D(DecodedTextures).

Belongs to the model that produced it: the images are indexed by that model's texture numbering, and handing one to a different model is rejected rather than silently mismatched. It holds no GPU or native resource, so an instance nobody uses needs no disposal.

  • Method Details

    • count

      public int count()
      Returns:
      how many textures were decoded (the ones some material references)