From d880e14f8a988b5ae42f4eac56c869665d0eec11 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 2 May 2011 13:53:45 -0400 Subject: [PATCH] compositor: Export matrix functions --- compositor/compositor.c | 4 ++-- compositor/compositor.h | 8 ++++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/compositor/compositor.c b/compositor/compositor.c index 0cde2a8..1956930 100644 --- a/compositor/compositor.c +++ b/compositor/compositor.c @@ -76,7 +76,7 @@ wlsc_matrix_multiply(struct wlsc_matrix *m, const struct wlsc_matrix *n) memcpy(m, &tmp, sizeof tmp); } -static void +WL_EXPORT void wlsc_matrix_translate(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z) { struct wlsc_matrix translate = { @@ -86,7 +86,7 @@ wlsc_matrix_translate(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat wlsc_matrix_multiply(matrix, &translate); } -static void +WL_EXPORT void wlsc_matrix_scale(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z) { struct wlsc_matrix scale = { diff --git a/compositor/compositor.h b/compositor/compositor.h index 81e3db4..ed2c375 100644 --- a/compositor/compositor.h +++ b/compositor/compositor.h @@ -37,6 +37,14 @@ struct wlsc_matrix { GLfloat d[16]; }; +void +wlsc_matrix_init(struct wlsc_matrix *matrix); +void +wlsc_matrix_scale(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z); +void +wlsc_matrix_translate(struct wlsc_matrix *matrix, + GLfloat x, GLfloat y, GLfloat z); + struct wlsc_surface; struct wlsc_output { -- 2.7.4