Ocean
Assimp.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) Meta Platforms, Inc. and affiliates.
3  *
4  * This source code is licensed under the MIT license found in the
5  * LICENSE file in the root directory of this source tree.
6  */
7 
8 #ifndef META_OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_ASSIMP_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_ASSIMP_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace SceneDescription
17 {
18 
19 namespace SDL
20 {
21 
22 namespace Assimp
23 {
24 
25 /**
26  * @ingroup scenedescription
27  * @defgroup scenedescriptionsdlassimp Ocean SceneDescription SDL Assimp Library
28  * @{
29  * The Ocean SceneDescription SDL Assimp Library implements a scene description interface for assimp-supported files.<br>
30  * The library is platform independent.<br>
31  * Do not use any specific function of this library directly, use the abstract interface of the Manager object instead.
32  * @see Manager.
33  * @}
34  */
35 
36 /**
37  * @namespace Ocean::SceneDescription::SDL::Assimp Namespace of the SDL Assimp SceneDescription library.<p>
38  * The Namespace Ocean::SceneDescription::SDL::Assimp is used in the entire Ocean SceneDescription SDL Assimp Library.
39  */
40 
41 // Defines OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT for dll export and import.
42 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
43  #ifdef USE_OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT
44  #define OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT __declspec(dllexport)
45  #else
46  #define OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT __declspec(dllimport)
47  #endif
48 #else
49  #define OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT
50 #endif
51 
52 /**
53  * Returns the name of this Assimp scenedescription library.
54  * @ingroup scenedescriptionsdlassimp
55  */
56 OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT std::string nameAssimpLibrary();
57 
58 #if defined(OCEAN_RUNTIME_STATIC)
59 
60 /**
61  * Registers this scenedescription library at the global scenedescription manager.
62  * This function calls AssimpLibrary::registerLibrary() only.
63  * @ingroup scenedescriptionsdlassimp
64  */
66 
67 /**
68  * Unregisters this scenedescription library at the global scenedescription manager.
69  * This function calls AssimpLibrary::unregisterLibrary() only.
70  * @return True, if succeeded
71  * @ingroup scenedescriptionsdlassimp
72  */
74 
75 #endif // OCEAN_RUNTIME_STATIC
76 
77 }
78 
79 }
80 
81 }
82 
83 }
84 
85 #endif // META_OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_ASSIMP_H
bool unregisterAssimpLibrary()
Unregisters this scenedescription library at the global scenedescription manager.
void registerAssimpLibrary()
Registers this scenedescription library at the global scenedescription manager.
OCEAN_SCENEDESCRIPTION_SDL_ASSIMP_EXPORT std::string nameAssimpLibrary()
Returns the name of this Assimp scenedescription library.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15