Commits

Anonymous committed a37d812

some fixes, started work on glidehq

Comments (0)

Files changed (2)

GlideHQ/TxFilter.cpp

       _maxbpp    == maxbpp    &&
       _options   == options   &&
       _cacheSize == cachesize) return;
-  clear(); /* gcc does not allow the destructor to be called */
+//  clear(); /* gcc does not allow the destructor to be called */
 
   /* shamelessness :P this first call to the debug output message creates
    * a file in the executable directory. */
 #endif
 
 #ifdef TEXTURE_FILTER
+  
+  // settings.ghq_fltr range is 0 through 6
+  // Filters:\nApply a filter to either smooth or sharpen textures.\nThere are 4 different smoothing filters and 2 different sharpening filters.\nThe higher the number, the stronger the effect,\ni.e. \"Smoothing filter 4\" will have a much more noticeable effect than \"Smoothing filter 1\".\nBe aware that performance may have an impact depending on the game and/or the PC.\n[Recommended: your preference]
+  // _("None"),
+  // _("Smooth filtering 1"),
+  // _("Smooth filtering 2"),
+  // _("Smooth filtering 3"),
+  // _("Smooth filtering 4"),
+  // _("Sharp filtering 1"),
+  // _("Sharp filtering 2")
 
-  settings.ghq_fltr = INI_ReadInt ("ghq_fltr", -1, 0);
-  settings.ghq_cmpr = INI_ReadInt ("ghq_cmpr", -1, 0);
-  settings.ghq_enht = INI_ReadInt ("ghq_enht", -1, 0);
-  settings.ghq_hirs = INI_ReadInt ("ghq_hirs", -1, 0);
-  settings.ghq_enht_cmpr  = INI_ReadInt ("ghq_enht_cmpr", -1, 0);
-  settings.ghq_enht_tile = INI_ReadInt ("ghq_enht_tile", -1, 0);
-  settings.ghq_enht_f16bpp = INI_ReadInt ("ghq_enht_f16bpp", -1, 0);
-  settings.ghq_enht_gz  = INI_ReadInt ("ghq_enht_gz", -1, 0);
-  settings.ghq_enht_nobg  = INI_ReadInt ("ghq_enht_nobg", -1, 0);
-  settings.ghq_hirs_cmpr  = INI_ReadInt ("ghq_hirs_cmpr", -1, 0);
-  settings.ghq_hirs_tile = INI_ReadInt ("ghq_hirs_tile", -1, 0);
-  settings.ghq_hirs_f16bpp = INI_ReadInt ("ghq_hirs_f16bpp", -1, 0);
-  settings.ghq_hirs_gz  = INI_ReadInt ("ghq_hirs_gz", 1, 0);
-  settings.ghq_hirs_altcrc = INI_ReadInt ("ghq_hirs_altcrc", 1, 0);
-  settings.ghq_cache_save = INI_ReadInt ("ghq_cache_save", -1, 0);
-  settings.ghq_cache_size = INI_ReadInt ("ghq_cache_size", -1, 0);
-  settings.ghq_hirs_let_texartists_fly = INI_ReadInt ("ghq_hirs_let_texartists_fly", -1, 0);
-  settings.ghq_hirs_dump = INI_ReadInt ("ghq_hirs_dump", -1, 0);
+// settings.ghq_cmpr 0=S3TC and 1=FXT1
+
+//settings.ghq_ent is ___
+// "Texture enhancement:\n7 different filters are selectable here, each one with a distinctive look.\nBe aware of possible performance impacts.\n\nIMPORTANT: 'Store' mode - saves textures in cache 'as is'. It can improve performance in games, which load many textures.\nDisable 'Ignore backgrounds' option for better result.\n\n[Recommended: your preference]"
+
+
+
+  settings.ghq_fltr = Config_ReadInt ("ghq_fltr", "Texture Enhancement: Smooth/Sharpen Filters", 0, TRUE, FALSE);
+  settings.ghq_cmpr = Config_ReadInt ("ghq_cmpr" "Texture Compression: 0 for S3TC, 1 for FXT1", 0, TRUE, FALSE);
+  settings.ghq_enht = Config_ReadInt ("ghq_enht", "Texture Enhancement: More filters", 0, TRUE, FALSE);
+  settings.ghq_hirs = Config_ReadInt ("ghq_hirs", "Hi-res texture pack format (0 for none, 1 for Rice)", 0, TRUE, FALSE);
+  settings.ghq_enht_cmpr  = Config_ReadInt ("ghq_enht_cmpr", "Compress texture cache with S3TC or FXT1", 0, TRUE, TRUE);
+  settings.ghq_enht_tile = Config_ReadInt ("ghq_enht_tile", "Tile textures (saves memory but could cause issues)", 0, TRUE, FALSE);
+  settings.ghq_enht_f16bpp = Config_ReadInt ("ghq_enht_f16bpp", "Force 16bpp textures (saves ram but lower quality)", 0, TRUE, TRUE);
+  settings.ghq_enht_gz  = Config_ReadInt ("ghq_enht_gz", "Compress texture cache", 1, TRUE, TRUE);
+  settings.ghq_enht_nobg  = Config_ReadInt ("ghq_enht_nobg", "Don't enhance textures for backgrounds", 0, TRUE, TRUE);
+  settings.ghq_hirs_cmpr  = Config_ReadInt ("ghq_hirs_cmpr", "Enable S3TC and FXT1 compression", 0, TRUE, TRUE);
+  settings.ghq_hirs_tile = Config_ReadInt ("ghq_hirs_tile", "Tile hi-res textures (saves memory but could cause issues)", 0, TRUE, TRUE);
+  settings.ghq_hirs_f16bpp = Config_ReadInt ("ghq_hirs_f16bpp", "Force 16bpp hi-res textures (saves ram but lower quality)", 0, TRUE, TRUE);
+  settings.ghq_hirs_gz  = Config_ReadInt ("ghq_hirs_gz", "Compress hi-res texture cache", 1, TRUE, TRUE);
+  settings.ghq_hirs_altcrc = Config_ReadInt ("ghq_hirs_altcrc", "Alternative CRC calculation -- emulates Rice bug", 1, TRUE, TRUE);
+  settings.ghq_cache_save = Config_ReadInt ("ghq_cache_save", "Save tex cache to disk", 1, TRUE, TRUE);
+  settings.ghq_cache_size = Config_ReadInt ("ghq_cache_size", "Texture Cache Size (MB)", 128, TRUE, FALSE);
+  settings.ghq_hirs_let_texartists_fly = Config_ReadInt ("ghq_hirs_let_texartists_fly", "Use full alpha channel -- could cause issues for some tex packs", 0, TRUE, TRUE);
+  settings.ghq_hirs_dump = Config_ReadInt ("ghq_hirs_dump", "Dump textures", 0, FALSE, TRUE);
 #endif
 }