20 lines
267 B
C
20 lines
267 B
C
#ifndef TRIANGLE_H
|
|
#define TRIANGLE_H
|
|
|
|
#include <stdint.h>
|
|
#include "vector.h"
|
|
|
|
typedef struct {
|
|
int a;
|
|
int b;
|
|
int c;
|
|
} face_t;
|
|
|
|
typedef struct {
|
|
vec2_t points[3];
|
|
} triangle_t;
|
|
|
|
void draw_filled_triangle(triangle_t triangle, uint32_t color);
|
|
|
|
#endif
|