diff options
| author | raysan5 <[email protected]> | 2018-01-06 02:50:20 +0100 |
|---|---|---|
| committer | raysan5 <[email protected]> | 2018-01-06 02:50:20 +0100 |
| commit | 7fa28611607c210789054056095588b17c5bdaac (patch) | |
| tree | ee470bf077b1f45ece7494387341d5fd623d62e1 /src/raylib.h | |
| parent | 0e48396369f7cb3c41a69c9d7dba01328e0dd51c (diff) | |
| download | raylib-7fa28611607c210789054056095588b17c5bdaac.tar.gz raylib-7fa28611607c210789054056095588b17c5bdaac.zip | |
Added function: GetPixelDataSize()
Just found I need that function...
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h index 75bd883d..01699ae7 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -869,6 +869,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 int GetImageDataSize(Image image); // Get image data size in bytes 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(const char *fileName, Image image); // Save image to a PNG file |
