foo
[voxscape] / src / voxscape.h
1 #ifndef VOXSCAPE_H_
2 #define VOXSCAPE_H_
3
4 #include <stdint.h>
5
6 struct voxscape;
7
8 struct voxscape *vox_create(int xsz, int ysz);
9 struct voxscape *vox_open(const char *hfile, const char *cfile);
10 void vox_free(struct voxscape *vox);
11
12 void vox_framebuf(struct voxscape *vox, int xres, int yres, uint32_t *fb);
13 void vox_view(struct voxscape *vox, int32_t x, int32_t y, int32_t angle);
14 void vox_proj(struct voxscape *vox, int fov, int znear, int zfar);
15
16 void vox_render(struct voxscape *vox);
17
18 void vox_begin(struct voxscape *vox);
19 void vox_render_slice(struct voxscape *vox, int n);
20
21 #endif  /* VOXSCAPE_H_ */