1 #ifndef CONFIG_H 2 #define CONFIG_H 3 4 // XaoS release 5 #define XaoS_VERSION "4.2.1" 6 7 // URLs 8 #define HELP_URL "https://github.com/xaos-project/XaoS/wiki" 9 #define WEB_URL "http://xaos.sourceforge.net/" 10 #define DOWNLOAD_URL "https://github.com/xaos-project/XaoS/releases" 11 #define FEEDBACK_URL "https://github.com/xaos-project/XaoS/issues" 12 #define FORUM_URL "https://groups.google.com/d/forum/xaos-users" 13 #define FRACTALINFO_URL "https://github.com/xaos-project/XaoS/wiki/Fractal-Types#" 14 15 // File locations 16 #define DATAPATH "/usr/share/XaoS" 17 #define TUTORIALPATH DATAPATH "/tutorial/" 18 #define EXAMPLESPATH DATAPATH "/examples/" 19 #define CATALOGSPATH DATAPATH "/catalogs/" 20 #define HELPPATH DATAPATH "/help/xaos.hlp" 21 22 // Config file name 23 #ifdef _WIN32 24 #define CONFIGFILE "XaoS.cfg" 25 #else 26 #define CONFIGFILE ".XaoSrc" 27 #endif 28 29 // Optional features 30 #define USE_PTHREAD 31 32 // Numeric type 33 #ifdef USE_FLOAT128 34 typedef __float128 number_t; 35 #else 36 #ifdef USE_LONG_DOUBLE 37 typedef long double number_t; 38 #else 39 typedef double number_t; 40 #endif 41 #endif 42 43 // Supported color depths 44 #define STRUECOLOR 45 #define STRUECOLOR16 // required for edge detection and pseudo 3d 46 47 // Fractal defaults 48 #define DEFAULT_MAX_ITER 1000 49 #define DEFAULT_BAILOUT 4 50 #define MAXSTEP (0.008 * 3) 51 #define STEP (0.0006 * 3) 52 #define ROTATIONSPEED 30 53 #define FRAMERATE 20 54 #define SPEEDUP 1.05 55 56 // Autopilot configuration 57 #define LOOKSIZE 2 // size explored by autopilot 58 #define RANGE1 30 59 #define NGUESSES (RANGE1 * RANGE1 / 2) 60 #define MAXTIME 10 // maximum zooming time to one direction 61 #define NGUESSES1 10 // maximum number of guesses using first method 62 #define NGUESSES2 1000 // maximum number of guesses using second method 63 64 // Default user formula 65 // #define USER_FORMULA "z^log(c)*p" 66 // #define USER_FORMULA "c^z+im(p)*{0;1}" 67 #define USER_FORMULA "(abs(re(z))+i*abs(im(z)))^2+c" 68 69 // Disable optional statistics collection and reporting 70 //#define STATISTICS 71 #undef STAT 72 #ifdef STATISTICS 73 #define STAT(x) x 74 #else 75 #define STAT(x) 76 #endif 77 78 #define NUMBER_BIG ((number_t)INT_MAX) 79 #endif // CONFIG_H 80