diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-07 21:35:07 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-07 21:35:07 -0400 |
commit | fc1dc1b5b0e912fd060f257a0c1f6d5b38d6bb75 (patch) | |
tree | 6062825fba11fd34240ae8329aab39f3d8867611 /include/wlr/render | |
parent | cda12a3eda7049e828c61506f16361c5a5b3869c (diff) |
Use constant VBO for quad, add matrix stuff
Diffstat (limited to 'include/wlr/render')
-rw-r--r-- | include/wlr/render/matrix.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/wlr/render/matrix.h b/include/wlr/render/matrix.h new file mode 100644 index 00000000..a1053b00 --- /dev/null +++ b/include/wlr/render/matrix.h @@ -0,0 +1,10 @@ +#ifndef _WLR_RENDER_MATRIX_H +#define _WLR_RENDER_MATRIX_H + +void wlr_matrix_identity(float (*output)[16]); +void wlr_matrix_translate(float (*output)[16], float x, float y, float z); +void wlr_matrix_scale(float (*output)[16], float x, float y, float z); +void wlr_matrix_rotate(float (*output)[16], float radians); +void wlr_matrix_mul(float (*x)[16], float (*y)[16], float (*product)[16]); + +#endif |