From fc1dc1b5b0e912fd060f257a0c1f6d5b38d6bb75 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 7 Jun 2017 21:35:07 -0400 Subject: Use constant VBO for quad, add matrix stuff --- include/wlr/render/matrix.h | 10 ++++++++++ include/wlr/types.h | 2 ++ 2 files changed, 12 insertions(+) create mode 100644 include/wlr/render/matrix.h (limited to 'include') 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 diff --git a/include/wlr/types.h b/include/wlr/types.h index a3afb258..51ea45cf 100644 --- a/include/wlr/types.h +++ b/include/wlr/types.h @@ -47,5 +47,7 @@ bool wlr_output_set_mode(struct wlr_output *output, void wlr_output_transform(struct wlr_output *output, enum wl_output_transform transform); void wlr_output_destroy(struct wlr_output *output); +void wlr_output_effective_resolution(struct wlr_output *output, + int *width, int *height); #endif -- cgit v1.2.3