matrix: remove wlr_matrix_projection()

69477051cc ("matrix: deprecate wlr_matrix_projection") marked it
as deprecated. 1 year later, we can now remove it from our public
API.
This commit is contained in:
Simon Ser 2022-06-07 23:15:34 +02:00 committed by Isaac Freund
parent c2e046022f
commit 96b594110d
5 changed files with 22 additions and 13 deletions

View file

@ -4,6 +4,7 @@
#include <wlr/types/wlr_matrix.h>
#include <wlr/types/wlr_output.h>
#include <wlr/util/box.h>
#include "types/wlr_matrix.h"
void wlr_matrix_identity(float mat[static 9]) {
static const float identity[9] = {
@ -117,8 +118,7 @@ void wlr_matrix_transform(float mat[static 9],
wlr_matrix_multiply(mat, mat, transforms[transform]);
}
// Equivalent to glOrtho(0, width, 0, height, 1, -1) with the transform applied
void wlr_matrix_projection(float mat[static 9], int width, int height,
void matrix_projection(float mat[static 9], int width, int height,
enum wl_output_transform transform) {
memset(mat, 0, sizeof(*mat) * 9);