git.s-ol.nu forks/DiligentCore / 45894f9
Cleaned-up NativeWindow PR assiduous 3 years ago
21 changed file(s) with 258 addition(s) and 258 deletion(s). Raw diff Collapse all Expand all
2929 /// \file
3030 /// Diligent API information
3131
32 #define DILIGENT_API_VERSION 240052
32 #define DILIGENT_API_VERSION 240053
3333
3434 #include "../../../Primitives/interface/BasicTypes.h"
3535
66 interface/AndroidFileSystem.hpp
77 interface/AndroidPlatformDefinitions.h
88 interface/AndroidPlatformMisc.hpp
9 interface/AndroidNativeWindow.hpp
9 interface/AndroidNativeWindow.h
1010 )
1111
1212 set(SOURCE
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct AndroidNativeWindow
34 {
35 void* pAWindow DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
+0
-39
Platforms/Android/interface/AndroidNativeWindow.hpp less more
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct AndroidNativeWindow
34 {
35 void* pAWindow DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
22 project(Diligent-ApplePlatform CXX)
33
44 if(PLATFORM_MACOS)
5 set(APPLE_NATIVE_WINDOW_H interface/MacOSNativeWindow.hpp)
5 set(APPLE_NATIVE_WINDOW_H interface/MacOSNativeWindow.h)
66 elseif(PLATFORM_IOS)
7 set(APPLE_NATIVE_WINDOW_H interface/IOSNativeWindow.hpp)
7 set(APPLE_NATIVE_WINDOW_H interface/IOSNativeWindow.h)
88 endif()
99
1010 set(INTERFACE
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct IOSNativeWindow
34 {
35 void* pNSView DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
+0
-39
Platforms/Apple/interface/IOSNativeWindow.hpp less more
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct IOSNativeWindow
34 {
35 void* pNSView DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct MacOSNativeWindow
34 {
35 void* pNSWindow DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
+0
-39
Platforms/Apple/interface/MacOSNativeWindow.hpp less more
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct MacOSNativeWindow
34 {
35 void* pNSWindow DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
66 interface/LinuxFileSystem.hpp
77 interface/LinuxPlatformDefinitions.h
88 interface/LinuxPlatformMisc.hpp
9 interface/LinuxNativeWindow.hpp
9 interface/LinuxNativeWindow.h
1010 )
1111
1212 set(SOURCE
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct LinuxNativeWindow
34 {
35 void* pDisplay DEFAULT_INITIALIZER(nullptr);
36 void* pWindow DEFAULT_INITIALIZER(nullptr);
37 };
38
39 DILIGENT_END_NAMESPACE // namespace Diligent
+0
-40
Platforms/Linux/interface/LinuxNativeWindow.hpp less more
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct LinuxNativeWindow
34 {
35 void* pDisplay DEFAULT_INITIALIZER(nullptr);
36 void* pWindow DEFAULT_INITIALIZER(nullptr);
37 };
38
39 DILIGENT_END_NAMESPACE // namespace Diligent
55 interface/UWPDebug.hpp
66 interface/UWPFileSystem.hpp
77 interface/UWPDefinitions.h
8 interface/UWPNativeWindow.hpp
8 interface/UWPNativeWindow.h
99 ../Win32/interface/Win32Atomics.hpp
1010 )
1111
3232 )
3333
3434 source_group("src" FILES ${SOURCE})
35 source_group("include" FILES ${INCLUDE})
36 source_group("interface" FILES ${PLATFORM_INTERFACE_HEADERS})
35 source_group("interface\\UWP" FILES ${INTERFACE})
36 source_group("interface\\common" FILES ${PLATFORM_INTERFACE_HEADERS})
3737
3838 set_target_properties(Diligent-UniversalWindowsPlatform PROPERTIES
3939 FOLDER DiligentCore/Platforms
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct UWPNativeWindow
34 {
35 void* pWindow DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
+0
-39
Platforms/UWP/interface/UWPNativeWindow.hpp less more
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct UWPNativeWindow
34 {
35 void* pWindow DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
77 interface/Win32FileSystem.hpp
88 interface/Win32PlatformDefinitions.h
99 interface/Win32PlatformMisc.hpp
10 interface/Win32NativeWindow.hpp
10 interface/Win32NativeWindow.h
1111 )
1212
1313 set(SOURCE
3434 )
3535
3636 source_group("src" FILES ${SOURCE})
37 source_group("include" FILES ${INCLUDE})
38 source_group("interface" FILES ${PLATFORM_INTERFACE_HEADERS})
37 source_group("interface\\win32" FILES ${INTERFACE})
38 source_group("interface\\common" FILES ${PLATFORM_INTERFACE_HEADERS})
3939
4040 set_target_properties(Diligent-Win32Platform PROPERTIES
4141 FOLDER DiligentCore/Platforms
4343
4444 if(DILIGENT_INSTALL_CORE)
4545 install_core_lib(Diligent-Win32Platform)
46 endif()
46 endif()
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct Win32NativeWindow
34 {
35 void* hWnd DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
+0
-39
Platforms/Win32/interface/Win32NativeWindow.hpp less more
0 /*
1 * Copyright 2019-2020 Diligent Graphics LLC
2 * Copyright 2015-2019 Egor Yusov
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *
16 * In no event and under no legal theory, whether in tort (including negligence),
17 * contract, or otherwise, unless required by applicable law (such as deliberate
18 * and grossly negligent acts) or agreed to in writing, shall any Contributor be
19 * liable for any damages, including any direct, indirect, special, incidental,
20 * or consequential damages of any character arising as a result of this License or
21 * out of the use or inability to use the software (including but not limited to damages
22 * for loss of goodwill, work stoppage, computer failure or malfunction, or any and
23 * all other commercial damages or losses), even if such Contributor has been advised
24 * of the possibility of such damages.
25 */
26
27 #pragma once
28
29 #include "../../../Primitives/interface/CommonDefinitions.h"
30
31 DILIGENT_BEGIN_NAMESPACE(Diligent)
32
33 struct Win32NativeWindow
34 {
35 void* hWnd DEFAULT_INITIALIZER(nullptr);
36 };
37
38 DILIGENT_END_NAMESPACE // namespace Diligent
3030
3131 #if PLATFORM_WIN32
3232
33 # include "../Win32/interface/Win32NativeWindow.hpp"
33 # include "../Win32/interface/Win32NativeWindow.h"
3434
3535 #elif PLATFORM_UNIVERSAL_WINDOWS
3636
37 # include "../UWP/interface/UWPNativeWindow.hpp"
37 # include "../UWP/interface/UWPNativeWindow.h"
3838
3939 #elif PLATFORM_ANDROID
4040
41 # include "../Android/interface/AndroidNativeWindow.hpp"
41 # include "../Android/interface/AndroidNativeWindow.h"
4242
4343 #elif PLATFORM_LINUX
4444
45 # include "../Linux/interface/LinuxNativeWindow.hpp"
45 # include "../Linux/interface/LinuxNativeWindow.h"
4646
4747 #elif PLATFORM_MACOS
4848
49 # include "../Apple/interface/MacOSNativeWindow.hpp"
49 # include "../Apple/interface/MacOSNativeWindow.h"
5050
5151 #elif PLATFORM_IOS
5252
53 # include "../Apple/interface/IOSNativeWindow.hpp"
53 # include "../Apple/interface/IOSNativeWindow.h"
5454
5555 #else
56 # error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
56 # error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
5757 #endif
5858
5959 DILIGENT_BEGIN_NAMESPACE(Diligent)
8383 typedef struct IOSNativeWindow NativeWindow;
8484
8585 #else
86 # error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
86 # error Unknown platform. Please define one of the following macros as 1: PLATFORM_WIN32, PLATFORM_UNIVERSAL_WINDOWS, PLATFORM_ANDROID, PLATFORM_LINUX, PLATFORM_MACOS, PLATFORM_IOS.
8787 #endif
8888
89 DILIGENT_END_NAMESPACE // namespace Diligent
89 DILIGENT_END_NAMESPACE // namespace Diligent
216216 ```cpp
217217 auto* pFactoryOpenGL = GetEngineFactoryOpenGL();
218218 EngineGLCreateInfo EngineCI;
219 EngineCI.NativeWindow.pAWindow = NativeWindowHandle;
219 EngineCI.Window.pAWindow = NativeWindowHandle;
220220 pFactoryOpenGL->CreateDeviceAndSwapChainGL(
221221 EngineCI, &m_pDevice, &m_pContext, SCDesc, &m_pSwapChain);
222222 IRenderDeviceGLES *pRenderDeviceOpenGLES;
268268 # endif
269269 auto* pFactoryOpenGL = GetEngineFactoryOpenGL();
270270
271 NativeWindow Window = CreateNativeWindow();
271 auto Window = CreateNativeWindow();
272272
273273 EngineGLCreateInfo CreateInfo;
274274 CreateInfo.DebugMessageCallback = MessageCallback;