foo
[voxscape] / src / voxscape.h
diff --git a/src/voxscape.h b/src/voxscape.h
new file mode 100644 (file)
index 0000000..bd7d3a1
--- /dev/null
@@ -0,0 +1,21 @@
+#ifndef VOXSCAPE_H_
+#define VOXSCAPE_H_
+
+#include <stdint.h>
+
+struct voxscape;
+
+struct voxscape *vox_create(int xsz, int ysz);
+struct voxscape *vox_open(const char *hfile, const char *cfile);
+void vox_free(struct voxscape *vox);
+
+void vox_framebuf(struct voxscape *vox, int xres, int yres, uint32_t *fb);
+void vox_view(struct voxscape *vox, int32_t x, int32_t y, int32_t angle);
+void vox_proj(struct voxscape *vox, int fov, int znear, int zfar);
+
+void vox_render(struct voxscape *vox);
+
+void vox_begin(struct voxscape *vox);
+void vox_render_slice(struct voxscape *vox, int n);
+
+#endif /* VOXSCAPE_H_ */