ref: a1f3069a4ac76cd475d9434130490fe06f963856
parent: fce34d64562f193577e4b90df5f3e3b6d9d78eeb
author: Jacob Moody <[email protected]>
date: Fri Aug 25 20:42:24 EDT 2023
rgba_t is assumed 4 bytes
--- a/src/types.h
+++ b/src/types.h
@@ -7,6 +7,7 @@
#include <stdlib.h>
#include <math.h>
+#pragma pack on
typedef union rgba_t {
struct {
uint8_t r, g, b, a;
@@ -14,6 +15,7 @@
uint8_t as_components[4];
uint32_t as_uint32;
} rgba_t;
+#pragma pack off
typedef struct {
float x, y;