interpolation
[voxscape] / src / voxscape.h
index 9bd5164..0602831 100644 (file)
@@ -3,6 +3,11 @@
 
 #include <stdint.h>
 
+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);