Package 

Object KTX1Loader


  • 
    public class KTX1Loader
    
                        

    Utilities for consuming KTX1 files and producing Filament textures, IBLs, and sky boxes.

    KTX is a simple container format that makes it easy to bundle miplevels and cubemap faces into a single file.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public final class KTX1Loader.Options
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static KTX1Loader INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final Texture createTexture(Engine engine, Buffer buffer, KTX1Loader.Options options) Consumes the content of a KTX file and produces a Texture object.
      final IndirectLight createIndirectLight(Engine engine, Buffer buffer, KTX1Loader.Options options) Consumes the content of a KTX file and produces an IndirectLight object.
      final Skybox createSkybox(Engine engine, Buffer buffer, KTX1Loader.Options options) Consumes the content of a KTX file and produces a Skybox object.
      final FloatArray getSphericalHarmonics(Buffer buffer) Retrieves spherical harmonics from the content of a KTX file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • createTexture

         final Texture createTexture(Engine engine, Buffer buffer, KTX1Loader.Options options)

        Consumes the content of a KTX file and produces a Texture object.

        Parameters:
        engine - Gets passed to the builder.
        buffer - The content of the KTX File.
        options - Loader options.
      • createIndirectLight

         final IndirectLight createIndirectLight(Engine engine, Buffer buffer, KTX1Loader.Options options)

        Consumes the content of a KTX file and produces an IndirectLight object.

        Parameters:
        engine - Gets passed to the builder.
        buffer - The content of the KTX File.
        options - Loader options.
      • createSkybox

         final Skybox createSkybox(Engine engine, Buffer buffer, KTX1Loader.Options options)

        Consumes the content of a KTX file and produces a Skybox object.

        Parameters:
        engine - Gets passed to the builder.
        buffer - The content of the KTX File.
        options - Loader options.
      • getSphericalHarmonics

         final FloatArray getSphericalHarmonics(Buffer buffer)

        Retrieves spherical harmonics from the content of a KTX file.

        Parameters:
        buffer - The content of the KTX File.