-> Implement Debug Colors

- Debug Colors
- Debug Menus
- Formatting
This commit is contained in:
2024-02-21 20:17:12 +01:00
parent 968c2576b9
commit 0092edf54f
4 changed files with 33 additions and 21 deletions

View File

@ -12,7 +12,7 @@
#define UNPACK_BGRA(col) (uint8_t)(col >> 8), (col >> 16), (col >> 24), (col)
inline uint32_t RGBA8(uint8_t r, uint8_t g, uint8_t b, uint8_t a = 255) {
#define ISIMPLEPAK(x, y) (((x) & 0xff) << y)
#define ISIMPLEPAK(x, y) (((x)&0xff) << y)
return (ISIMPLEPAK(r, 0) | ISIMPLEPAK(g, 8) | ISIMPLEPAK(b, 16) |
ISIMPLEPAK(a, 24));
}