diff options
| author | raysan5 <raysan5@gmail.com> | 2016-03-27 18:32:36 +0200 |
|---|---|---|
| committer | raysan5 <raysan5@gmail.com> | 2016-03-27 18:34:05 +0200 |
| commit | 8b7ca8b670a0f338fef85125311522833b945bf7 (patch) | |
| tree | 6a0387726f64b0b55ff7a7033a3c01566f8ab6c4 /src/textures.c | |
| parent | 35ee4e52c844552a9d640bfdc4f0a55c14cdc756 (diff) | |
| download | raylib-8b7ca8b670a0f338fef85125311522833b945bf7.tar.gz raylib-8b7ca8b670a0f338fef85125311522833b945bf7.zip | |
Review comments
Diffstat (limited to 'src/textures.c')
| -rw-r--r-- | src/textures.c | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/textures.c b/src/textures.c index e649df57..9d0d13b6 100644 --- a/src/textures.c +++ b/src/textures.c @@ -29,21 +29,21 @@ #include "raylib.h" -#include <stdlib.h> // Declares malloc() and free() for memory management -#include <string.h> // Required for strcmp(), strrchr(), strncmp() +#include <stdlib.h> // Declares malloc() and free() for memory management +#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(), - // rlglGenerateMipmaps(), some funcs for DrawTexturePro() +#include "rlgl.h" // raylib OpenGL abstraction layer to OpenGL 1.1, 3.3 or ES2 + // Required: rlglLoadTexture() rlDeleteTextures(), + // rlglGenerateMipmaps(), some funcs for DrawTexturePro() -#include "utils.h" // rRES data decompression utility function - // NOTE: Includes Android fopen function map +#include "utils.h" // rRES data decompression utility function + // 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" // Used to read image data (multiple formats support) #define STB_IMAGE_RESIZE_IMPLEMENTATION -#include "stb_image_resize.h" +#include "stb_image_resize.h" // Used on image scaling function: ImageResize() //---------------------------------------------------------------------------------- // Defines and Macros @@ -130,6 +130,7 @@ Image LoadImage(const char *fileName) } // Load image data from Color array data (RGBA - 32bit) +// NOTE: Creates a copy of pixels data array Image LoadImageEx(Color *pixels, int width, int height) { Image image; |
