feat: add rasterization pipeline

This commit is contained in:
2026-03-04 20:01:06 +05:30
parent faa3f941d0
commit d57b2e2114
9 changed files with 163 additions and 72 deletions

23
src/util/color.h Normal file
View File

@@ -0,0 +1,23 @@
#ifndef COLOR_H_
#define COLOR_H_
typedef struct VektorColor {
unsigned char r;
unsigned char g;
unsigned char b;
unsigned char a;
} VektorColor;
static VektorColor vektor_color_blank = (VektorColor){0, 0, 0, 0};
static inline VektorColor vektor_color_new(unsigned char r, unsigned char g,
unsigned char b, unsigned char a) {
return (VektorColor){r, g, b, a};
}
static inline VektorColor vektor_color_solid(unsigned char r, unsigned char g,
unsigned char b) {
return (VektorColor){r, g, b, 255};
}
#endif // COLOR_H_