3d-renderer/scripts/triangle.h
2025-07-09 22:23:12 -07:00

25 lines
321 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 {
int x;
int y;
} int_vec2_t;
typedef struct {
vec2_t points[3];
} triangle_t;
void draw_filled_triangle(triangle_t triangle, uint32_t color);
#endif