newpoly
diff src/poly.h @ 0:224206bc554a
initial commit
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Fri, 15 Dec 2017 09:24:39 +0200 |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/src/poly.h Fri Dec 15 09:24:39 2017 +0200 1.3 @@ -0,0 +1,15 @@ 1.4 +#ifndef POLY_H_ 1.5 +#define POLY_H_ 1.6 + 1.7 +#include <stdint.h> 1.8 + 1.9 +struct poly_vertex { 1.10 + int32_t x, y, z; /* 16.16 */ 1.11 + int32_t u, v; /* 16.16 */ 1.12 +}; 1.13 + 1.14 +int polyfill_framebuffer(void *fb, int width, int height); 1.15 + 1.16 +void polyfill_flat(struct poly_vertex *varr, int vcount); 1.17 + 1.18 +#endif /* POLY_H_ */