aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2021-04-12 10:07:49 +0200
committerSimon Ser <contact@emersion.fr>2021-06-07 22:55:46 +0200
commit69477051ccffe179d11d5f23ede9b348abb2e8d3 (patch)
tree8c8fce606bd02140e2dfd42aa6f666e838f6b629
parent543f5b35d02c825347e4a2d6f032ddfa938c3fd7 (diff)
matrix: deprecate wlr_matrix_projection
This function has baked-in GL assumptions. Compositors shouldn't need to use it.
-rw-r--r--include/wlr/types/wlr_matrix.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/wlr/types/wlr_matrix.h b/include/wlr/types/wlr_matrix.h
index 359d84fb..2c72129c 100644
--- a/include/wlr/types/wlr_matrix.h
+++ b/include/wlr/types/wlr_matrix.h
@@ -44,7 +44,10 @@ void wlr_matrix_transform(float mat[static 9],
enum wl_output_transform transform);
/** Writes a 2D orthographic projection matrix to mat of (width, height) with a
- * specified wl_output_transform*/
+ * specified wl_output_transform.
+ *
+ * Deprecated: this function is deprecated and will be removed in a future
+ * version of wlroots. */
void wlr_matrix_projection(float mat[static 9], int width, int height,
enum wl_output_transform transform);