diff options
| author | chriscamacho <[email protected]> | 2021-03-25 13:22:10 +0000 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-03-25 14:22:10 +0100 |
| commit | 9569d6a802a2230c92503456d544a5470a59d5cf (patch) | |
| tree | 2ab9ac314c03b689b9dd8dced8c14d3569119afb /src/raylib.h | |
| parent | dd5935048539486b0672d8cf112f3df806352dea (diff) | |
| download | raylib-9569d6a802a2230c92503456d544a5470a59d5cf.tar.gz raylib-9569d6a802a2230c92503456d544a5470a59d5cf.zip | |
Add DrawTexturedPoly and example (#1677)
* adds DrawTexturedPoly with example
* the actual example ... ahem
* moved DrawTexturePoly to textures function and example
NB function name changed to fit with other DrawTextureXXX functions
(no "d" )
Co-authored-by: codifies <[email protected]>
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 d02ec4b3..fcf820a9 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -1260,6 +1260,7 @@ RLAPI void DrawTextureQuad(Texture2D texture, Vector2 tiling, Vector2 offset, Re RLAPI void DrawTextureTiled(Texture2D texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, float scale, Color tint); // Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest. RLAPI void DrawTexturePro(Texture2D texture, Rectangle source, Rectangle dest, 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 dest, Vector2 origin, float rotation, Color tint); // Draws a texture (or part of it) that stretches or shrinks nicely +RLAPI void DrawTexturePoly(Texture t, float x, float y, Vector2 *points, Vector2 *tPnts, int numPoints, Color colour); // Draw a textured polygon // Color/pixel related functions RLAPI Color Fade(Color color, float alpha); // Returns color with alpha applied, alpha goes from 0.0f to 1.0f |
