mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-08-04 23:22:26 +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
|
#pragma once
|
||||||
|
#include <cstdint>
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
|
||||||
class Graphics;
|
class Graphics;
|
||||||
class DLCPack;
|
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
|
class BufferedImage
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue