summaryrefslogtreecommitdiff
path: root/include/cglm/call/clipspace/project_zo.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cglm/call/clipspace/project_zo.h')
-rw-r--r--include/cglm/call/clipspace/project_zo.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/cglm/call/clipspace/project_zo.h b/include/cglm/call/clipspace/project_zo.h
new file mode 100644
index 0000000..d2a6c62
--- /dev/null
+++ b/include/cglm/call/clipspace/project_zo.h
@@ -0,0 +1,31 @@
+/*
+ * Copyright (c), Recep Aslantas.
+ *
+ * MIT License (MIT), http://opensource.org/licenses/MIT
+ * Full license can be found in the LICENSE file
+ */
+
+#ifndef cglmc_project_zo_h
+#define cglmc_project_zo_h
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#include "../../cglm.h"
+
+CGLM_EXPORT
+void
+glmc_unprojecti_zo(vec3 pos, mat4 invMat, vec4 vp, vec3 dest);
+
+CGLM_EXPORT
+void
+glmc_project_zo(vec3 pos, mat4 m, vec4 vp, vec3 dest);
+
+CGLM_EXPORT
+float
+glmc_project_z_zo(vec3 pos, mat4 m);
+
+#ifdef __cplusplus
+}
+#endif
+#endif /* cglmc_project_zo_h */