libktx Reference 4.4.0
Libraries and tools to create and read KTX image texture files.
Loading...
Searching...
No Matches
strings.c File Reference

Functions to return a string corresponding to various enumerations. More...

#include "ktx.h"
#include "basis_sgd.h"
Include dependency graph for strings.c:

Functions

const char * ktxErrorString (KTX_error_code error)
 Return a string corresponding to a KTX error code.
 
const char * ktxTranscodeFormatString (ktx_transcode_fmt_e format)
 Return a string corresponding to a transcode format enumeration.
 
const char * ktxSupercompressionSchemeString (ktxSupercmpScheme scheme)
 Return a string corresponding to a supercompressionScheme enumeration.
 
const char * ktxBUImageFlagsBitString (ktx_uint32_t bit_index, bool bit_value)
 Return a string corresponding to a bu_image_flags bit.
 

Detailed Description

Functions to return a string corresponding to various enumerations.

Author
Mark Callow, HI Corporation

Function Documentation

◆ ktxBUImageFlagsBitString()

const char * ktxBUImageFlagsBitString ( ktx_uint32_t bit_index,
bool bit_value )

Return a string corresponding to a bu_image_flags bit.

Parameters
bit_indexthe bu_image_flag bit to test.
bit_valuethe bu_image_flag bit value.
Returns
pointer to the message string or NULL otherwise.

◆ ktxErrorString()

const char * ktxErrorString ( KTX_error_code error)

Return a string corresponding to a KTX error code.

Parameters
errorthe error code for which to return a string
Returns
pointer to the message string.

◆ ktxSupercompressionSchemeString()

const char * ktxSupercompressionSchemeString ( ktxSupercmpScheme scheme)

Return a string corresponding to a supercompressionScheme enumeration.

Parameters
schemethe supercompression scheme for which to return a string.
Returns
pointer to the message string.

◆ ktxTranscodeFormatString()

const char * ktxTranscodeFormatString ( ktx_transcode_fmt_e format)

Return a string corresponding to a transcode format enumeration.

Parameters
formatthe transcode format for which to return a string.
Returns
pointer to the message string.