diff --git a/src/raylib.h b/src/raylib.h index f6a48bc7..cceaa210 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1277,7 +1277,7 @@ RLAPI void ImageMipmaps(Image *image); RLAPI void ImageDither(Image *image, int rBpp, int gBpp, int bBpp, int aBpp); // Dither image data to 16bpp or lower (Floyd-Steinberg dithering) RLAPI void ImageFlipVertical(Image *image); // Flip image vertically RLAPI void ImageFlipHorizontal(Image *image); // Flip image horizontally -RLAPI void ImageRotate(Image *image, int degrees); // Rotate image by input angle in degrees (-359 to 359) +RLAPI void ImageRotate(Image *image, int degrees); // Rotate image by input angle in degrees (-359 to 359) RLAPI void ImageRotateCW(Image *image); // Rotate image clockwise 90deg RLAPI void ImageRotateCCW(Image *image); // Rotate image counter-clockwise 90deg RLAPI void ImageColorTint(Image *image, Color color); // Modify image color: tint diff --git a/src/rlgl.h b/src/rlgl.h index 8c101a79..a104175c 100644 --- a/src/rlgl.h +++ b/src/rlgl.h @@ -390,7 +390,7 @@ typedef enum { RL_OPENGL_33, // OpenGL 3.3 (GLSL 330) RL_OPENGL_43, // OpenGL 4.3 (using GLSL 330) RL_OPENGL_ES_20, // OpenGL ES 2.0 (GLSL 100) - RL_OPENGL_ES_30 // OpenGL ES 3.0 (GLSL 300 es) + RL_OPENGL_ES_30 // OpenGL ES 3.0 (GLSL 300 es) } rlGlVersion; // Trace log level diff --git a/src/rmodels.c b/src/rmodels.c index 23a5d16a..73fb0235 100644 --- a/src/rmodels.c +++ b/src/rmodels.c @@ -5379,7 +5379,7 @@ static ModelAnimation *LoadModelAnimationsGLTF(const char *fileName, unsigned in strncpy(animations[i].name, animData.name, sizeof(animations[i].name)); animations[i].name[sizeof(animations[i].name) - 1] = '\0'; - + animations[i].frameCount = (int)(animDuration*1000.0f/GLTF_ANIMDELAY); animations[i].framePoses = RL_MALLOC(animations[i].frameCount*sizeof(Transform *)); diff --git a/src/rtextures.c b/src/rtextures.c index 7d76616c..b6186d9e 100644 --- a/src/rtextures.c +++ b/src/rtextures.c @@ -610,7 +610,7 @@ unsigned char *ExportImageToMemory(Image image, const char *fileType, int *dataS { unsigned char *fileData = NULL; *dataSize = 0; - + if ((image.width == 0) || (image.height == 0) || (image.data == NULL)) return NULL; #if defined(SUPPORT_IMAGE_EXPORT) @@ -629,7 +629,7 @@ unsigned char *ExportImageToMemory(Image image, const char *fileType, int *dataS #endif #endif - + return fileData; } @@ -713,7 +713,7 @@ Image GenImageColor(int width, int height, Color color) #if defined(SUPPORT_IMAGE_GENERATION) // Generate image: linear gradient -// The direction value specifies the direction of the gradient (in degrees) +// The direction value specifies the direction of the gradient (in degrees) // with 0 being vertical (from top to bottom), 90 being horizontal (from left to right). // The gradient effectively rotates counter-clockwise by the specified amount. Image GenImageGradientLinear(int width, int height, int direction, Color start, Color end) @@ -898,21 +898,21 @@ Image GenImagePerlinNoise(int width, int height, int offsetX, int offsetY, float { float nx = (float)(x + offsetX)*(scale/(float)width); float ny = (float)(y + offsetY)*(scale/(float)height); - + // Basic perlin noise implementation (not used) //float p = (stb_perlin_noise3(nx, ny, 0.0f, 0, 0, 0); - + // Calculate a better perlin noise using fbm (fractal brownian motion) // Typical values to start playing with: // lacunarity = ~2.0 -- spacing between successive octaves (use exactly 2.0 for wrapping output) // gain = 0.5 -- relative weighting applied to each successive octave // octaves = 6 -- number of "octaves" of noise3() to sum float p = stb_perlin_fbm_noise3(nx, ny, 1.0f, 2.0f, 0.5f, 6); - + // Clamp between -1.0f and 1.0f if (p < -1.0f) p = -1.0f; if (p > 1.0f) p = 1.0f; - + // We need to normalize the data from [-1..1] to [0..1] float np = (p + 1.0f)/2.0f; diff --git a/src/utils.c b/src/utils.c index aa2bfc40..ac57a215 100644 --- a/src/utils.c +++ b/src/utils.c @@ -348,7 +348,7 @@ char *LoadFileText(const char *fileName) if (size > 0) { text = (char *)RL_MALLOC((size + 1)*sizeof(char)); - + if (text != NULL) { unsigned int count = (unsigned int)fread(text, sizeof(char), size, file);