Ocean
GLWin.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_PLATFORM_GL_WIN_GL_WIN_H
9 #define META_OCEAN_PLATFORM_GL_WIN_GL_WIN_H
10 
11 #include "ocean/platform/gl/GL.h"
12 
13 namespace Ocean
14 {
15 
16 namespace Platform
17 {
18 
19 namespace GL
20 {
21 
22 namespace Win
23 {
24 
25 /**
26  * @ingroup platformgl
27  * @defgroup platformglwin Ocean Platform GL Windows Library
28  * @{
29  * The Ocean GL Library provides specific functionalities for OpenGL using the API of Microsoft Windows.
30  * The library is available on Windows platforms.
31  * @}
32  */
33 
34 /**
35  * @namespace Ocean::Platform::GL::Win Namespace of the Platform GL Windows library.<p>
36  * The Namespace Ocean::Platform::GL::Win is used in the entire Ocean Platform GL Windows Library.
37  */
38 
39 #ifndef _WINDOWS
40  #error This library is available on windows platforms only!
41 #endif // _WINDOWS
42 
43 // Defines OCEAN_PLATFORM_GL_WIN_EXPORT for dll export and import.
44 #if defined(_WINDOWS) && defined(OCEAN_RUNTIME_SHARED)
45  #ifdef USE_OCEAN_PLATFORM_GL_WIN_EXPORT
46  #define OCEAN_PLATFORM_GL_WIN_EXPORT __declspec(dllexport)
47  #else
48  #define OCEAN_PLATFORM_GL_WIN_EXPORT __declspec(dllimport)
49  #endif
50 #else
51  #define OCEAN_PLATFORM_GL_WIN_EXPORT
52 #endif
53 
54 }
55 
56 }
57 
58 }
59 
60 }
61 
62 #endif // META_OCEAN_PLATFORM_GL_WIN_GL_WIN_H
The namespace covering the entire Ocean framework.
Definition: Accessor.h:15