projects
/
voxscape
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
autoheight
[voxscape]
/
src
/
voxscape.h
diff --git
a/src/voxscape.h
b/src/voxscape.h
index
c0e386f
..
1bbb03a
100644
(file)
--- 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);
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_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);
void vox_proj(struct voxscape *vox, int fov, int znear, int zfar);
void vox_render(struct voxscape *vox);