1 | /* |
2 | --------------------------------------------------------------------------- |
3 | Open Asset Import Library (assimp) |
4 | --------------------------------------------------------------------------- |
5 | |
6 | Copyright (c) 2006-2019, assimp team |
7 | |
8 | |
9 | |
10 | All rights reserved. |
11 | |
12 | Redistribution and use of this software in source and binary forms, |
13 | with or without modification, are permitted provided that the following |
14 | conditions are met: |
15 | |
16 | * Redistributions of source code must retain the above |
17 | copyright notice, this list of conditions and the |
18 | following disclaimer. |
19 | |
20 | * Redistributions in binary form must reproduce the above |
21 | copyright notice, this list of conditions and the |
22 | following disclaimer in the documentation and/or other |
23 | materials provided with the distribution. |
24 | |
25 | * Neither the name of the assimp team, nor the names of its |
26 | contributors may be used to endorse or promote products |
27 | derived from this software without specific prior |
28 | written permission of the assimp team. |
29 | |
30 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS |
31 | "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT |
32 | LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR |
33 | A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT |
34 | OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, |
35 | SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT |
36 | LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
37 | DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
38 | THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
39 | (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
40 | OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
41 | --------------------------------------------------------------------------- |
42 | */ |
43 | |
44 | /** @file version.h |
45 | * @brief Functions to query the version of the Assimp runtime, check |
46 | * compile flags, ... |
47 | */ |
48 | #pragma once |
49 | #ifndef AI_VERSION_H_INC |
50 | #define AI_VERSION_H_INC |
51 | |
52 | #include "defs.h" |
53 | |
54 | #ifdef __cplusplus |
55 | extern "C" { |
56 | #endif |
57 | |
58 | // --------------------------------------------------------------------------- |
59 | /** @brief Returns a string with legal copyright and licensing information |
60 | * about Assimp. The string may include multiple lines. |
61 | * @return Pointer to static string. |
62 | */ |
63 | ASSIMP_API const char* aiGetLegalString (void); |
64 | |
65 | // --------------------------------------------------------------------------- |
66 | /** @brief Returns the current minor version number of Assimp. |
67 | * @return Minor version of the Assimp runtime the application was |
68 | * linked/built against |
69 | */ |
70 | ASSIMP_API unsigned int aiGetVersionMinor (void); |
71 | |
72 | // --------------------------------------------------------------------------- |
73 | /** @brief Returns the current major version number of Assimp. |
74 | * @return Major version of the Assimp runtime the application was |
75 | * linked/built against |
76 | */ |
77 | ASSIMP_API unsigned int aiGetVersionMajor (void); |
78 | |
79 | // --------------------------------------------------------------------------- |
80 | /** @brief Returns the repository revision of the Assimp runtime. |
81 | * @return SVN Repository revision number of the Assimp runtime the |
82 | * application was linked/built against. |
83 | */ |
84 | ASSIMP_API unsigned int aiGetVersionRevision (void); |
85 | |
86 | // --------------------------------------------------------------------------- |
87 | /** @brief Returns the branchname of the Assimp runtime. |
88 | * @return The current branch name. |
89 | */ |
90 | ASSIMP_API const char *aiGetBranchName(); |
91 | |
92 | //! Assimp was compiled as a shared object (Windows: DLL) |
93 | #define ASSIMP_CFLAGS_SHARED 0x1 |
94 | //! Assimp was compiled against STLport |
95 | #define ASSIMP_CFLAGS_STLPORT 0x2 |
96 | //! Assimp was compiled as a debug build |
97 | #define ASSIMP_CFLAGS_DEBUG 0x4 |
98 | |
99 | //! Assimp was compiled with ASSIMP_BUILD_BOOST_WORKAROUND defined |
100 | #define ASSIMP_CFLAGS_NOBOOST 0x8 |
101 | //! Assimp was compiled with ASSIMP_BUILD_SINGLETHREADED defined |
102 | #define ASSIMP_CFLAGS_SINGLETHREADED 0x10 |
103 | |
104 | // --------------------------------------------------------------------------- |
105 | /** @brief Returns assimp's compile flags |
106 | * @return Any bitwise combination of the ASSIMP_CFLAGS_xxx constants. |
107 | */ |
108 | ASSIMP_API unsigned int aiGetCompileFlags (void); |
109 | |
110 | #ifdef __cplusplus |
111 | } // end extern "C" |
112 | #endif |
113 | |
114 | #endif // !! #ifndef AI_VERSION_H_INC |
115 | |
116 | |