From 040b945fefc341a8f17ab34cdc8fa2a8be6fac96 Mon Sep 17 00:00:00 2001 From: Ray Date: Wed, 8 Nov 2023 20:09:32 +0100 Subject: Reviewed some examples and warnings --- examples/shapes/shapes_bouncing_ball.c | 3 --- examples/shapes/shapes_splines_drawing.c | 12 ++++++------ 2 files changed, 6 insertions(+), 9 deletions(-) (limited to 'examples/shapes') diff --git a/examples/shapes/shapes_bouncing_ball.c b/examples/shapes/shapes_bouncing_ball.c index 16273b65..38fade60 100644 --- a/examples/shapes/shapes_bouncing_ball.c +++ b/examples/shapes/shapes_bouncing_ball.c @@ -67,9 +67,6 @@ int main(void) // On pause, we draw a blinking message if (pause && ((framesCounter/30)%2)) DrawText("PAUSED", 350, 200, 30, GRAY); - DrawCircle(400.5f, 300.5f, 50.0f, BLACK); - DrawCircle(528.0f, 172.0f, 26.0f, BLACK); - DrawFPS(10, 10); EndDrawing(); diff --git a/examples/shapes/shapes_splines_drawing.c b/examples/shapes/shapes_splines_drawing.c index cfac931b..17dd0075 100644 --- a/examples/shapes/shapes_splines_drawing.c +++ b/examples/shapes/shapes_splines_drawing.c @@ -2,7 +2,7 @@ * * raylib [shapes] example - splines drawing * -* Example originally created with raylib 4.6-dev, last time updated with raylib 4.6-dev +* Example originally created with raylib 5.0, last time updated with raylib 5.0 * * Example licensed under an unmodified zlib/libpng license, which is an OSI-certified, * BSD-like license that allows static linking with closed source software @@ -17,7 +17,7 @@ #define MAX_SPLINE_POINTS 32 -// Bezier spline control points +// Cubic Bezier spline control points // NOTE: Every segment has two control points typedef struct { Vector2 start; @@ -26,10 +26,10 @@ typedef struct { // Spline types typedef enum { - SPLINE_LINEAR = 0, - SPLINE_BASIS, // B-Spline - SPLINE_CATMULLROM, - SPLINE_BEZIER + SPLINE_LINEAR = 0, // Linear + SPLINE_BASIS, // B-Spline + SPLINE_CATMULLROM, // Catmull-Rom + SPLINE_BEZIER // Cubic Bezier } SplineType; //------------------------------------------------------------------------------------ -- cgit v1.2.3