1WAFFLE_NATIVE(3)                 Waffle Manual                WAFFLE_NATIVE(3)
2
3
4

NAME

6       waffle_native, waffle_native_display, waffle_native_config,
7       waffle_native_context, waffle_native_window - Containers for underlying
8       native objects
9

SYNOPSIS

11       #include <waffle.h>
12
13       union waffle_native_display {
14           struct waffle_gbm_display *gbm;
15           struct waffle_glx_display *glx;
16           struct waffle_wayland_display *wayland;
17           struct waffle_x11_egl_display *x11_egl;
18       };
19
20       union waffle_native_config {
21           struct waffle_gbm_config *gbm;
22           struct waffle_glx_config *glx;
23           struct waffle_wayland_config *wayland;
24           struct waffle_x11_egl_config *x11_egl;
25       };
26
27       union waffle_native_context {
28           struct waffle_gbm_context *gbm;
29           struct waffle_glx_context *glx;
30           struct waffle_wayland_context *wayland;
31           struct waffle_x11_egl_context *x11_egl;
32       };
33
34       union waffle_native_window {
35           struct waffle_gbm_window *gbm;
36           struct waffle_glx_window *glx;
37           struct waffle_wayland_window *wayland;
38           struct waffle_x11_egl_window *x11_egl;
39       };
40
41

DESCRIPTION

43       Each of the waffle_${obj}_get_native() functions returns a
44       correspondingly named union waffle_native_${obj}*. For example,
45       waffle_window_get_native() returns union waffle_native_window*
46
47       For each platform, the header <waffle_${platform}.h> defines the native
48       container structs. For example, <waffle_glx.h> defines the structs
49       waffle_glx_${obj}.
50
51       Observerve that native container structs are not defined for all
52       platforms that waffle supports. In particular, waffle supports Android
53       (WAFFLE_PLATFORM_ANDROID) and MacOS via CGL (WAFFLE_PLATFORM_CGL), but
54       no container structs are defined for those platforms. Presently, waffle
55       does not expose the native objects for those platforms due to
56       implementation difficulties.
57

ISSUES

59       Please report bugs or and feature requests to
60       https://gitlab.freedesktop.org/mesa/waffle/issues.
61

SEE ALSO

63       waffle(7), waffle_gbm(3), waffle_glx(3), waffle_wayland(3),
64       waffle_x11_egl(3)
65

AUTHOR

67       Chad Versace <chad.versace@linux.intel.com>
68           Maintainer
69
71       Copyright © 2013 Intel
72
73       This manual page is licensed under the Creative Commons
74       Attribution-ShareAlike 3.0 United States License (CC BY-SA 3.0). To
75       view a copy of this license, visit
76       http://creativecommons.org.license/by-sa/3.0/us.
77
78
79
80
81waffle                            07/22/2023                  WAFFLE_NATIVE(3)
Impressum