Esempio n. 1
0
        int loadSynth(NSUrl presetUrl)
        {
            var dict   = NSDictionary.FromUrl(presetUrl);
            var preset = new ClassInfoDictionary(dict);
            var error  = samplerUnit.SetClassInfo(preset);

            return((int)error);
        }
Esempio n. 2
0
        void SetupTechniques()
        {
            // The scene can be de-saturarted as a full screen effect.
            NSUrl        url     = NSBundle.MainBundle.GetUrlForResource("art.scnassets/techniques/desaturation", "plist");
            NSDictionary options = NSDictionary.FromUrl(url);

            desaturationTechnique = SCNTechnique.Create(options);
            desaturationTechnique.SetValueForKey(new NSNumber(0.0), (NSString)"Saturation");
        }
Esempio n. 3
0
        public void loadPropertiesFileFromPList()
        {
            NSDictionary _booksDic = NSDictionary.FromUrl(fileURLOfCachedBooksFile());

            //NSDictionary book =  _booksDic;

            NSArray arrayOfBooks = _booksDic.ObjectForKey(new NSString("books")) as NSArray;

            if (arrayOfBooks.Count > 0)
            {
                this.createBooksFromDictionary(arrayOfBooks.GetItem <NSDictionary>(0));
            }
        }