added enemy sprites, tanked the framerate... need to investigate
[gbajam22] / src / voxscape.h
index 56295ed..863aaa3 100644 (file)
@@ -10,7 +10,15 @@ enum {
 
 struct voxscape;
 
-struct voxscape *vox_create(int xsz, int ysz);
+struct vox_object {
+       int x, y, px, py;
+       int offs;
+       int32_t scale;
+};
+
+extern int vox_quality;
+
+struct voxscape *vox_create(int xsz, int ysz, uint8_t *himg, uint8_t *cimg);
 void vox_free(struct voxscape *vox);
 
 /* data argument can be null */
@@ -35,4 +43,6 @@ void vox_render_slice(struct voxscape *vox, int n);
 void vox_sky_solid(struct voxscape *vox, uint8_t color);
 void vox_sky_grad(struct voxscape *vox, uint8_t chor, uint8_t ctop);
 
+void vox_objects(struct voxscape *vox, struct vox_object *ptr, int count, int stride);
+
 #endif /* VOXSCAPE_H_ */