2020-07-28 16:56:18 +02:00
|
|
|
#ifndef RENDER_WLR_RENDERER_H
|
|
|
|
#define RENDER_WLR_RENDERER_H
|
|
|
|
|
|
|
|
#include <wlr/render/wlr_renderer.h>
|
|
|
|
|
2021-01-16 22:26:44 +01:00
|
|
|
/**
|
|
|
|
* Automatically select and create a renderer suitable for the DRM FD.
|
|
|
|
*/
|
2021-04-29 09:46:34 +02:00
|
|
|
struct wlr_renderer *renderer_autocreate_with_drm_fd(int drm_fd);
|
2020-11-18 14:16:22 +01:00
|
|
|
/**
|
2021-04-15 16:22:06 +02:00
|
|
|
* Get the supported render formats. Buffers allocated with a format from this
|
2021-06-08 09:16:18 +02:00
|
|
|
* list may be attached via wlr_renderer_begin_with_buffer.
|
2020-11-18 14:16:22 +01:00
|
|
|
*/
|
2021-04-15 16:22:06 +02:00
|
|
|
const struct wlr_drm_format_set *wlr_renderer_get_render_formats(
|
2020-11-18 14:16:22 +01:00
|
|
|
struct wlr_renderer *renderer);
|
2021-04-23 19:51:05 +02:00
|
|
|
/**
|
|
|
|
* Get the supported buffer capabilities.
|
|
|
|
*
|
|
|
|
* This functions returns a bitfield of supported wlr_buffer_cap.
|
|
|
|
*/
|
|
|
|
uint32_t renderer_get_render_buffer_caps(struct wlr_renderer *renderer);
|
2020-07-28 16:56:18 +02:00
|
|
|
|
|
|
|
#endif
|