Implement basic PPM image writer

This commit is contained in:
2024-03-22 00:25:48 +00:00
parent 42ceef5c4f
commit 0aee9aee5b
2 changed files with 31 additions and 0 deletions

9
ppm.h Normal file
View File

@@ -0,0 +1,9 @@
#include "aliases.h"
typedef struct {
u8 r;
u8 g;
u8 b;
} Pixel;
void write_p6_ppm(const char *filepath, u64 width, u64 height, Pixel *data);