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

◆ Vector4ToDeviceColor()

static uint ReLogic.Peripherals.RGB.Razer.RazerHelper.Vector4ToDeviceColor ( Vector4 color)
inlinestatic

Definition at line 7 of file RazerHelper.cs.

8 {
9 //IL_0000: Unknown result type (might be due to invalid IL or missing references)
10 //IL_000d: Unknown result type (might be due to invalid IL or missing references)
11 //IL_001b: Unknown result type (might be due to invalid IL or missing references)
12 int num4 = (int)(color.X * 255f);
13 int num2 = (int)(color.Y * 255f);
14 int num3 = (int)(color.Z * 255f);
15 num3 <<= 16;
16 num2 <<= 8;
17 return (uint)(num4 | num2 | num3);
18 }

References Microsoft.Xna.Framework.Vector4.X, Microsoft.Xna.Framework.Vector4.Y, and Microsoft.Xna.Framework.Vector4.Z.

Referenced by ReLogic.Peripherals.RGB.Razer.RazerHeadset.Present(), ReLogic.Peripherals.RGB.Razer.RazerKeyboard.Present(), ReLogic.Peripherals.RGB.Razer.RazerKeypad.Present(), ReLogic.Peripherals.RGB.Razer.RazerLink.Present(), ReLogic.Peripherals.RGB.Razer.RazerMouse.Present(), and ReLogic.Peripherals.RGB.Razer.RazerMousepad.Present().