Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
DeviceColorProfile.cs
Go to the documentation of this file.
1
using
Microsoft.Xna.Framework
;
2
using
Newtonsoft.Json;
3
4
namespace
ReLogic.Peripherals.RGB
;
5
6
public
class
DeviceColorProfile
7
{
8
private
Vector3
_multiplier
;
9
10
[JsonProperty(
"R"
)]
11
private
float
RedMultiplier
12
{
13
get
14
{
15
return
_multiplier
.
X
;
16
}
17
set
18
{
19
_multiplier.X = value;
20
}
21
}
22
23
[JsonProperty(
"G"
)]
24
private
float
GreenMultiplier
25
{
26
get
27
{
28
return
_multiplier
.
Y
;
29
}
30
set
31
{
32
_multiplier.Y = value;
33
}
34
}
35
36
[JsonProperty(
"B"
)]
37
private
float
BlueMultiplier
38
{
39
get
40
{
41
return
_multiplier
.
Z
;
42
}
43
set
44
{
45
_multiplier.Z = value;
46
}
47
}
48
49
public
DeviceColorProfile
()
50
{
51
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
52
//IL_000c: Unknown result type (might be due to invalid IL or missing references)
53
_multiplier
=
Vector3
.
One
;
54
}
55
56
public
DeviceColorProfile
(
Vector3
multiplier)
57
{
58
//IL_0007: Unknown result type (might be due to invalid IL or missing references)
59
//IL_0008: Unknown result type (might be due to invalid IL or missing references)
60
_multiplier
= multiplier;
61
}
62
63
public
void
Apply
(ref
Vector4
color)
64
{
65
color.X *=
_multiplier
.
X
;
66
color.Y *=
_multiplier
.
Y
;
67
color.Z *=
_multiplier
.
Z
;
68
}
69
70
public
void
Apply
(ref
Vector3
color)
71
{
72
color.X *=
_multiplier
.
X
;
73
color.Y *=
_multiplier
.
Y
;
74
color.Z *=
_multiplier
.
Z
;
75
}
76
}
ReLogic.Peripherals.RGB.DeviceColorProfile.GreenMultiplier
float GreenMultiplier
Definition
DeviceColorProfile.cs:25
ReLogic.Peripherals.RGB.DeviceColorProfile.RedMultiplier
float RedMultiplier
Definition
DeviceColorProfile.cs:12
ReLogic.Peripherals.RGB.DeviceColorProfile._multiplier
Vector3 _multiplier
Definition
DeviceColorProfile.cs:8
ReLogic.Peripherals.RGB.DeviceColorProfile.Apply
void Apply(ref Vector3 color)
Definition
DeviceColorProfile.cs:70
ReLogic.Peripherals.RGB.DeviceColorProfile.DeviceColorProfile
DeviceColorProfile()
Definition
DeviceColorProfile.cs:49
ReLogic.Peripherals.RGB.DeviceColorProfile.DeviceColorProfile
DeviceColorProfile(Vector3 multiplier)
Definition
DeviceColorProfile.cs:56
ReLogic.Peripherals.RGB.DeviceColorProfile.BlueMultiplier
float BlueMultiplier
Definition
DeviceColorProfile.cs:38
ReLogic.Peripherals.RGB.DeviceColorProfile.Apply
void Apply(ref Vector4 color)
Definition
DeviceColorProfile.cs:63
ReLogic.Peripherals.RGB.DeviceColorProfile
Definition
DeviceColorProfile.cs:7
Microsoft.Xna.Framework
Definition
AlphaTestEffect.cs:1
ReLogic.Peripherals.RGB
Definition
CorsairAccessMode.cs:1
Microsoft.Xna.Framework.Vector3.Y
float Y
Definition
Vector3.cs:17
Microsoft.Xna.Framework.Vector3.Z
float Z
Definition
Vector3.cs:20
Microsoft.Xna.Framework.Vector3.One
static Vector3 One
Definition
Vector3.cs:46
Microsoft.Xna.Framework.Vector3.X
float X
Definition
Vector3.cs:14
Microsoft.Xna.Framework.Vector3
Definition
Vector3.cs:12
Microsoft.Xna.Framework.Vector4
Definition
Vector4.cs:12
source
ReLogic
ReLogic.Peripherals.RGB
DeviceColorProfile.cs
Generated by
1.10.0