summaryrefslogtreecommitdiffhomepage
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <[email protected]>2016-11-24 17:26:07 +0100
committerGitHub <[email protected]>2016-11-24 17:26:07 +0100
commit17f09cb03484a408cdd50a3d2e4d6604bb1f4c70 (patch)
tree51e909c419de9625f1beaaca44696857a600e8d5 /src/textures.c
parent05f68c22d5c8d8f7c4254ae47700318e21709887 (diff)
parenta81dfabf863c512044b246e23aaf43489d2fa1ac (diff)
downloadraylib-1.6.0.tar.gz
raylib-1.6.0.zip
Merge pull request #198 from raysan5/develop1.6.0
Develop branch integration
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/textures.c b/src/textures.c
index 5354a74f..126adad3 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -4,9 +4,13 @@
*
* Basic functions to load and draw Textures (2d)
*
-* Uses external lib:
-* stb_image - Multiple formats image loading (JPEG, PNG, BMP, TGA, PSD, GIF, PIC)
-* NOTE: stb_image has been slightly modified, original library: https://github.com/nothings/stb
+* External libs:
+* stb_image - Multiple image formats loading (JPEG, PNG, BMP, TGA, PSD, GIF, PIC)
+* NOTE: stb_image has been slightly modified to support Android platform.
+* stb_image_resize - Multiple image resize algorythms
+*
+* Module Configuration Flags:
+* ...
*
* Copyright (c) 2014-2016 Ramon Santamaria (@raysan5)
*
@@ -1512,14 +1516,14 @@ void ImageColorBrightness(Image *image, int brightness)
}
// Generate GPU mipmaps for a texture
-void GenTextureMipmaps(Texture2D texture)
+void GenTextureMipmaps(Texture2D *texture)
{
#if PLATFORM_WEB
- int potWidth = GetNextPOT(texture.width);
- int potHeight = GetNextPOT(texture.height);
+ int potWidth = GetNextPOT(texture->width);
+ int potHeight = GetNextPOT(texture->height);
// Check if texture is POT
- if ((potWidth != texture.width) || (potHeight != texture.height))
+ if ((potWidth != texture->width) || (potHeight != texture->height))
{
TraceLog(WARNING, "Limited NPOT support, no mipmaps available for NPOT textures");
}