2014-01-17 12:05:53 -06:00
|
|
|
#ifndef CONFIG_H
|
|
|
|
#define CONFIG_H
|
2012-01-08 11:39:03 -06:00
|
|
|
|
2019-12-17 08:03:41 -06:00
|
|
|
#mesondefine CURL_STATICLIB
|
|
|
|
#mesondefine ZLIB_WINAPI
|
|
|
|
|
2021-01-18 05:20:36 -06:00
|
|
|
#mesondefine LUACONSOLE
|
|
|
|
#mesondefine NOHTTP
|
|
|
|
#mesondefine GRAVFFT
|
|
|
|
#mesondefine RENDERER
|
|
|
|
#mesondefine FONTEDITOR
|
|
|
|
|
2019-12-17 08:03:41 -06:00
|
|
|
#mesondefine BETA
|
|
|
|
#mesondefine DEBUG
|
|
|
|
#mesondefine IGNORE_UPDATES
|
|
|
|
#mesondefine LIN
|
|
|
|
#mesondefine NATIVE
|
|
|
|
#mesondefine NO_INSTALL_CHECK
|
|
|
|
#mesondefine OGLI
|
|
|
|
#mesondefine OGLR
|
|
|
|
#mesondefine PIX32OGL
|
|
|
|
#mesondefine SNAPSHOT
|
|
|
|
#mesondefine WIN
|
|
|
|
#mesondefine MACOSX
|
|
|
|
#mesondefine X86
|
|
|
|
#mesondefine X86_SSE
|
|
|
|
#mesondefine X86_SSE2
|
|
|
|
#mesondefine X86_SSE3
|
|
|
|
#mesondefine _64BIT
|
2020-12-15 15:02:56 -06:00
|
|
|
#mesondefine SERVER
|
|
|
|
#mesondefine STATICSERVER
|
|
|
|
#mesondefine UPDATESERVER
|
2012-01-08 11:39:03 -06:00
|
|
|
|
2012-07-29 11:14:14 -05:00
|
|
|
#ifdef WIN
|
2019-12-17 08:03:41 -06:00
|
|
|
# define PATH_SEP "\\"
|
|
|
|
# define PATH_SEP_CHAR '\\'
|
2012-01-08 11:39:03 -06:00
|
|
|
#else
|
2019-12-17 08:03:41 -06:00
|
|
|
# define PATH_SEP "/"
|
|
|
|
# define PATH_SEP_CHAR '/'
|
2012-01-08 11:39:03 -06:00
|
|
|
#endif
|
|
|
|
|
2013-01-19 16:00:56 -06:00
|
|
|
//VersionInfoStart
|
2021-04-16 10:54:25 -05:00
|
|
|
#define SAVE_VERSION 95
|
|
|
|
#define MINOR_VERSION 0
|
|
|
|
#define BUILD_NUM 345
|
2019-12-17 08:03:41 -06:00
|
|
|
#mesondefine SNAPSHOT_ID
|
|
|
|
#mesondefine MOD_ID
|
2021-04-16 10:54:25 -05:00
|
|
|
#define FUTURE_SAVE_VERSION 96
|
|
|
|
#define FUTURE_MINOR_VERSION 0
|
2019-12-17 08:03:41 -06:00
|
|
|
|
|
|
|
#if !(defined(SNAPSHOT) || defined(BETA) || defined(DEBUG) || MOD_ID > 0)
|
|
|
|
#undef FUTURE_SAVE_VERSION
|
|
|
|
#undef FUTURE_MINOR_VERSION
|
2016-08-07 14:31:28 -05:00
|
|
|
#endif
|
2013-01-19 16:00:56 -06:00
|
|
|
//VersionInfoEnd
|
|
|
|
|
2016-03-07 20:01:33 -06:00
|
|
|
#if !(defined(MACOSX) && defined(DEBUG))
|
2012-12-14 19:04:17 -06:00
|
|
|
#define HIGH_QUALITY_RESAMPLE //High quality image resampling, slower but much higher quality than my terribad linear interpolation
|
2016-03-07 20:01:33 -06:00
|
|
|
#endif
|
2012-12-14 19:04:17 -06:00
|
|
|
|
2013-01-19 16:00:56 -06:00
|
|
|
#if defined(SNAPSHOT)
|
|
|
|
#define IDENT_RELTYPE "S"
|
|
|
|
#elif defined(BETA)
|
|
|
|
#define IDENT_RELTYPE "B"
|
|
|
|
#else
|
|
|
|
#define IDENT_RELTYPE "R"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(WIN)
|
|
|
|
#if defined(_64BIT)
|
|
|
|
#define IDENT_PLATFORM "WIN64"
|
2014-06-08 18:33:58 -05:00
|
|
|
#else
|
2014-07-06 10:41:11 -05:00
|
|
|
#define IDENT_PLATFORM "WIN32"
|
2013-01-19 16:00:56 -06:00
|
|
|
#endif
|
|
|
|
#elif defined(LIN)
|
|
|
|
#if defined(_64BIT)
|
|
|
|
#define IDENT_PLATFORM "LIN64"
|
2014-06-08 18:33:58 -05:00
|
|
|
#else
|
2014-07-06 10:41:11 -05:00
|
|
|
#define IDENT_PLATFORM "LIN32"
|
2013-01-19 16:00:56 -06:00
|
|
|
#endif
|
|
|
|
#elif defined(MACOSX)
|
|
|
|
#define IDENT_PLATFORM "MACOSX"
|
|
|
|
#else
|
|
|
|
#define IDENT_PLATFORM "UNKNOWN"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(X86_SSE3)
|
|
|
|
#define IDENT_BUILD "SSE3"
|
|
|
|
#elif defined(X86_SSE2)
|
|
|
|
#define IDENT_BUILD "SSE2"
|
|
|
|
#elif defined(X86_SSE)
|
|
|
|
#define IDENT_BUILD "SSE"
|
|
|
|
#else
|
|
|
|
#define IDENT_BUILD "NO"
|
|
|
|
#endif
|
|
|
|
|
2012-01-08 11:39:03 -06:00
|
|
|
#define MTOS_EXPAND(str) #str
|
|
|
|
#define MTOS(str) MTOS_EXPAND(str)
|
|
|
|
|
2019-03-13 16:47:19 -05:00
|
|
|
#define SCHEME "https://"
|
2019-03-14 01:56:44 -05:00
|
|
|
#define STATICSCHEME "https://"
|
2019-08-01 18:31:02 -05:00
|
|
|
#define ENFORCE_HTTPS
|
2012-01-08 11:39:03 -06:00
|
|
|
|
|
|
|
#define LOCAL_SAVE_DIR "Saves"
|
|
|
|
|
2012-04-02 11:01:28 -05:00
|
|
|
#define STAMPS_DIR "stamps"
|
|
|
|
|
2012-11-18 12:02:28 -06:00
|
|
|
#define BRUSH_DIR "Brushes"
|
|
|
|
|
2012-01-08 11:39:03 -06:00
|
|
|
#ifndef M_GRAV
|
|
|
|
#define M_GRAV 6.67300e-1
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RENDERER
|
|
|
|
#define MENUSIZE 0
|
|
|
|
#define BARSIZE 0
|
|
|
|
#else
|
|
|
|
#define MENUSIZE 40
|
|
|
|
#define BARSIZE 17
|
|
|
|
#endif
|
|
|
|
#define XRES 612
|
|
|
|
#define YRES 384
|
|
|
|
#define NPART XRES*YRES
|
|
|
|
|
2017-07-28 23:15:09 -05:00
|
|
|
#define XCNTR XRES/2
|
|
|
|
#define YCNTR YRES/2
|
2012-01-08 11:39:03 -06:00
|
|
|
|
2013-11-10 03:02:55 -06:00
|
|
|
#define WINDOWW (XRES+BARSIZE)
|
|
|
|
#define WINDOWH (YRES+MENUSIZE)
|
|
|
|
|
2012-01-08 11:39:03 -06:00
|
|
|
#define GRAV_DIFF
|
|
|
|
|
|
|
|
#define MAXSIGNS 16
|
|
|
|
|
2014-01-17 12:05:53 -06:00
|
|
|
//CELL, the size of the pressure, gravity, and wall maps. Larger than 1 to prevent extreme lag
|
2013-03-06 11:05:59 -06:00
|
|
|
#define CELL 4
|
|
|
|
#define ISTP (CELL/2)
|
2012-01-08 11:39:03 -06:00
|
|
|
#define CFDS (4.0f/CELL)
|
2014-03-26 19:34:40 -05:00
|
|
|
#define SIM_MAXVELOCITY 1e4f
|
2012-01-08 11:39:03 -06:00
|
|
|
|
2014-01-17 12:05:53 -06:00
|
|
|
//Air constants
|
2012-01-08 11:39:03 -06:00
|
|
|
#define AIR_TSTEPP 0.3f
|
|
|
|
#define AIR_TSTEPV 0.4f
|
|
|
|
#define AIR_VADV 0.3f
|
|
|
|
#define AIR_VLOSS 0.999f
|
|
|
|
#define AIR_PLOSS 0.9999f
|
|
|
|
|
2012-02-01 18:33:10 -06:00
|
|
|
#define NGOL 24
|
2012-01-08 11:39:03 -06:00
|
|
|
|
|
|
|
#define CIRCLE_BRUSH 0
|
|
|
|
#define SQUARE_BRUSH 1
|
|
|
|
#define TRI_BRUSH 2
|
|
|
|
#define BRUSH_NUM 3
|
|
|
|
|
2014-01-17 12:05:53 -06:00
|
|
|
//Photon constants
|
2013-03-06 11:05:59 -06:00
|
|
|
#define SURF_RANGE 10
|
|
|
|
#define NORMAL_MIN_EST 3
|
|
|
|
#define NORMAL_INTERP 20
|
|
|
|
#define NORMAL_FRAC 16
|
2012-01-08 11:39:03 -06:00
|
|
|
|
2013-03-06 11:05:59 -06:00
|
|
|
#define REFRACT 0x80000000
|
2012-01-08 11:39:03 -06:00
|
|
|
|
|
|
|
/* heavy flint glass, for awesome refraction/dispersion
|
|
|
|
this way you can make roof prisms easily */
|
2013-03-06 11:05:59 -06:00
|
|
|
#define GLASS_IOR 1.9
|
|
|
|
#define GLASS_DISP 0.07
|
2012-01-08 11:39:03 -06:00
|
|
|
|
2014-08-15 15:43:29 -05:00
|
|
|
#define SDEUT
|
|
|
|
|
2014-01-17 12:05:53 -06:00
|
|
|
#endif /* CONFIG_H */
|