From c2a6d21dcb8067599f710b349067488f7d00e4b5 Mon Sep 17 00:00:00 2001 From: "John Wilbert M. Villamor" Date: Thu, 18 Jul 2019 09:19:44 +0800 Subject: Added fpscam example, added small descriptions to examples, minor readme changes --- examples/fpscam/lookat.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/fpscam/lookat.h (limited to 'examples/fpscam/lookat.h') diff --git a/examples/fpscam/lookat.h b/examples/fpscam/lookat.h new file mode 100644 index 0000000..c57e50a --- /dev/null +++ b/examples/fpscam/lookat.h @@ -0,0 +1,19 @@ +#ifndef _LOOKAT_H +#define _LOOKAT_H + +#include +#include + +/* LookAt + * + * Generates a matrix that looks from 'eye' to 'at'. + * + * eye - Position of viewpoint + * at - Position to 'look at' from viewpoint + * up - Vector that defines the 'up' direction + * mtx - Matrix output + * + */ +void LookAt(VECTOR *eye, VECTOR *at, SVECTOR *up, MATRIX *mtx); + +#endif // _LOOKAT_H \ No newline at end of file -- cgit v1.2.3