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

◆ Present()

override void ReLogic.Peripherals.RGB.Logitech.LogitechSingleLightDevice.Present ( )
inline

Definition at line 14 of file LogitechSingleLightDevice.cs.

15 {
16 //IL_000a: Unknown result type (might be due to invalid IL or missing references)
17 //IL_000f: Unknown result type (might be due to invalid IL or missing references)
18 //IL_0010: Unknown result type (might be due to invalid IL or missing references)
19 //IL_001d: Unknown result type (might be due to invalid IL or missing references)
20 //IL_002a: Unknown result type (might be due to invalid IL or missing references)
21 if (NativeMethods.LogiLedSetTargetDevice(2))
22 {
23 Vector4 processedLedColor = GetProcessedLedColor(0);
24 NativeMethods.LogiLedSetLighting((int)(processedLedColor.X * 100f), (int)(processedLedColor.Y * 100f), (int)(processedLedColor.Z * 100f));
25 }
26 }
Vector4 GetProcessedLedColor(int index)
Definition RgbDevice.cs:37

References ReLogic.Peripherals.RGB.RgbDevice.GetProcessedLedColor(), ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetLighting(), ReLogic.Peripherals.RGB.Logitech.NativeMethods.LogiLedSetTargetDevice(), Microsoft.Xna.Framework.Vector4.X, Microsoft.Xna.Framework.Vector4.Y, and Microsoft.Xna.Framework.Vector4.Z.