shadows, textures, resource managers... shaders...
[antikythera] / src / shadow.h
diff --git a/src/shadow.h b/src/shadow.h
new file mode 100644 (file)
index 0000000..b40b6f2
--- /dev/null
@@ -0,0 +1,17 @@
+#ifndef SHADOW_H_
+#define SHADOW_H_
+
+#include <gmath/gmath.h>
+
+extern bool shadow_pass;
+
+bool init_shadow(int sz);
+void destroy_shadow();
+
+void begin_shadow_pass(const gph::Vec3 &lpos, const gph::Vec3 &ltarg, float lfov, float znear, float zfar);
+void end_shadow_pass();
+
+gph::Mat4 get_shadow_matrix();
+unsigned int get_shadow_tex();
+
+#endif // SHADOW_H_