summaryrefslogtreecommitdiff
path: root/include/render/pass.h
blob: e7564fdfd26416efdc0aef2c3eec5bc9c4a18df9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#ifndef FX_RENDER_PASS_H
#define FX_RENDER_PASS_H

#include <scenefx/render/pass.h>
#include <stdbool.h>
#include <wlr/render/pass.h>
#include <wlr/util/box.h>
#include <wlr/render/interface.h>

struct fx_render_texture_options fx_render_texture_options_default(
		const struct wlr_render_texture_options *base);

struct fx_render_rect_options fx_render_rect_options_default(
		const struct wlr_render_rect_options *base);

struct fx_render_stencil_box_options {
	struct wlr_box box;
	/* Clip region, leave NULL to disable clipping */
	const pixman_region32_t *clip;
	int corner_radius;
};

/**
 * Render a stencil mask.
 */
void fx_render_pass_add_stencil_mask(struct fx_gles_render_pass *pass,
		const struct fx_render_stencil_box_options *options);

#endif