diff options
| author | Ray <[email protected]> | 2017-09-30 00:46:31 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2017-09-30 00:46:31 +0200 |
| commit | 4f9de9527f8301e024fe81a42f0b9dfc50bae1a6 (patch) | |
| tree | 24713d3f9521b537ad57c1569c7675bb79b1f077 /src/raylib.h | |
| parent | 639f41cf5412affbe85439e318205cf855716114 (diff) | |
| download | raylib-4f9de9527f8301e024fe81a42f0b9dfc50bae1a6.tar.gz raylib-4f9de9527f8301e024fe81a42f0b9dfc50bae1a6.zip | |
Review gradient rectangle drawing
Added: DrawRectangleGradientV()
Added: DrawRectangleGradientH()
Diffstat (limited to 'src/raylib.h')
| -rw-r--r-- | src/raylib.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/raylib.h b/src/raylib.h index 07674531..f46f276c 100644 --- a/src/raylib.h +++ b/src/raylib.h @@ -856,7 +856,8 @@ RLAPI void DrawCircleLines(int centerX, int centerY, float radius, Color color); RLAPI void DrawRectangle(int posX, int posY, int width, int height, Color color); // Draw a color-filled rectangle RLAPI void DrawRectangleRec(Rectangle rec, Color color); // Draw a color-filled rectangle RLAPI void DrawRectanglePro(Rectangle rec, Vector2 origin, float rotation, Color color); // Draw a color-filled rectangle with pro parameters -RLAPI void DrawRectangleGradient(int posX, int posY, int width, int height, Color color1, Color color2); // Draw a gradient-filled rectangle +RLAPI void DrawRectangleGradientV(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a vertical-gradient-filled rectangle +RLAPI void DrawRectangleGradientH(int posX, int posY, int width, int height, Color color1, Color color2);// Draw a horizontal-gradient-filled rectangle RLAPI void DrawRectangleGradientEx(Rectangle rec, Color col1, Color col2, Color col3, Color col4); // Draw a gradient-filled rectangle with custom vertex colors RLAPI void DrawRectangleV(Vector2 position, Vector2 size, Color color); // Draw a color-filled rectangle (Vector version) RLAPI void DrawRectangleLines(int posX, int posY, int width, int height, Color color); // Draw rectangle outline |
