REVIEWED: Added new examples to VS2022 solution
This commit is contained in:
parent
fe757b6267
commit
bbf0c3a46d
25 changed files with 4412 additions and 273 deletions
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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();
|
||||
//----------------------------------------------------------------------------------
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue