Monado OpenXR Runtime
comp_window_direct.h
Go to the documentation of this file.
1 // Copyright 2019, Collabora, Ltd.
2 // SPDX-License-Identifier: BSL-1.0
3 /*!
4  * @file
5  * @brief Common direct mode window code header.
6  * @author Lubosz Sarnecki <lubosz.sarnecki@collabora.com>
7  * @author Jakob Bornecrantz <jakob@collabora.com>
8  * @ingroup comp_main
9  */
10 
11 #pragma once
12 
13 #include "main/comp_window.h"
14 
15 #ifdef __cplusplus
16 extern "C" {
17 #endif
18 
19 VkDisplayModeKHR
21  VkDisplayKHR display);
22 
23 VkResult
25  VkDisplayKHR display,
26  uint32_t width,
27  uint32_t height);
28 
29 int
31 
32 VkResult
34  Display *dpy,
35  VkDisplayKHR display);
36 
37 bool
39  Display *dpy,
40  VkDisplayKHR display,
41  uint32_t width,
42  uint32_t height);
43 
44 #ifdef __cplusplus
45 }
46 #endif
VkResult comp_window_direct_create_surface(struct comp_window *w, VkDisplayKHR display, uint32_t width, uint32_t height)
Definition: comp_window_direct.c:167
VkResult comp_window_direct_acquire_xlib_display(struct comp_window *w, Display *dpy, VkDisplayKHR display)
Definition: comp_window_direct.c:248
bool comp_window_direct_init_swapchain(struct comp_window *w, Display *dpy, VkDisplayKHR display, uint32_t width, uint32_t height)
Definition: comp_window_direct.c:265
A output device or a window, often directly connected to the device.
Definition: comp_window.h:32
Compositor window header.
int comp_window_direct_connect(struct comp_window *w, Display **dpy)
Definition: comp_window_direct.c:237
struct _XDisplay Display
Definition: xrt_gfx_xlib.h:20
VkDisplayModeKHR comp_window_direct_get_primary_display_mode(struct comp_window *w, VkDisplayKHR display)
Definition: comp_window_direct.c:79