cube

Dependencies:   mbed

Fork of manworm_tv_gpu by Jared DiCarlo

raster.h

Committer:
bwang
Date:
2019-01-15
Revision:
14:cd89c3c9978a
Parent:
13:9cf720873bf6

File content as of revision 14:cd89c3c9978a:

#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