summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-05-02 13:53:45 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-05-02 13:53:45 -0400
commitd880e14f8a988b5ae42f4eac56c869665d0eec11 (patch)
treef5fd2369105fb358555e9a7a6917ec7132002b93
parenta04eecc27b9c69e78d225bd1e6fe8938adf572b1 (diff)
compositor: Export matrix functions
-rw-r--r--compositor/compositor.c4
-rw-r--r--compositor/compositor.h8
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 {