Blender V4.3
wayland_dynload_cursor.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2022 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
11#ifdef __cplusplus
12extern "C" {
13#endif
14
15#ifdef WAYLAND_DYNLOAD_FN
22#elif defined(WAYLAND_DYNLOAD_IFACE)
23/* No interfaces. */
24#else
25
26/* Header guard. */
27# if !defined(__WAYLAND_DYNLOAD_CURSOR_H__) && !defined(WAYLAND_DYNLOAD_VALIDATE)
28# define __WAYLAND_DYNLOAD_CURSOR_H__
29
30# include <wayland-cursor.h>
32
33/* Support validating declarations against the header. */
34# ifndef WAYLAND_DYNLOAD_VALIDATE
35# define WL_DYN_FN(a) (*a)
36# else
37# define WL_DYN_FN(a) (a)
38# endif
39
40# ifndef WAYLAND_DYNLOAD_VALIDATE
42# endif
43
44 struct wl_cursor_theme *WL_DYN_FN(wl_cursor_theme_load)(const char *name,
45 int size,
46 struct wl_shm *shm);
47 void WL_DYN_FN(wl_cursor_theme_destroy)(struct wl_cursor_theme *theme);
48 struct wl_cursor *WL_DYN_FN(wl_cursor_theme_get_cursor)(struct wl_cursor_theme *theme,
49 const char *name);
50 struct wl_buffer *WL_DYN_FN(wl_cursor_image_get_buffer)(struct wl_cursor_image *image);
51 int WL_DYN_FN(wl_cursor_frame)(struct wl_cursor *cursor, uint32_t time);
52 int WL_DYN_FN(wl_cursor_frame_and_duration)(struct wl_cursor *cursor,
54 uint32_t *duration);
55
56# ifndef WAYLAND_DYNLOAD_VALIDATE
57};
58# endif
59# undef WL_DYN_FN
60
61# ifndef WAYLAND_DYNLOAD_VALIDATE
62# define wl_cursor_theme_load(...) (*wayland_dynload_cursor.wl_cursor_theme_load)(__VA_ARGS__)
63# define wl_cursor_theme_destroy(...) \
64 (*wayland_dynload_cursor.wl_cursor_theme_destroy)(__VA_ARGS__)
65# define wl_cursor_theme_get_cursor(...) \
66 (*wayland_dynload_cursor.wl_cursor_theme_get_cursor)(__VA_ARGS__)
67# define wl_cursor_image_get_buffer(...) \
68 (*wayland_dynload_cursor.wl_cursor_image_get_buffer)(__VA_ARGS__)
69# define wl_cursor_frame(...) (*wayland_dynload_cursor.wl_cursor_frame)(__VA_ARGS__)
70# define wl_cursor_frame_and_duration(...) \
71 (*wayland_dynload_cursor.wl_cursor_frame_and_duration)(__VA_ARGS__)
72# endif /* !WAYLAND_DYNLOAD_VALIDATE */
73# endif /* !__WAYLAND_DYNLOAD_CLIENT_H__ */
74#endif /* !defined(WAYLAND_DYNLOAD_FN) && !defined(WAYLAND_DYNLOAD_IFACE) */
75
76#ifdef __cplusplus
77}
78#endif
static DBVT_INLINE btScalar size(const btDbvtVolume &a)
Definition btDbvt.cpp:52
input_tx image(0, GPU_RGBA16F, Qualifier::WRITE, ImageType::FLOAT_2D, "preview_img") .compute_source("compositor_compute_preview.glsl") .do_static_compilation(true)
double time
unsigned int uint32_t
Definition stdint.h:80
#define WAYLAND_DYNLOAD_FN(symbol)
struct WaylandDynload_Cursor wayland_dynload_cursor
#define WL_DYN_FN(a)
#define wl_cursor_frame_and_duration(...)
#define wl_cursor_frame(...)
#define wl_cursor_theme_get_cursor(...)
#define wl_cursor_theme_load(...)
#define wl_cursor_image_get_buffer(...)
#define wl_cursor_theme_destroy(...)