mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Start messing around with transmitter special rendering. Still can't see anything
This commit is contained in:
1 parent
87d2305860
commit
dff7e68916
8 files changed
+486
-109
No files matched your search
@@ -5,5 +5,21 @@ package mekanism.common;
|
||||
*/
|
||||
public class ColourRGBA
|
||||
{
|
||||
public ColourRGBA(double r, double g, double b, double a) {}
|
||||
public byte r;
|
||||
public byte g;
|
||||
public byte b;
|
||||
public byte a;
|
||||
|
||||
public ColourRGBA(double d1, double d2, double d3, double d4)
|
||||
{
|
||||
r = (byte)d1;
|
||||
g = (byte)d2;
|
||||
b = (byte)d3;
|
||||
a = (byte)d4;
|
||||
}
|
||||
|
||||
public int rgba()
|
||||
{
|
||||
return (r & 0xFF) << 24 | (g & 0xFF) << 16 | (b & 0xFF) << 8 | (a & 0xFF);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user