summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-03-29 13:37:33 +0200
committerraysan5 <[email protected]>2020-03-29 13:37:33 +0200
commit733ed972f7cd1473030c3ed80f46245bc0f53a11 (patch)
tree432b5200e7af1eb714d862f02a7f0c6d8aaf8630 /src/raylib.h
parent5d7050bdf9f44cc442bb9e47d9d7ea4f2171a8b3 (diff)
downloadraylib-733ed972f7cd1473030c3ed80f46245bc0f53a11.tar.gz
raylib-733ed972f7cd1473030c3ed80f46245bc0f53a11.zip
Reorganize image functions
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 51a1c4af..329a3b71 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1111,8 +1111,6 @@ RLAPI void ExportImage(Image image, const char *fileName);
RLAPI void ExportImageAsCode(Image image, const char *fileName); // Export image as code file defining an array of bytes
RLAPI Color *GetImageData(Image image); // Get pixel data from image as a Color struct array
RLAPI Vector4 *GetImageDataNormalized(Image image); // Get pixel data from image as Vector4 array (float normalized)
-RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
-RLAPI int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes (image or texture)
// Image generation functions
RLAPI Image GenImageColor(int width, int height, Color color); // Generate image: plain color
@@ -1152,6 +1150,7 @@ RLAPI void ImageColorContrast(Image *image, float contrast);
RLAPI void ImageColorBrightness(Image *image, int brightness); // Modify image color: brightness (-255 to 255)
RLAPI void ImageColorReplace(Image *image, Color color, Color replace); // Modify image color: replace color
RLAPI Color *ImageExtractPalette(Image image, int maxPaletteSize, int *extractCount); // Extract color palette from image to maximum size (memory should be freed)
+RLAPI Rectangle GetImageAlphaBorder(Image image, float threshold); // Get image alpha border rectangle
// Image drawing functions
// NOTE: Image software-rendering functions (CPU)
@@ -1196,6 +1195,9 @@ RLAPI void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Re
RLAPI void DrawTexturePro(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draw a part of a texture defined by a rectangle with 'pro' parameters
RLAPI void DrawTextureNPatch(Texture2D texture, NPatchInfo nPatchInfo, Rectangle destRec, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely
+// Image/Texture misc functions
+RLAPI int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes (image or texture)
+
//------------------------------------------------------------------------------------
// Font Loading and Text Drawing Functions (Module: text)
//------------------------------------------------------------------------------------