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