From be4bae8597af3c047c02a7cbbde751678bb55973 Mon Sep 17 00:00:00 2001 From: Soggy_Pancake <54160598+Soggy-Pancake@users.noreply.github.com> Date: Sat, 14 Mar 2026 13:33:12 -0700 Subject: [PATCH] Add nice pixel union for modifying pixel data if needed. --- Minecraft.Client/BufferedImage.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Minecraft.Client/BufferedImage.h b/Minecraft.Client/BufferedImage.h index a0227fe2..a4746ef7 100644 --- a/Minecraft.Client/BufferedImage.h +++ b/Minecraft.Client/BufferedImage.h @@ -1,9 +1,20 @@ #pragma once +#include 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: