summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorWilhem Barbier <[email protected]>2017-06-28 14:32:18 +0200
committerWilhem Barbier <[email protected]>2017-06-28 14:32:44 +0200
commit954757532a58113f36314cdf148e72dd1079e54a (patch)
tree41c6af0c20c849cab6b86c7d32625aab3010fa86 /src/raylib.h
parent92ca68aac8e593b3df15a18ba86f8af0acff8921 (diff)
downloadraylib-954757532a58113f36314cdf148e72dd1079e54a.tar.gz
raylib-954757532a58113f36314cdf148e72dd1079e54a.zip
Add the SaveImageAs function
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h
index 29cc5728..ee0d8ccc 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -835,7 +835,7 @@ RLAPI bool CheckCollisionPointTriangle(Vector2 point, Vector2 p1, Vector2 p2, Ve
// Texture Loading and Drawing Functions (Module: textures)
//------------------------------------------------------------------------------------
-// Image/Texture2D data loading/unloading functions
+// Image/Texture2D data loading/unloading/saving functions
RLAPI Image LoadImage(const char *fileName); // Load image from file into CPU memory (RAM)
RLAPI Image LoadImageEx(Color *pixels, int width, int height); // Load image from Color array data (RGBA - 32bit)
RLAPI Image LoadImagePro(void *data, int width, int height, int format); // Load image from raw data with parameters
@@ -849,6 +849,7 @@ RLAPI void UnloadRenderTexture(RenderTexture2D target);
RLAPI Color *GetImageData(Image image); // Get pixel data from image as a Color struct array
RLAPI Image GetTextureData(Texture2D texture); // Get pixel data from GPU texture and return an Image
RLAPI void UpdateTexture(Texture2D texture, const void *pixels); // Update GPU texture with new data
+RLAPI void SaveImageAs(Image image, const char *fileName); // Save image to a PNG file
// Image manipulation functions
RLAPI void ImageToPOT(Image *image, Color fillColor); // Convert image to POT (power-of-two)