git.s-ol.nu forks/DiligentCore / 4fdafe9
Updated LinuxNativeWindow assiduous 3 years ago
4 changed file(s) with 59 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
5353 m_SwapChainDesc.Width = rc.right - rc.left;
5454 m_SwapChainDesc.Height = rc.bottom - rc.top;
5555 #elif PLATFORM_LINUX
56 auto wnd = static_cast<Window>(reinterpret_cast<size_t>(InitAttribs.Window.pWindow));
56 auto wnd = InitAttribs.Window.WindowId;
5757 auto display = reinterpret_cast<Display*>(InitAttribs.Window.pDisplay);
5858
5959 XWindowAttributes XWndAttribs;
2727 #pragma once
2828
2929 #include "../../../Primitives/interface/CommonDefinitions.h"
30 #include "../../../Primitives/interface/BasicTypes.h"
3031
3132 DILIGENT_BEGIN_NAMESPACE(Diligent)
3233
3334 struct LinuxNativeWindow
3435 {
36 Uint32 WindowId DEFAULT_INITIALIZER(0);
3537 void* pDisplay DEFAULT_INITIALIZER(nullptr);
36 void* pWindow DEFAULT_INITIALIZER(nullptr);
3738 void* pXCBConnection DEFAULT_INITIALIZER(nullptr);
3839 };
3940
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 #include "DiligentCore/Platforms/interface/NativeWindow.h"
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 #include "DiligentCore/Platforms/interface/NativeWindow.h"