Ocean
OBJ.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_OBJ_OBJ_H
9 #define META_OCEAN_SCENEDESCRIPTION_SDL_OBJ_OBJ_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace SceneDescription
17 {
18 
19 namespace SDL
20 {
21 
22 namespace OBJ
23 {
24 
25 /**
26  * @ingroup scenedescription
27  * @defgroup scenedescriptionsdlobj Ocean SceneDescription SDL OBJ Library
28  * @{
29  * The Ocean SceneDescription SDL OBJ Library implements a scene description interface for obj 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::OBJ Namespace of the SDL OBJ SceneDescription library.<p>
38  * The Namespace Ocean::SceneDescription::SDL::OBJ is used in the entire Ocean SceneDescription SDL OBJ Library.
39  */
40 
41 // Defines OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT for dll export and import.
42 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
43  #ifdef USE_OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT
44  #define OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT __declspec(dllexport)
45  #else
46  #define OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT __declspec(dllimport)
47  #endif
48 #else
49  #define OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT
50 #endif
51 
52 /**
53  * Returns the name of this OBJ scenedescription library.
54  * @ingroup scenedescriptionsdlobj
55  */
56 OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT std::string nameOBJLibrary();
57 
58 #if defined(OCEAN_RUNTIME_STATIC)
59 
60 /**
61  * Registers this scenedescription library at the global scenedescription manager.
62  * This function calls OBJLibrary::registerLibrary() only.
63  * @ingroup scenedescriptionsdlobj
64  */
66 
67 /**
68  * Unregisters this scenedescription library at the global scenedescription manager.
69  * This function calls OBJLibrary::unregisterLibrary() only.
70  * @return True, if succeeded
71  * @ingroup scenedescriptionsdlobj
72  */
74 
75 #endif // OCEAN_RUNTIME_STATIC
76 
77 }
78 
79 }
80 
81 }
82 
83 }
84 
85 #endif // META_OCEAN_SCENEDESCRIPTION_SDL_OBJ_OBJ_H
bool unregisterOBJLibrary()
Unregisters this scenedescription library at the global scenedescription manager.
void registerOBJLibrary()
Registers this scenedescription library at the global scenedescription manager.
OCEAN_SCENEDESCRIPTION_SDL_OBJ_EXPORT std::string nameOBJLibrary()
Returns the name of this OBJ scenedescription library.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15