Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RazerHelper.cs
Go to the documentation of this file.
1
using
Microsoft.Xna.Framework
;
2
3
namespace
ReLogic.Peripherals.RGB.Razer
;
4
5
internal
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
}
ReLogic.Peripherals.RGB.Razer.RazerHelper.XnaColorToDeviceColor
static uint XnaColorToDeviceColor(Color color)
Definition
RazerHelper.cs:20
ReLogic.Peripherals.RGB.Razer.RazerHelper.Vector4ToDeviceColor
static uint Vector4ToDeviceColor(Vector4 color)
Definition
RazerHelper.cs:7
ReLogic.Peripherals.RGB.Razer.RazerHelper
Definition
RazerHelper.cs:6
Microsoft.Xna.Framework
Definition
AlphaTestEffect.cs:1
ReLogic.Peripherals.RGB.Razer.RazerKey.B
@ B
ReLogic.Peripherals.RGB.Razer.RazerKey.G
@ G
ReLogic.Peripherals.RGB.Razer.RazerKey.R
@ R
ReLogic.Peripherals.RGB.Razer
Definition
EffectHandle.cs:3
Microsoft.Xna.Framework.Color
Definition
Color.cs:12
Microsoft.Xna.Framework.Vector4.Z
float Z
Definition
Vector4.cs:20
Microsoft.Xna.Framework.Vector4.Y
float Y
Definition
Vector4.cs:17
Microsoft.Xna.Framework.Vector4.X
float X
Definition
Vector4.cs:14
Microsoft.Xna.Framework.Vector4
Definition
Vector4.cs:12
source
ReLogic
ReLogic.Peripherals.RGB.Razer
RazerHelper.cs
Generated by
1.10.0