Added mesh generation functions

This commit is contained in:
raysan5
2017-09-18 00:59:22 +02:00
parent 1d91a46008
commit 20968830c0
3 changed files with 383 additions and 20 deletions

View File

@ -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)