raysan5 / raygui

A simple and easy-to-use immediate-mode gui library
zlib License
3.36k stars 289 forks source link

Implemented new DrawLineBezier Function, (Cuibic) version was deprecated #349

Closed pulgamecanica closed 9 months ago

pulgamecanica commented 9 months ago

Hello, while testing your examples module, I realized that you were using the function DrawLineBezierCubic which was deprecated on raylib5.0

My solution is to implement the DrawLineBezier function instead.

_Tested with : Linux Fedora 37 x8664 GNU/Linux

I hope you find this useful and let me know if there is something else I should consider for this Pull Request.

Solves #348

pulgamecanica commented 9 months ago

thanks to Jett (from Discord) for letting me know that the function was indeed deprecated after v5.0

raysan5 commented 9 months ago

@pulgamecanica Actually the equivalent function is DrawSplineSegmentBezierCubic(), DrawLineBezier() has no control points.

pulgamecanica commented 9 months ago

@pulgamecanica Actually the equivalent function is DrawSplineSegmentBezierCubic(), DrawLineBezier() has no control points.

Gotcha, will implement that one then! :)