mirror of https://github.com/PCSX2/pcsx2.git
26 lines
687 B
C#
26 lines
687 B
C#
|
using System;
|
|||
|
using System.Collections.Generic;
|
|||
|
using System.Text;
|
|||
|
|
|||
|
namespace GSDumpGUI
|
|||
|
{
|
|||
|
public class GIFRegRGBAQ : GIFReg
|
|||
|
{
|
|||
|
public int R;
|
|||
|
public int G;
|
|||
|
public int B;
|
|||
|
public int A;
|
|||
|
|
|||
|
static public GIFReg Unpack(UInt64 LowData, UInt64 HighData, bool PlainFormat)
|
|||
|
{
|
|||
|
GIFRegRGBAQ r = new GIFRegRGBAQ();
|
|||
|
r.Descriptor = GIFRegDescriptor.RGBAQ;
|
|||
|
r.R = (int)(LowData & 0xFF);
|
|||
|
r.G = (int)((LowData & 0xFF00000000) >> 32);
|
|||
|
r.B = (int)((HighData & 0xFF));
|
|||
|
r.A = (int)((HighData & 0xFF00000000) >> 32);
|
|||
|
return r;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|