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