Exemplo n.º 1
0
        public SpoutSender(string senderName, uint sharedHandle, uint width, uint height, uint format, uint usage)
        {
            FSenderName  = senderName;
            FTextureDesc = new TextureDesc(sharedHandle, width, height, format, usage, new byte[256], 0);

            // Retrieve the MaxSenders value from the registry - default 40
            // Computer\HKEY_CURRENT_USER\Software\Leading Edge\Spout\MaxSenders
            MaxSenders = 40; // Default
            RegistryKey subkey = Registry.CurrentUser.OpenSubKey("Software\\Leading Edge\\Spout");

            if (subkey != null)
            {
                int m = (int)subkey.GetValue("MaxSenders"); // Get the value
                if (m > 0)
                {
                    MaxSenders = m; // Set the global max senders value
                }
            }
        }
Exemplo n.º 2
0
 public SpoutSender(string senderName, uint sharedHandle, uint width, uint height, uint format, uint usage)
 {
     FSenderName  = senderName;
     FTextureDesc = new TextureDesc(sharedHandle, width, height, format, usage, new byte[256], 0);
 }