summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2017-09-18 00:59:22 +0200
committerraysan5 <[email protected]>2017-09-18 00:59:22 +0200
commit20968830c0a8721c2a2d94719da5fe2cd753c114 (patch)
treece7197dac0c80e1b72c6f9947b3dffb98f32111a /src/textures.c
parent1d91a460088a4c4e33dfa94c6d2bd0bf859e9986 (diff)
downloadraylib-20968830c0a8721c2a2d94719da5fe2cd753c114.tar.gz
raylib-20968830c0a8721c2a2d94719da5fe2cd753c114.zip
Added mesh generation functions
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/textures.c b/src/textures.c
index 9322004b..b6c90ad7 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -23,6 +23,9 @@
* Support multiple image editing functions to scale, adjust colors, flip, draw on images, crop...
* If not defined only three image editing functions supported: ImageFormat(), ImageAlphaMask(), ImageToPOT()
*
+* #define SUPPORT_IMAGE_GENERATION
+* Support proedural image generation functionality (gradient, spot, perlin-noise, cellular)
+*
* DEPENDENCIES:
* stb_image - Multiple image formats loading (JPEG, PNG, BMP, TGA, PSD, GIF, PIC)
* NOTE: stb_image has been slightly modified to support Android platform.
@@ -56,6 +59,7 @@
#define SUPPORT_FILEFORMAT_DDS
#define SUPPORT_FILEFORMAT_HDR
#define SUPPORT_IMAGE_MANIPULATION
+#define SUPPORT_IMAGE_GENERATION
//-------------------------------------------------
#include "raylib.h"
@@ -1447,6 +1451,7 @@ void ImageColorBrightness(Image *image, int brightness)
}
#endif // SUPPORT_IMAGE_MANIPULATION
+#if defined(SUPPORT_IMAGE_GENERATION)
// Generate image: vertical gradient
Image GenImageGradientV(int width, int height, Color top, Color bottom)
{
@@ -1647,6 +1652,7 @@ Image GenImageCellular(int width, int height, int tileSize)
return image;
}
+#endif // SUPPORT_IMAGE_GENERATION
// Generate GPU mipmaps for a texture
void GenTextureMipmaps(Texture2D *texture)