Refactor all #define SUPPORT_* into a config.h

That way, a user needs only to touch a single file to configure what
features raylib is built with.
Include guards are left out intentionally, because config.h should only
be included in source files, not headers.

Later on, config.h can also define the raylib version (#461).
This commit is contained in:
Ahmad Fatoum
2018-04-07 22:29:53 +02:00
parent d88523f03a
commit 1841afad11
11 changed files with 92 additions and 60 deletions

View File

@@ -24,7 +24,7 @@
* #define RLGL_STANDALONE
* Use rlgl as standalone library (no raylib dependency)
*
* #define SUPPORT_VR_SIMULATION / SUPPORT_STEREO_RENDERING
* #define SUPPORT_VR_SIMULATOR
* Support VR simulation functionality (stereo rendering)
*
* #define SUPPORT_DISTORTION_SHADER
@@ -496,4 +496,4 @@ void TraceLog(int msgType, const char *text, ...); // Show trace log messag
}
#endif
#endif // RLGL_H
#endif // RLGL_H