public Sender(string target, Texture texture) { // Plugin object allocation _plugin = Plugin.CreateSender(target, texture.width, texture.height); if (_plugin == IntPtr.Zero) { return; } // Event kicker (heap block for interop communication) _event = new EventKicker (new EventData(_plugin, texture.GetNativeTexturePtr())); // Initial update event _event.IssuePluginEvent(EventID.UpdateSender); }
public Receiver(string sourceName) { if (string.IsNullOrEmpty(sourceName)) { return; } // Plugin object allocation _plugin = Plugin.CreateReceiver(sourceName); if (_plugin == IntPtr.Zero) { return; } // Event kicker (heap block for interop communication) _event = new EventKicker(new EventData(_plugin)); // Initial update event _event.IssuePluginEvent(EventID.UpdateReceiver); }