Skip to content

Commit

Permalink
Expose ktxTexture2_GetImageOffset. (#954)
Browse files Browse the repository at this point in the history
Fixes #934.
  • Loading branch information
MarkCallow authored Oct 29, 2024
1 parent 970bef3 commit 99c324f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions include/ktx.h
Original file line number Diff line number Diff line change
Expand Up @@ -1114,6 +1114,11 @@ KTX_API void KTX_APIENTRY
ktxTexture2_GetComponentInfo(ktxTexture2* This, ktx_uint32_t* numComponents,
ktx_uint32_t* componentByteLength);

KTX_API KTX_error_code KTX_APIENTRY
ktxTexture2_GetImageOffset(ktxTexture2* This, ktx_uint32_t level,
ktx_uint32_t layer, ktx_uint32_t faceSlice,
ktx_size_t* pOffset);

KTX_API ktx_uint32_t KTX_APIENTRY
ktxTexture2_GetNumComponents(ktxTexture2* This);

Expand Down
4 changes: 0 additions & 4 deletions lib/texture_funcs.inl
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@
*/


KTX_error_code CLASS_FUNC(GetImageOffset)(CLASS* This, ktx_uint32_t level,
ktx_uint32_t layer,
ktx_uint32_t faceSlice,
ktx_size_t* pOffset);
ktx_size_t CLASS_FUNC(GetImageSize)(CLASS* This, ktx_uint32_t level);
KTX_error_code CLASS_FUNC(GLUpload)(CLASS* This, GLuint* pTexture,
GLenum* pTarget, GLenum* pGlerror);
Expand Down

0 comments on commit 99c324f

Please sign in to comment.