mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-04-25 16:37:21 +00:00
Add nice pixel union for modifying pixel data if needed.
This commit is contained in:
parent
4e91d5ca4c
commit
be4bae8597
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue