libktx - The KTX Library
ktxTextureCreateInfo Struct Reference

Structure for passing texture information to ktxTexture_Create(). More...

#include <ktx.h>

Data Fields

ktx_uint32_t glInternalformat
 
ktx_uint32_t baseWidth
 
ktx_uint32_t baseHeight
 
ktx_uint32_t baseDepth
 
ktx_uint32_t numDimensions
 
ktx_uint32_t numLevels
 
ktx_uint32_t numLayers
 
ktx_uint32_t numFaces
 
ktx_bool_t isArray
 
ktx_bool_t generateMipmaps
 

Detailed Description

Structure for passing texture information to ktxTexture_Create().

See also
ktxTexture_Create()

Field Documentation

◆ baseDepth

ktx_uint32_t ktxTextureCreateInfo::baseDepth

Depth of the base level of the texture.

◆ baseHeight

ktx_uint32_t ktxTextureCreateInfo::baseHeight

Height of the base level of the texture.

◆ baseWidth

ktx_uint32_t ktxTextureCreateInfo::baseWidth

Width of the base level of the texture.

◆ generateMipmaps

ktx_bool_t ktxTextureCreateInfo::generateMipmaps

Set to KTX_TRUE if mipmaps should be generated for the texture when loading into OpenGL.

◆ glInternalformat

ktx_uint32_t ktxTextureCreateInfo::glInternalformat

Internal format for the texture, e.g., GL_RGB8.

◆ isArray

ktx_bool_t ktxTextureCreateInfo::isArray

Set to KTX_TRUE if the texture is to be an array texture. Means OpenGL will use a GL_TEXTURE_*_ARRAY target.

◆ numDimensions

ktx_uint32_t ktxTextureCreateInfo::numDimensions

Number of dimensions in the texture, 1, 2 or 3.

◆ numFaces

ktx_uint32_t ktxTextureCreateInfo::numFaces

Number of faces: 6 for cube maps, 1 otherwise.

◆ numLayers

ktx_uint32_t ktxTextureCreateInfo::numLayers

Number of array layers in the texture.

◆ numLevels

ktx_uint32_t ktxTextureCreateInfo::numLevels

Number of mip levels in the texture. Should be 1 if generateMipmaps is KTX_TRUE;