summaryrefslogtreecommitdiffhomepage
path: root/src/rshapes.c
AgeCommit message (Collapse)Author
2024-07-07REVIEWED: `CheckCollisionPointRec()`Ray
2024-07-07[rshapes] Give CheckCollisionPointCircle() its own implementation (#4135)kai-z99
* remove function call * fix
2024-07-01Minor tweaksRay
2024-06-30REVIEWED: Formatting, follow raylib coding conventionsRay
2024-06-30REVIEWED: Formatting, follow raylib coding conventionsRay
2024-06-25Update rshapes.cRay
2024-06-25REVIEWED: `DrawLine()` #4075Ray
2024-06-24Minor tweaksRay
2024-06-16REVIEWED: Spline cubic bezier exampleRay
2024-06-16[rshapes] Fix multisegment Bezier splines. (#3744)Santiago Pelufo
* [rshapes] Fix multisegment Bezier splines. It seems to me that these functions are wrong, if you step the index by 1 you move to a control point instead of the next segment. * Fix example shapes/shapes_splines_drawing for bezier splines. * Draw circles to fill gaps between bezier segments.
2024-06-14optimize (#4065)kai-z99
2024-06-11[SHAPES] Make functions that draw point arrays take them as const (#4051)Jeffery Myers
* Update raylib_api.* by CI * make functions that take a pointer to an array take them as const pointers * Update raylib_api.* by CI * fix comment alignment. --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-05-30[rshapes]Circle line collision function (#4018)kai-z99
* inital function * working 1 * optimize * optimized dot product * simplify * cleanup * cleanup * cleanup * comment * var name change * epsilon
2024-05-01Reviewed some warningsRay
2024-04-28REVIEWED: `DrawLine()` to avoid pixel rounding issues #3931Ray
2024-04-21Review formattingRay
2024-04-20REVIEWED: `DrawRectangleLines()` pixel offsetRay
This could be actually very tricky and GPU/drivers dependant...
2024-04-20REVIEWED: `DrawRectangleLines()` #3884Ray
For consistency, now _almost_ all `Draw*Lines()` functions use `RL_LINES` mode for drawing. It solves the linked issue but it can have other implications, as mentioned in the WARNING comment in `DrawRectangleLines()`. Side note: `DrawRectangleRoundedLines()` now should be reviewed for consistency.
2024-04-20Code gardeningRay
- Review formatting - Improve readability for some functions result return - Minimize early returns - Align LoadFileData() to UnloadFileData()
2024-02-29Review formattingRay
2024-02-18Remove some unneeded line breaksRay
2024-02-08REVIEWED: `DrawPixel()` not drawingRay
2024-01-22fix CheckCollisionPointPoly (#3750)Antonio Raúl
2024-01-02Update copyright to 2024Ray
2023-12-28[rshapes] Expose shapes drawing texture and rectangle (#3677)Jeffery Myers
* provide access to the shape texture so that shapes can be extended outside of raylib with the same optimizations as internal raylib functions. * PR feedback, comply with C standards * oops
2023-12-15REVIEWED: `DrawSplineLinear()` to `SUPPORT_SPLINE_MITERS`Ray
2023-12-15Implement miters in DrawSplineLinear (#3585)Toctave
* Implement miters in DrawSplineLinear * Follow raylib style
2023-11-30Fix CheckCollisionCircleRec() (#3584)ubkp
2023-11-08REDESIGNED: Spline drawing functionalityRay
This change allows more versatile and consistent splines drawing. It also gives more control to advance users to draw splines as individual segments.
2023-11-07ADDED: `GetSplinePoint*()` functions for spline evaluationRay
RENAMED: `DrawLine<spline_type>()` to `DrawSpline<spline_type>()` for more consistent and clear naming REVIEWED: Bezier drawing parameters order, more consistent REVIEWED: Spline-based examples -WIP-
2023-10-26Remove trail spacesRay
2023-10-22Add DrawCircleLinesV for consistency (#3452)Peter0x44
ImageDrawCircleLinesV already existed, so I'm not sure why this was missing. It is trivial to implement, anyway
2023-08-20tweaksRay
2023-08-12REVIEWED: `DrawLineCatmullRom()`Ray
2023-08-12ISSUE: `DrawLineCatmullRom()`, needs reviewRay
2023-08-12REVIEWED: Code formattingRay
2023-08-12ADDED: Spline drawing functions ->Ray
- `DrawLineBSpline()` - `DrawLineCatmullRom()`
2023-08-10fix typos in rmodels, rshapes, rtext modules (#3236)RadsammyT
2023-07-19Update usage of 'sinf()' and 'cosf()' to be correct (#3181)Rokas Puzonas
* Update usage of 'sinf()' and 'cosf()' to be correct * Update formatting of arithmetic operations
2023-06-28REVIEWED: `SetShapesTexture()`, allow resetingRay
2023-05-10REVIEWED: `GetCollisionRec()`Ray
2023-05-10Update GetCollisionRec (#3052)manuel5975p
* Update rshapes.c Add a much more efficient GetCollisionRec implementation * Update GetCollisionRec Replace macros with ternary operators
2023-05-01REVIEWED: Modules description layoutRay
2023-04-22Fix off-by-one error in CheckCollisionPointRec (#3022)Dan Bechard
Checking `<= x + w` causes off-by-one error where `CheckCollisionPointRec` will return true at the same time for two rectangles rendered right next to each, but which don't overlap (e.g. when making a 2D tile editor). This is clearly not what was intended.
2023-04-09Minor fix in DrawLineBezier* (#3006)eternalStudent
When `i` starts with `0`, `t` is also `0`, which results in `previous == startPos == current`, this segment is not only redundant, but it also causes division-by-zero since `sqrtf(dx*dx + dy*dy)` is zero.
2023-02-09Fixed some grammar mistakes and typos. (#2914)Julio C. Galindo
* Fixed some grammar mistakes. * Fixed some typos.
2023-02-05Clean trailing spacesRay
2023-01-20Fix warnings in raylib project from MSVC (#2871)Jeffery Myers
2023-01-01Update year to 2023Ray
2022-10-24Fix bezier line breaking #2735 (#2767)nobytesgiven
* Fixed bezier line breaking #2735 * converted tabs to spaces * typo * Changed doubles to floats * removed heap allocations\ Co-authored-by: nobytesgiven <[email protected]>