X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fvoxscape.h;fp=src%2Fvoxscape.h;h=0602831b22adc09e447d31fbeeed1fc4cbce592f;hb=5eeffedb4f25f0513dc1e654ccd5722d814a3ecc;hp=9bd5164ee26465dbf84720462f4463f2b1699d55;hpb=f18556d9f7174dfb6822a7a543732389e8d48bcd;p=voxscape diff --git a/src/voxscape.h b/src/voxscape.h index 9bd5164..0602831 100644 --- a/src/voxscape.h +++ b/src/voxscape.h @@ -3,6 +3,11 @@ #include +enum { + VOX_NEAREST, + VOX_LINEAR +}; + struct voxscape; #define VOX_RGB(r, g, b) \ @@ -15,6 +20,8 @@ void vox_free(struct voxscape *vox); void vox_fog(struct voxscape *vox, int zstart, uint32_t color); int vox_height(struct voxscape *vox, int32_t x, int32_t y); +void vox_filter(struct voxscape *vox, int hfilt, int cfilt); + void vox_framebuf(struct voxscape *vox, int xres, int yres, uint32_t *fb, int horizon); /* 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);