| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
#ifndef _TEXTURE2_H_ |
| 21 |
#define _TEXTURE2_H_ |
| 22 |
|
| 23 |
#include "texture.h" |
| 24 |
|
| 25 |
#ifdef __cplusplus |
| 26 |
extern "C" { |
| 27 |
#endif |
| 28 |
|
| 29 |
#define CLASS ktxTexture2 |
| 30 |
#include "texture_funcs.inl" |
| 31 |
#undef CLASS |
| 32 |
|
| 33 |
typedef struct ktxTexture2_private { |
| 34 |
ktx_uint8_t* _supercompressionGlobalData; |
| 35 |
ktx_uint32_t _requiredLevelAlignment; |
| 36 |
ktx_uint64_t _sgdByteLength; |
| 37 |
ktx_uint64_t _firstLevelFileOffset; |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
ktxLevelIndexEntry _levelIndex[1]; |
| 42 |
|
| 43 |
|
| 44 |
|
| 45 |
|
| 46 |
|
| 47 |
} ktxTexture2_private; |
| 48 |
|
| 49 |
|
| 50 |
KTX_error_code |
| 51 |
ktxTexture2_constructCopy(ktxTexture2* This, ktxTexture2* orig); |
| 52 |
KTX_error_code |
| 53 |
ktxTexture2_constructFromStreamAndHeader(ktxTexture2* This, ktxStream* pStream, |
| 54 |
KTX_header2* pHeader, |
| 55 |
ktxTextureCreateFlags createFlags); |
| 56 |
|
| 57 |
ktx_uint64_t ktxTexture2_calcDataSizeTexture(ktxTexture2* This); |
| 58 |
ktx_size_t ktxTexture2_calcLevelOffset(ktxTexture2* This, ktx_uint32_t level); |
| 59 |
ktx_uint32_t ktxTexture2_calcRequiredLevelAlignment(ktxTexture2* This); |
| 60 |
ktx_uint64_t ktxTexture2_levelFileOffset(ktxTexture2* This, ktx_uint32_t level); |
| 61 |
ktx_uint64_t ktxTexture2_levelDataOffset(ktxTexture2* This, ktx_uint32_t level); |
| 62 |
|
| 63 |
#ifdef __cplusplus |
| 64 |
} |
| 65 |
#endif |
| 66 |
|
| 67 |
#endif |