cube

Dependencies:   mbed

Fork of manworm_tv_gpu by Jared DiCarlo

Committer:
bwang
Date:
Tue Jan 15 23:24:16 2019 +0000
Revision:
14:cd89c3c9978a
Parent:
13:9cf720873bf6
raster

Who changed what in which revision?

UserRevisionLine numberNew contents of line
bwang 13:9cf720873bf6 1 #ifndef __RASTER_H
bwang 13:9cf720873bf6 2 #define __RASTER_H
bwang 13:9cf720873bf6 3
bwang 13:9cf720873bf6 4 void clear_zbuf();
bwang 13:9cf720873bf6 5 void hline(int16_t xmin, int16_t xmax, int16_t y, uint8_t color, int8_t zmin, int8_t zmax) ;
bwang 13:9cf720873bf6 6 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);
bwang 13:9cf720873bf6 7
bwang 13:9cf720873bf6 8 extern float theta, phi, cx, cy, cz;
bwang 13:9cf720873bf6 9
bwang 13:9cf720873bf6 10 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);
bwang 13:9cf720873bf6 11 void render_quads();
bwang 13:9cf720873bf6 12 #endif