Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ XnaColorToDeviceColor()

static uint ReLogic.Peripherals.RGB.Razer.RazerHelper.XnaColorToDeviceColor ( Color color)
inlinestatic

Definition at line 20 of file RazerHelper.cs.

21 {
22 byte r = ((Color)(ref color)).R;
23 int g = ((Color)(ref color)).G;
24 int b = ((Color)(ref color)).B;
25 b <<= 16;
26 g <<= 8;
27 return (uint)(r | g | b);
28 }

References ReLogic.Peripherals.RGB.Razer.B, ReLogic.Peripherals.RGB.Razer.G, and ReLogic.Peripherals.RGB.Razer.R.

Referenced by ReLogic.Peripherals.RGB.Razer.RazerKeyboard.Render().