Esempio n. 1
0
        public override void ExposeData()
        {
            base.ExposeData();
            Scribe_Deep.Look(ref mainSettings, "settings");
            Scribe_Values.Look(ref CausedMemOverflow, "causedOverflow");

            if (Scribe.mode == LoadSaveMode.PostLoadInit)
            {
                mainSettings ??= new SettingsGroup();
                lastSettings            = new SettingsGroup();
                lastSettings.anisoLevel = mainSettings.anisoLevel;
                lastSettings.useMipMap  = mainSettings.useMipMap;
                lastSettings.filterMode = mainSettings.filterMode;
                lastSettings.mipMapBias = mainSettings.mipMapBias;
            }
        }
        public override void ExposeData()
        {
            base.ExposeData();
            Scribe_Values.Look(ref anisoLevel, "anisoLevel");
            Scribe_Values.Look(ref useMipMap, "useMipMap");
            Scribe_Values.Look(ref compressImages, "compressImages");
            Scribe_Values.Look(ref filterMode, "filterMode");
            Scribe_Values.Look(ref mipMapBias, "mipMapBias");

            if (Scribe.mode == LoadSaveMode.PostLoadInit)
            {
                lastSettings                = new SettingsGroup();
                lastSettings.anisoLevel     = anisoLevel;
                lastSettings.useMipMap      = useMipMap;
                lastSettings.compressImages = compressImages;
                lastSettings.filterMode     = filterMode;
                lastSettings.mipMapBias     = mipMapBias;
            }
        }
Esempio n. 3
0
 public GraphicsSettings()
 {
     mainSettings = new SettingsGroup();
 }