| Age | Commit message (Collapse) | Author |
|
|
|
* remove function call
* fix
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
* [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.
|
|
|
|
* 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>
|
|
* inital function
* working 1
* optimize
* optimized dot product
* simplify
* cleanup
* cleanup
* cleanup
* comment
* var name change
* epsilon
|
|
|
|
|
|
|
|
This could be actually very tricky and GPU/drivers dependant...
|
|
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.
|
|
- Review formatting
- Improve readability for some functions result return
- Minimize early returns
- Align LoadFileData() to UnloadFileData()
|
|
|
|
|
|
|
|
|
|
|
|
* 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
|
|
|
|
* Implement miters in DrawSplineLinear
* Follow raylib style
|
|
|
|
This change allows more versatile and consistent splines drawing. It also gives more control to advance users to draw splines as individual segments.
|
|
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-
|
|
|
|
ImageDrawCircleLinesV already existed, so I'm not sure why this was
missing. It is trivial to implement, anyway
|
|
|
|
|
|
|
|
|
|
- `DrawLineBSpline()`
- `DrawLineCatmullRom()`
|
|
|
|
* Update usage of 'sinf()' and 'cosf()' to be correct
* Update formatting of arithmetic operations
|
|
|
|
|
|
* Update rshapes.c
Add a much more efficient GetCollisionRec implementation
* Update GetCollisionRec
Replace macros with ternary operators
|
|
|
|
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.
|
|
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.
|
|
* Fixed some grammar mistakes.
* Fixed some typos.
|
|
|
|
|
|
|
|
* Fixed bezier line breaking #2735
* converted tabs to spaces
* typo
* Changed doubles to floats
* removed heap allocations\
Co-authored-by: nobytesgiven <[email protected]>
|