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.h | |
parent | 668ca37b19926e57b414497f3881f3939e804c0d (diff) |
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.h')
-rw-r--r-- | src/matrix.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/matrix.h b/src/matrix.h index f149d87..2c3285a 100644 --- a/src/matrix.h +++ b/src/matrix.h @@ -43,4 +43,8 @@ weston_matrix_translate(struct weston_matrix *matrix, void weston_matrix_transform(struct weston_matrix *matrix, struct weston_vector *v); +int +weston_matrix_invert(struct weston_matrix *inverse, + const struct weston_matrix *matrix); + #endif /* WESTON_MATRIX_H */ |