X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fvoxscape.h;fp=src%2Fvoxscape.h;h=1bbb03acdf6cffd22f61a66a51f275a289d8b6e0;hb=34a5a35c6ba9aff4ae92475bfa8d3b398633d835;hp=c0e386fc92231914db84ee819896ae630aa8b364;hpb=0fd2ff847d24709de81b5af4ffa6baa8fb9949a5;p=voxscape diff --git a/src/voxscape.h b/src/voxscape.h index c0e386f..1bbb03a 100644 --- a/src/voxscape.h +++ b/src/voxscape.h @@ -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);