matrix: Add cogl_matrix_look_at

Similar to the widely used gluLookAt API, this adds a CoglMatrix utility
for setting up a view transform in terms of positioning a camera/eye
position that points to a given object position aligned to a given
world-up vector.

Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
Robert Bragg
2011-07-09 02:43:17 +01:00
parent 3a2f94045e
commit f37d9bbb4d
3 changed files with 119 additions and 0 deletions

View File

@@ -424,6 +424,7 @@ cogl_matrix_free
cogl_matrix_frustum
cogl_matrix_ortho
cogl_matrix_perspective
cogl_matrix_look_at
cogl_matrix_multiply
cogl_matrix_rotate
cogl_matrix_translate