Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System.Runtime.InteropServices;
- using System;
- namespace Kolkhoze {
- public class AlienWrapper {
- public static readonly int LFX_SUCCESS = 0;
- public struct LFX_COLOR {
- byte red;
- byte green;
- byte blue;
- byte brightness;
- public LFX_COLOR(byte red, byte green, byte blue, byte brightness) {
- this.red = red;
- this.green = green;
- this.blue = blue;
- this.brightness = brightness;
- }
- }
- [DllImport("LightFX", EntryPoint="LFX_Initialize")]
- public static extern uint LFX_Initialize();
- [DllImport("LightFX", EntryPoint="LFX_Reset")]
- public static extern uint LFX_Reset();
- [DllImport("LightFX", EntryPoint="LFX_Update")]
- public static extern uint LFX_Update();
- [DllImport("LightFX", EntryPoint="LFX_GetNumDevices")]
- public static extern uint LFX_GetNumDevices(ref uint nb);
- [DllImport("LightFX", EntryPoint="LFX_GetNumLights")]
- public static extern uint LFX_GetNumLights(uint devIndex, ref uint nb);
- [DllImport("LightFX", EntryPoint="LFX_SetLightColor")]
- public static extern uint LFX_SetLightColor(uint devIndex, uint lightIndex, ref LFX_COLOR colorPtr);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement