Top Description Interfaces Classes
module lwjgl.ktx

Package org.lwjgl.util.ktx

Annotations
@NonnullDefault

Contains bindings to the KTX (Khronos Texture), a lightweight container for textures for OpenGL®, Vulkan® and other GPU APIs.

The LWJGL bindings support the KTX encoding functionality, but its presence is optional. Applications may choose to deploy the read-only version of the KTX library (ktx_read) and the bindings will work. The KTX_LIBRARY_NAME option can be used to change the loaded library.

Interface Summary

Modifier and TypeInterface and Description
public interface
ktxStream_destructI

Type


void (*invoke) (
    ktxStream *str
)
public interface
ktxStream_getposI

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_off_t * const offset
)
public interface
ktxStream_getsizeI

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_size_t * const size
)
public interface
ktxStream_readI

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    void *dst,
    ktx_size_t const count
)
public interface
ktxStream_setposI

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_off_t const offset
)
public interface
ktxStream_skipI

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_size_t const count
)
public interface
ktxStream_writeI

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    void const *src,
    ktx_size_t const size,
    ktx_size_t const count
)
public interface
PFNKTXITERCBI

Type


KTX_error_code (*invoke) (
    int miplevel,
    int face,
    int width,
    int height,
    int depth,
    ktx_uint64_t faceLodSize,
    void *pixels,
    void *userdata
)

Class Summary

Modifier and TypeClass and Description
public class
KTX

Native bindings to KTX (Khronos Texture).

public class
ktxAstcParams

Structure for passing extended parameters to ktxTexture_CompressAstc.

public class
ktxBasisParams

Structure for passing extended parameters to Texture2_CompressBasisEx.

public class
ktxOrientation

Struct describing the logical orientation of an image.

public class
ktxStream

Interface of ktxStream.

public abstract class
ktxStream_destruct

Type


void (*invoke) (
    ktxStream *str
)
public abstract class
ktxStream_getpos

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_off_t * const offset
)
public abstract class
ktxStream_getsize

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_size_t * const size
)
public abstract class
ktxStream_read

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    void *dst,
    ktx_size_t const count
)
public abstract class
ktxStream_setpos

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_off_t const offset
)
public abstract class
ktxStream_skip

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    ktx_size_t const count
)
public abstract class
ktxStream_write

Type


KTX_error_code (*invoke) (
    ktxStream *str,
    void const *src,
    ktx_size_t const size,
    ktx_size_t const count
)
public class
ktxTexture

Base class representing a texture.

public class
ktxTexture1

Class representing a KTX version 1 format texture.

public class
ktxTexture2

Class representing a KTX version 2 format texture.

public class
ktxTexture_vtbl

Table of virtual ktxTexture methods.

public class
ktxTextureCreateInfo

Structure for passing texture information to Texture1_Create and Texture2_Create.

public class
public class
ktxVulkanDeviceInfo

Struct for passing information about the Vulkan device on which to create images to the texture image loading functions.

public class
ktxVulkanFunctions

Struct for applications to pass Vulkan function pointers to the Texture_VkUpload functions via a ktxVulkanDeviceInfo struct.

public class
ktxVulkanTexture

Struct for returning information about the Vulkan texture image created by the ktxTexture_VkUpload* functions.

public abstract class
PFNKTXITERCB

Type


KTX_error_code (*invoke) (
    int miplevel,
    int face,
    int width,
    int height,
    int depth,
    ktx_uint64_t faceLodSize,
    void *pixels,
    void *userdata
)