Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
RazerLink.cs
Go to the documentation of this file.
2
4
5internal class RazerLink : RgbDevice
6{
8
9 private readonly EffectHandle _handle = new EffectHandle();
10
11 public RazerLink(DeviceColorProfile colorProfile)
12 : base(RgbDeviceVendor.Razer, RgbDeviceType.Generic, Fragment.FromGrid(new Rectangle(0, -1, 5, 1)), colorProfile)
13 {
14 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
15 base.PreferredLevelOfDetail = EffectDetailLevel.Low;
16 }
17
18 public override void Present()
19 {
20 //IL_0012: Unknown result type (might be due to invalid IL or missing references)
21 for (int i = 0; i < _effect.Color.Length; i++)
22 {
24 }
26 _handle.Apply();
27 }
28}
void SetAsChromaLinkEffect(ref NativeMethods.CustomChromaLinkEffect effect)
static uint Vector4ToDeviceColor(Vector4 color)
Definition RazerHelper.cs:7
Vector4 GetProcessedLedColor(int index)
Definition RgbDevice.cs:37