diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-03-19 16:36:17 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-19 16:36:17 -0400 |
commit | a76cef475b6da9d4953e7b3503a35f01aa7c824e (patch) | |
tree | 153daa6a73982424c1e68aaac91b88ef9c67d4d6 /include | |
parent | 8d490fdb34ad4374b3ab144f1b46296eb81ad316 (diff) | |
parent | 6ecb0eefcba21d923bd01fce688dbd6bd399fbae (diff) |
Merge pull request #733 from emersion/fix-matrix-transpose
Don't use OpenGL matrix transposition
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_matrix.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/include/wlr/types/wlr_matrix.h b/include/wlr/types/wlr_matrix.h index fd060d11..02111db8 100644 --- a/include/wlr/types/wlr_matrix.h +++ b/include/wlr/types/wlr_matrix.h @@ -5,11 +5,12 @@ #include <wlr/types/wlr_box.h> void wlr_matrix_identity(float mat[static 9]); +void wlr_matrix_multiply(float mat[static 9], const float a[static 9], + const float b[static 9]); +void wlr_matrix_transpose(float mat[static 9], const float a[static 9]); void wlr_matrix_translate(float mat[static 9], float x, float y); void wlr_matrix_scale(float mat[static 9], float x, float y); void wlr_matrix_rotate(float mat[static 9], float rad); -void wlr_matrix_multiply(float mat[static 9], const float a[static 9], - const float b[static 9]); void wlr_matrix_transform(float mat[static 9], enum wl_output_transform transform); void wlr_matrix_projection(float mat[static 9], int width, int height, |