cube

Dependencies:   mbed

Fork of manworm_tv_gpu by Jared DiCarlo

Revision:
13:9cf720873bf6
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/raster.h	Fri May 04 19:18:18 2018 +0000
@@ -0,0 +1,12 @@
+#ifndef __RASTER_H
+#define __RASTER_H
+
+void clear_zbuf();
+void hline(int16_t xmin, int16_t xmax, int16_t y, uint8_t color, int8_t zmin, int8_t zmax) ;
+void fill_triangle(int16_t x1, int16_t y1, int16_t x2, int16_t y2, int16_t x3, int16_t y3, uint8_t color, int8_t z1, int8_t z2, int8_t z3);
+
+extern float theta, phi, cx, cy, cz;
+
+void add_quad(float x1, float y1, float z1, float x2, float y2, float z2, float x3, float y3, float z3, float x4, float y4, float z4, uint8_t color);
+void render_quads();
+#endif
\ No newline at end of file