mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-27 07:05:59 +01:00
24cf70ae96
Compositors now have more control over how the backend creates its renderer. Currently all backends create an EGL/GLES2 renderer, so the necessary attributes for creating the context are passed to a user-provided callback function. It is responsible for initializing provided wlr_egl and to return a renderer. On fail, return 0. Fixes #987
18 lines
597 B
C
18 lines
597 B
C
#ifndef WLR_BACKEND_X11_H
|
|
#define WLR_BACKEND_X11_H
|
|
|
|
#include <stdbool.h>
|
|
#include <wayland-server.h>
|
|
#include <wlr/backend.h>
|
|
#include <wlr/types/wlr_input_device.h>
|
|
#include <wlr/types/wlr_output.h>
|
|
|
|
struct wlr_backend *wlr_x11_backend_create(struct wl_display *display,
|
|
const char *x11_display, wlr_renderer_create_func_t create_renderer_func);
|
|
struct wlr_output *wlr_x11_output_create(struct wlr_backend *backend);
|
|
|
|
bool wlr_backend_is_x11(struct wlr_backend *backend);
|
|
bool wlr_input_device_is_x11(struct wlr_input_device *device);
|
|
bool wlr_output_is_x11(struct wlr_output *output);
|
|
|
|
#endif
|