Ocean
GlobalIllumination.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_RENDERING_GI_GLOBAL_ILLUMINATION_H
9 #define META_OCEAN_RENDERING_GI_GLOBAL_ILLUMINATION_H
10 
12 
13 namespace Ocean
14 {
15 
16 namespace Rendering
17 {
18 
19 namespace GlobalIllumination
20 {
21 
22 /**
23  * @ingroup rendering
24  * @defgroup renderinggi Ocean Rendering Global Illumination Library
25  * @{
26  * The Ocean Rendering Global Illumination Library is a rendering library using Global Illumination.
27  * Is this library is available on windows and linux platforms.
28  * @}
29  */
30 
31 /**
32  * @namespace Ocean::Rendering::GlobalIllumination Namespace of the Rendering Global Illumination library.<p>
33  * The Namespace Ocean::Rendering::GlobalIllumination is used in the entire Ocean Rendering Global Illumination Library.
34  */
35 
36 // Defines OCEAN_RENDERING_GI_EXPORT for dll export and import.
37 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
38  #ifdef USE_OCEAN_RENDERING_GI_EXPORT
39  #define OCEAN_RENDERING_GI_EXPORT __declspec(dllexport)
40  #else
41  #define OCEAN_RENDERING_GI_EXPORT __declspec(dllimport)
42  #endif
43 #else
44  #define OCEAN_RENDERING_GI_EXPORT
45 #endif
46 
47 /**
48  * Returns the name of this rendering engine.
49  * @ingroup renderinggi
50  */
51 const std::string& globalIlluminationEngineName();
52 
53 #if defined(OCEAN_RUNTIME_STATIC) || defined(_ANDROID)
54 
55 /**
56  * Registers this rendering engine at the global engine manager.
57  * This function calls GIEngine::registerEngine() only.
58  * @ingroup renderinggi
59  */
61 
62 /**
63  * Unregisters this rendering engine at the global engine manager.
64  * This function calls GIEngine::unregisterEngine() only.
65  * @return True, if succeeded
66  * @ingroup renderinggi
67  */
69 
70 #endif // OCEAN_RUNTIME_STATIC
71 
72 }
73 
74 }
75 
76 }
77 
78 #endif // META_OCEAN_RENDERING_GI_GLOBAL_ILLUMINATION_H
bool unregisterGlobalIlluminationEngine()
Unregisters this rendering engine at the global engine manager.
void registerGlobalIlluminationEngine()
Registers this rendering engine at the global engine manager.
const std::string & globalIlluminationEngineName()
Returns the name of this rendering engine.
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15