Add nice pixel union for modifying pixel data if needed.

This commit is contained in:
Soggy_Pancake 2026-03-14 13:33:12 -07:00
parent 4e91d5ca4c
commit be4bae8597

View file

@ -1,9 +1,20 @@
#pragma once
#include <cstdint>
using namespace std;
class Graphics;
class DLCPack;
union Pixel { // Could be a duplicate but I didnt search that hard
uint32_t raw;
struct { // argb flipped because of endianness
unsigned char b;
unsigned char g;
unsigned char r;
unsigned char a;
};
};
class BufferedImage
{
private: