summaryrefslogtreecommitdiffhomepage
path: root/release
diff options
context:
space:
mode:
authorRay San <[email protected]>2018-06-12 13:13:09 +0200
committerRay San <[email protected]>2018-06-12 13:13:09 +0200
commit59fd2614916249ad5a229f032cb92f34692ca29b (patch)
treedcd139b1d943e1e27a45473b028a827731b0a253 /release
parent7d0e09ff4c7687853c6946466d38b0bb685b0088 (diff)
downloadraylib-59fd2614916249ad5a229f032cb92f34692ca29b.tar.gz
raylib-59fd2614916249ad5a229f032cb92f34692ca29b.zip
Added function: GetImageDataNormalized()
Reviewed: GetImageData() Reviewed: ImageFormat()
Diffstat (limited to 'release')
-rw-r--r--release/include/raylib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/release/include/raylib.h b/release/include/raylib.h
index 86ad5408..e0cfaa6d 100644
--- a/release/include/raylib.h
+++ b/release/include/raylib.h
@@ -899,6 +899,7 @@ RLAPI void UnloadImage(Image image);
RLAPI void UnloadTexture(Texture2D texture); // Unload texture from GPU memory (VRAM)
RLAPI void UnloadRenderTexture(RenderTexture2D target); // Unload render texture from GPU memory (VRAM)
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 int GetPixelDataSize(int width, int height, int format); // Get pixel data size in bytes (image or texture)
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