newpoly

view 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 source
1 #ifndef POLY_H_
2 #define POLY_H_
4 #include <stdint.h>
6 struct poly_vertex {
7 int32_t x, y, z; /* 16.16 */
8 int32_t u, v; /* 16.16 */
9 };
11 int polyfill_framebuffer(void *fb, int width, int height);
13 void polyfill_flat(struct poly_vertex *varr, int vcount);
15 #endif /* POLY_H_ */