aboutsummaryrefslogtreecommitdiff
path: root/examples/graphics/hdtv/lookat.h
diff options
context:
space:
mode:
Diffstat (limited to 'examples/graphics/hdtv/lookat.h')
-rw-r--r--examples/graphics/hdtv/lookat.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/examples/graphics/hdtv/lookat.h b/examples/graphics/hdtv/lookat.h
new file mode 100644
index 0000000..c57e50a
--- /dev/null
+++ b/examples/graphics/hdtv/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