diff options
| author | Ray <[email protected]> | 2020-06-25 16:26:59 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2020-06-25 16:26:59 +0200 |
| commit | ba39a1b304bc8af27d7cd319a06e4c4767997f4e (patch) | |
| tree | c3d85f4402e3707be55a476496b890e1d21cdb7d /src/raylib.h | |
| parent | 25fb24ba7d8cb90a32ae3b7a57f4a1a87a8f7319 (diff) | |
| download | raylib-ba39a1b304bc8af27d7cd319a06e4c4767997f4e.tar.gz raylib-ba39a1b304bc8af27d7cd319a06e4c4767997f4e.zip | |
ADDED: UpdateTextureRec()
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 3894a4a1..e456f5fe 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1172,6 +1172,7 @@ RLAPI RenderTexture2D LoadRenderTexture(int width, int height); RLAPI void UnloadTexture(Texture2D texture); // Unload texture from GPU memory (VRAM) RLAPI void UnloadRenderTexture(RenderTexture2D target); // Unload render texture from GPU memory (VRAM) RLAPI void UpdateTexture(Texture2D texture, const void *pixels); // Update GPU texture with new data +RLAPI void UpdateTextureRec(Texture2D texture, Rectangle rec, const void *pixels); // Update GPU texture rectangle with new data RLAPI Image GetTextureData(Texture2D texture); // Get pixel data from GPU texture and return an Image RLAPI Image GetScreenData(void); // Get pixel data from screen buffer and return an Image (screenshot) |
