summaryrefslogtreecommitdiffhomepage
path: root/src/raylib.h
diff options
context:
space:
mode:
authorVlad Adrian <[email protected]>2020-06-28 00:59:14 +0300
committerGitHub <[email protected]>2020-06-27 23:59:14 +0200
commit4d71e9b44fd043472eb523207765fd882578a2e0 (patch)
tree7eee2baa992e31d9c7bdaa5732bd343156f8118e /src/raylib.h
parenteae6e6a828064a2cc8c3d7735c4422d5ca398eaa (diff)
downloadraylib-4d71e9b44fd043472eb523207765fd882578a2e0.tar.gz
raylib-4d71e9b44fd043472eb523207765fd882578a2e0.zip
Added new function `DrawTextureTiled()` (#1291)
* Implemented DrawTextureTiled() * Example added
Diffstat (limited to 'src/raylib.h')
-rw-r--r--src/raylib.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/raylib.h b/src/raylib.h
index e456f5fe..4359147a 100644
--- a/src/raylib.h
+++ b/src/raylib.h
@@ -1187,6 +1187,7 @@ RLAPI void DrawTextureV(Texture2D texture, Vector2 position, Color tint);
RLAPI void DrawTextureEx(Texture2D texture, Vector2 position, float rotation, float scale, Color tint); // Draw a Texture2D with extended parameters
RLAPI void DrawTextureRec(Texture2D texture, Rectangle sourceRec, Vector2 position, Color tint); // Draw a part of a texture defined by a rectangle
RLAPI void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Rectangle quad, Color tint); // Draw texture quad with tiling and offset parameters
+RLAPI void DrawTextureTiled(Texture2D texture, Rectangle sourceRec, Rectangle destRec, Vector2 origin, float rotation, float scale, Color tint); // Draw part of a texture (defined by a rectangle) with rotation and scale tiled into destRec.
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