aboutsummaryrefslogtreecommitdiff
path: root/examples/fpscam/lookat.h
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-07-18 09:19:44 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-07-18 09:19:44 +0800
commitc2a6d21dcb8067599f710b349067488f7d00e4b5 (patch)
tree79c3e72364f69107bc76e4f7c22743aab8b65d1f /examples/fpscam/lookat.h
parent0d4345a9bf2623df079c50a3bc73cbb7deca1176 (diff)
downloadpsn00bsdk-c2a6d21dcb8067599f710b349067488f7d00e4b5.tar.gz
Added fpscam example, added small descriptions to examples, minor readme changes
Diffstat (limited to 'examples/fpscam/lookat.h')
-rw-r--r--examples/fpscam/lookat.h19
1 files changed, 19 insertions, 0 deletions
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 <psxgte.h>
+#include <psxgpu.h>
+
+/* 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