Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RazerHelper.cs
Go to the documentation of this file.
2
4
5internal static class RazerHelper
6{
7 public static uint Vector4ToDeviceColor(Vector4 color)
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 }
19
20 public static uint XnaColorToDeviceColor(Color color)
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 }
29}
static uint XnaColorToDeviceColor(Color color)
static uint Vector4ToDeviceColor(Vector4 color)
Definition RazerHelper.cs:7