diff options
author | Simon Ser <contact@emersion.fr> | 2022-06-07 23:15:34 +0200 |
---|---|---|
committer | Isaac Freund <mail@isaacfreund.com> | 2022-06-08 19:27:36 +0000 |
commit | 96b594110ddbb4ab133ef4c9030a7c416175b20e (patch) | |
tree | c7fafbe43abbbb90246448661b7c9f09159233db /include | |
parent | c2e046022f36001fd2b9fd369ac14acf73a20e23 (diff) |
matrix: remove wlr_matrix_projection()
69477051ccff ("matrix: deprecate wlr_matrix_projection") marked it
as deprecated. 1 year later, we can now remove it from our public
API.
Diffstat (limited to 'include')
-rw-r--r-- | include/types/wlr_matrix.h | 15 | ||||
-rw-r--r-- | include/wlr/types/wlr_matrix.h | 8 |
2 files changed, 15 insertions, 8 deletions
diff --git a/include/types/wlr_matrix.h b/include/types/wlr_matrix.h new file mode 100644 index 00000000..ce599dc1 --- /dev/null +++ b/include/types/wlr_matrix.h @@ -0,0 +1,15 @@ +#ifndef TYPES_WLR_MATRIX_H +#define TYPES_WLR_MATRIX_H + +#include <wlr/types/wlr_matrix.h> + +/** + * Writes a 2D orthographic projection matrix to mat of (width, height) with a + * specified wl_output_transform. + * + * Equivalent to glOrtho(0, width, 0, height, 1, -1) with the transform applied. + */ +void matrix_projection(float mat[static 9], int width, int height, + enum wl_output_transform transform); + +#endif diff --git a/include/wlr/types/wlr_matrix.h b/include/wlr/types/wlr_matrix.h index 1a8b5be5..043cf6d3 100644 --- a/include/wlr/types/wlr_matrix.h +++ b/include/wlr/types/wlr_matrix.h @@ -43,14 +43,6 @@ void wlr_matrix_rotate(float mat[static 9], float rad); 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. - * - * 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); - /** Shortcut for the various matrix operations involved in projecting the * specified wlr_box onto a given orthographic projection with a given * rotation. The result is written to mat, which can be applied to each |