summaryrefslogtreecommitdiffhomepage
path: root/src/shapes.c
diff options
context:
space:
mode:
authorAhmad Fatoum <[email protected]>2018-04-07 22:29:53 +0200
committerAhmad Fatoum <[email protected]>2018-04-07 23:37:48 +0200
commit1841afad11892bab16976b976d69b7757b617c8b (patch)
tree865273c4b5a0e5574ef09f25f1f3320eafd794d9 /src/shapes.c
parentd88523f03abcf396a8a8198503285bc231828c81 (diff)
downloadraylib-1841afad11892bab16976b976d69b7757b617c8b.tar.gz
raylib-1841afad11892bab16976b976d69b7757b617c8b.zip
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).
Diffstat (limited to 'src/shapes.c')
-rw-r--r--src/shapes.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/shapes.c b/src/shapes.c
index 693463ff..a1bc7098 100644
--- a/src/shapes.c
+++ b/src/shapes.c
@@ -4,12 +4,6 @@
*
* CONFIGURATION:
*
-* #define SUPPORT_QUADS_ONLY
-* Draw shapes using only QUADS, vertex are accumulated in QUADS arrays (like textures)
-*
-* #define SUPPORT_TRIANGLES_ONLY
-* Draw shapes using only TRIANGLES, vertex are accumulated in TRIANGLES arrays
-*
* #define USE_DEFAULT_FONT_TEXTURE
* Draw rectangle shapes using font texture white character instead of default white texture
* Allows drawing rectangles and text with a single draw call, very useful for GUI systems!
@@ -36,7 +30,7 @@
*
**********************************************************************************************/
-#define USE_DEFAULT_FONT_TEXTURE
+#include "config.h"
#include "raylib.h"