aboutsummaryrefslogtreecommitdiff
path: root/include/wlr
diff options
context:
space:
mode:
authorTony Crisci <tony@dubstepdish.com>2018-01-16 07:12:46 -0500
committerTony Crisci <tony@dubstepdish.com>2018-01-16 07:14:47 -0500
commitdc701b72fc579776cf10bf7d5ec91c033f9bec8e (patch)
treea0321f46a453709514fc94926cff79e9ea017b58 /include/wlr
parentbcb58b5caa203a5651a2a24d2038117a728348e7 (diff)
abstract box matrix
Diffstat (limited to 'include/wlr')
-rw-r--r--include/wlr/types/wlr_output.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/wlr/types/wlr_output.h b/include/wlr/types/wlr_output.h
index 71463cb5..4c59d98b 100644
--- a/include/wlr/types/wlr_output.h
+++ b/include/wlr/types/wlr_output.h
@@ -136,4 +136,11 @@ enum wl_output_transform wlr_output_transform_invert(
enum wl_output_transform wlr_output_transform_compose(
enum wl_output_transform tr_a, enum wl_output_transform tr_b);
+/**
+ * Get a matrix suitable for rendering a box on the output.
+ */
+void wlr_output_get_box_matrix(struct wlr_output *output, int ox, int oy,
+ int width, int height, enum wl_output_transform transform,
+ float rotation, float (*mat)[16]);
+
#endif