aboutsummaryrefslogtreecommitdiff
path: root/src/textures.c
diff options
context:
space:
mode:
authorRay <raysan5@gmail.com>2016-06-02 01:26:44 +0200
committerRay <raysan5@gmail.com>2016-06-02 01:26:44 +0200
commit17878550b1e2dde44fcd1e668c92ca2d96680a28 (patch)
tree40811b7f15dc77d88ec80a7029691e034bb53cb8 /src/textures.c
parent7afa0b09ab00b610ad084026022df788fb787229 (diff)
downloadraylib-17878550b1e2dde44fcd1e668c92ca2d96680a28.tar.gz
raylib-17878550b1e2dde44fcd1e668c92ca2d96680a28.zip
Review heades usage
This is a first step toward a bigger project. Some modules could be ported to header-only to be used as standalone.
Diffstat (limited to 'src/textures.c')
-rw-r--r--src/textures.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/textures.c b/src/textures.c
index 8c59f3f2..432d3426 100644
--- a/src/textures.c
+++ b/src/textures.c
@@ -29,8 +29,8 @@
#include "raylib.h"
-#include <stdlib.h> // Declares malloc() and free() for memory management
-#include <string.h> // Required for strcmp(), strrchr(), strncmp()
+#include <stdlib.h> // Required for: malloc(), free()
+#include <string.h> // Required for: strcmp(), strrchr(), strncmp()
#include "rlgl.h" // raylib OpenGL abstraction layer to OpenGL 1.1, 3.3 or ES2
// Required: rlglLoadTexture() rlDeleteTextures(),
@@ -40,10 +40,12 @@
// NOTE: Includes Android fopen function map
#define STB_IMAGE_IMPLEMENTATION
-#include "stb_image.h" // Used to read image data (multiple formats support)
+#include "stb_image.h" // Required for: stbi_load()
+ // NOTE: Used to read image data (multiple formats support)
#define STB_IMAGE_RESIZE_IMPLEMENTATION
-#include "stb_image_resize.h" // Used on image scaling function: ImageResize()
+#include "stb_image_resize.h" // Required for: stbir_resize_uint8()
+ // NOTE: Used for image scaling on ImageResize()
//----------------------------------------------------------------------------------
// Defines and Macros