Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
godotengine
GitHub Repository: godotengine/godot
Path: blob/master/thirdparty/libktx/lib/texture1.h
9902 views
1
/* -*- tab-width: 4; -*- */
2
/* vi: set sw=2 ts=4 expandtab textwidth=70: */
3
4
/*
5
* Copyright 2019-2020 The Khronos Group Inc.
6
* SPDX-License-Identifier: Apache-2.0
7
*/
8
9
/**
10
* @internal
11
* @file
12
* @~English
13
*
14
* @brief Declare internal ktxTexture1 functions for sharing between
15
* compilation units.
16
*
17
* These functions are private and should not be used outside the library.
18
*/
19
20
#ifndef _TEXTURE1_H_
21
#define _TEXTURE1_H_
22
23
#include "texture.h"
24
25
#ifdef __cplusplus
26
extern "C" {
27
#endif
28
29
#define CLASS ktxTexture1
30
#include "texture_funcs.inl"
31
#undef CLASS
32
33
KTX_error_code
34
ktxTexture1_constructFromStreamAndHeader(ktxTexture1* This, ktxStream* pStream,
35
KTX_header* pHeader,
36
ktxTextureCreateFlags createFlags);
37
38
ktx_uint64_t ktxTexture1_calcDataSizeTexture(ktxTexture1* This);
39
ktx_size_t ktxTexture1_calcLevelOffset(ktxTexture1* This, ktx_uint32_t level);
40
ktx_uint32_t ktxTexture1_glTypeSize(ktxTexture1* This);
41
42
#ifdef __cplusplus
43
}
44
#endif
45
46
#endif /* _TEXTURE1_H_ */
47
48