summaryrefslogtreecommitdiffhomepage
path: root/examples/shapes
diff options
context:
space:
mode:
authorRay <[email protected]>2023-11-08 17:41:08 +0100
committerRay <[email protected]>2023-11-08 17:41:08 +0100
commitbbf0c3a46d27b723e73483bdd787c7713b31fe1a (patch)
treed0cb4223f357366f8eeb0171337f20f913100fd4 /examples/shapes
parentfe757b626703f91d59e04599ee033e993e00232b (diff)
downloadraylib-bbf0c3a46d27b723e73483bdd787c7713b31fe1a.tar.gz
raylib-bbf0c3a46d27b723e73483bdd787c7713b31fe1a.zip
REVIEWED: Added new examples to VS2022 solution
Diffstat (limited to 'examples/shapes')
-rw-r--r--examples/shapes/shapes_lines_bezier.c6
-rw-r--r--examples/shapes/shapes_splines_drawing.c2
-rw-r--r--examples/shapes/shapes_top_down_lights.c1
3 files changed, 5 insertions, 4 deletions
diff --git a/examples/shapes/shapes_lines_bezier.c b/examples/shapes/shapes_lines_bezier.c
index 5bd916ee..785d73a6 100644
--- a/examples/shapes/shapes_lines_bezier.c
+++ b/examples/shapes/shapes_lines_bezier.c
@@ -60,11 +60,11 @@ int main(void)
DrawText("USE MOUSE LEFT-RIGHT CLICK to DEFINE LINE START and END POINTS", 15, 20, 20, GRAY);
- // Draw line cubic-bezier, in-out interpolation (easing), no control points
+ // Draw line Cubic Bezier, in-out interpolation (easing), no control points
DrawLineBezier(start, end, 3.0f, BLUE);
- // Draw spline cubic-bezier with control points
- DrawSplineBezierCubic(start, startControl, endControl, end, 2.0f, RED);
+ // Draw spline Cubic Bezier with control points
+ DrawSplineSegmentBezierCubic(start, startControl, endControl, end, 2.0f, RED);
DrawLineEx(start, startControl, 1.0, LIGHTGRAY);
DrawLineEx(end, endControl, 1.0, LIGHTGRAY);
diff --git a/examples/shapes/shapes_splines_drawing.c b/examples/shapes/shapes_splines_drawing.c
index 58fcaf69..cfac931b 100644
--- a/examples/shapes/shapes_splines_drawing.c
+++ b/examples/shapes/shapes_splines_drawing.c
@@ -167,7 +167,7 @@ int main(void)
// Draw spline: cubic-bezier (with control points)
for (int i = 0; i < pointCount - 1; i++)
{
- DrawSplineBezierCubic(points[i], control[i].start, control[i].end, points[i + 1], 2.0f, RED);
+ DrawSplineSegmentBezierCubic(points[i], control[i].start, control[i].end, points[i + 1], 10.0f, RED);
// Every cubic bezier point should have two control points
DrawCircleV(control[i].start, 4, GOLD);
diff --git a/examples/shapes/shapes_top_down_lights.c b/examples/shapes/shapes_top_down_lights.c
index b09137cb..f22cf3c1 100644
--- a/examples/shapes/shapes_top_down_lights.c
+++ b/examples/shapes/shapes_top_down_lights.c
@@ -335,6 +335,7 @@ int main(void)
DrawFPS(screenWidth - 80, 10);
DrawText("Drag to move light #1", 10, 10, 10, DARKGREEN);
DrawText("Right click to add new light", 10, 30, 10, DARKGREEN);
+
EndDrawing();
//----------------------------------------------------------------------------------
}