diff options
author | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 19:03:10 -0500 |
---|---|---|
committer | Tony Crisci <tony@dubstepdish.com> | 2018-01-21 19:03:10 -0500 |
commit | 85a6939cf2753fd6a7fa84c9fcd370a4fb1f4095 (patch) | |
tree | 7944fa34611819667c2efc9df04d321e2e09a6aa /render | |
parent | e8c407d00e9acaff27973af8df4eaf19b6571d88 (diff) |
rename matrix model box to project box
Diffstat (limited to 'render')
-rw-r--r-- | render/matrix.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/render/matrix.c b/render/matrix.c index a64a8f9b..9a1b2bb4 100644 --- a/render/matrix.c +++ b/render/matrix.c @@ -161,8 +161,9 @@ void wlr_matrix_texture(float mat[static 16], int32_t width, int32_t height, mat[15] = 1.0f; } -void wlr_matrix_box_model(float (*mat)[16], struct wlr_box *box, - enum wl_output_transform transform, float rotation) { +void wlr_matrix_project_box(float (*mat)[16], struct wlr_box *box, + enum wl_output_transform transform, float rotation, + float (*projection)[16]) { int x = box->x; int y = box->y; int width = box->width; @@ -203,4 +204,6 @@ void wlr_matrix_box_model(float (*mat)[16], struct wlr_box *box, wlr_matrix_mul(mat, &surface_translate_origin, mat); } + + wlr_matrix_mul(projection, mat, mat); } |