diff options
author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-01-12 15:00:57 +0200 |
---|---|---|
committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-01-27 10:44:22 +0200 |
commit | 061b7471f1cca72c98ebec53d0e89e8166ed30f3 (patch) | |
tree | 6e0caa27e3e00316e59b98b1bd1e5bdd0ac7f7b7 /src/matrix.c | |
parent | 668ca37b19926e57b414497f3881f3939e804c0d (diff) | |
download | weston-061b7471f1cca72c98ebec53d0e89e8166ed30f3.tar.gz weston-061b7471f1cca72c98ebec53d0e89e8166ed30f3.tar.bz2 weston-061b7471f1cca72c98ebec53d0e89e8166ed30f3.zip |
compositor: drop inverse matrix from weston_transform
Remove the inverse matrix member from struct weston_transform. It is
easier (and probably faster, too) to create and store only forward
transformation matrices in a list, multiply them once, and then invert
the final matrix, rather than creating both forward and inverse
matrices, and multiplying both.
Add a stub for the 4x4 matrix inversion function.
Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
Diffstat (limited to 'src/matrix.c')
-rw-r--r-- | src/matrix.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/matrix.c b/src/matrix.c index c71471f1..941e9584 100644 --- a/src/matrix.c +++ b/src/matrix.c @@ -100,3 +100,10 @@ weston_matrix_transform(struct weston_matrix *matrix, struct weston_vector *v) *v = t; } + +WL_EXPORT int +weston_matrix_invert(struct weston_matrix *inverse, + const struct weston_matrix *matrix) +{ + return -1; /* fail */ +} |