autoheight
[voxscape] / src / voxscape.h
index c0e386f..1bbb03a 100644 (file)
@@ -9,8 +9,11 @@ struct voxscape *vox_create(int xsz, int ysz);
 struct voxscape *vox_open(const char *hfile, const char *cfile);
 void vox_free(struct voxscape *vox);
 
+int vox_height(struct voxscape *vox, int32_t x, int32_t y);
+
 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);
+/* negative height for auto at -h above terrain */
+void vox_view(struct voxscape *vox, int32_t x, int32_t y, int h, int32_t angle);
 void vox_proj(struct voxscape *vox, int fov, int znear, int zfar);
 
 void vox_render(struct voxscape *vox);