KTX-Software icon indicating copy to clipboard operation
KTX-Software copied to clipboard

ktxTexture2_GetImageOffset: identifier not found

Open UX3D-haertl opened this issue 1 year ago • 1 comments

I'm getting this build error, while trying to use ktxTexture2_GetImageOffset (even though my IDE can find the function in the source code).

I'm now using ktxTexture_GetImageOffset(ktxTexture(texture), 0, 0, 0, &offset); instead.

Other texture2 functions such as ktxTexture2_Destroy can be used without problems.

UX3D-haertl avatar Sep 05 '24 07:09 UX3D-haertl

It is not exposed in ktx.h, and therefore on Windows is not added to dll exports (when building libktx) and imports (when compiling apps.)

I'll happily accept a PR to add it to ktx.h.

MarkCallow avatar Sep 10 '24 10:09 MarkCallow