summaryrefslogtreecommitdiffhomepage
path: root/cheatsheet/raylib_shapes.c
diff options
context:
space:
mode:
authorRay San <[email protected]>2017-10-17 13:26:12 +0200
committerRay San <[email protected]>2017-10-17 13:26:12 +0200
commit1cd56fd2f4cc9e7e3b64142ec9e4ff9f5184f791 (patch)
tree47722df655e4b20112a146278c2ef80256e26e6e /cheatsheet/raylib_shapes.c
parent5e8730f8da5e780741e624269865119da3cb0665 (diff)
downloadraylib.com-1cd56fd2f4cc9e7e3b64142ec9e4ff9f5184f791.tar.gz
raylib.com-1cd56fd2f4cc9e7e3b64142ec9e4ff9f5184f791.zip
Updated cheatsheet to raylib v1.8
Diffstat (limited to 'cheatsheet/raylib_shapes.c')
-rw-r--r--cheatsheet/raylib_shapes.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cheatsheet/raylib_shapes.c b/cheatsheet/raylib_shapes.c
index 7bf4eaa..da17744 100644
--- a/cheatsheet/raylib_shapes.c
+++ b/cheatsheet/raylib_shapes.c
@@ -13,9 +13,12 @@
void DrawRectangle(int posX, int posY, int width, int height, Color color); // Draw a color-filled rectangle
void DrawRectangleRec(Rectangle rec, Color color); // Draw a color-filled rectangle
void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color); // Draw a color-filled rectangle with pro parameters
- void DrawRectangleGradient(int posX, int posY, int width, int height, Color color1, Color color2); // Draw a gradient-filled rectangle
+ void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2); // Draw a vertical-gradient-filled rectangle
+ void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2); // Draw a horizontal-gradient-filled rectangle
+ void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // Draw a gradient-filled rectangle with custom vertex colors
void DrawRectangleV(Vector2 position, Vector2 size, Color color); // Draw a color-filled rectangle (Vector version)
void DrawRectangleLines(int posX, int posY, int width, int height, Color color); // Draw rectangle outline
+ void DrawRectangleT(int posX, int posY, int width, int height, Color color); // Draw rectangle using text character
void DrawTriangle(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw a color-filled triangle
void DrawTriangleLines(Vector2 v1, Vector2 v2, Vector2 v3, Color color); // Draw triangle outline
void DrawPoly(Vector2 center, int sides, float radius, float rotation, Color color); // Draw a regular polygon (Vector version)