Ray
dd8b5613ca
REVIEWED: `DrawPixel()` not drawing
1 год назад
Antonio Raúl
ef92ced370
fix CheckCollisionPointPoly ( #3750 )
2 лет назад
Ray
3f1e59a7cf
Update copyright to 2024
2 лет назад
Jeffery Myers
ad64a43b34
[rshapes] Expose shapes drawing texture and rectangle ( #3677 )
* 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
2 лет назад
Ray
f3adde8bbd
REVIEWED: `DrawSplineLinear()` to `SUPPORT_SPLINE_MITERS`
2 лет назад
Toctave
0fc1765ff3
Implement miters in DrawSplineLinear ( #3585 )
* Implement miters in DrawSplineLinear
* Follow raylib style
2 лет назад
ubkp
e84099bfd4
Fix CheckCollisionCircleRec() ( #3584 )
2 лет назад
Ray
bd3ffa7db3
REDESIGNED: Spline drawing functionality
This change allows more versatile and consistent splines drawing. It also gives more control to advance users to draw splines as individual segments.
2 лет назад
Ray
f01d3db739
ADDED: `GetSplinePoint*()` functions for spline evaluation
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-
2 лет назад
Ray
e4547eb422
Remove trail spaces
2 лет назад
Peter0x44
e33e9da277
Add DrawCircleLinesV for consistency ( #3452 )
ImageDrawCircleLinesV already existed, so I'm not sure why this was
missing. It is trivial to implement, anyway
2 лет назад
Ray
8189bddefb
tweaks
2 лет назад
Ray
bf705a63de
REVIEWED: `DrawLineCatmullRom()`
2 лет назад
Ray
d873d0f173
ISSUE: `DrawLineCatmullRom()`, needs review
2 лет назад
Ray
9161c55d59
REVIEWED: Code formatting
2 лет назад
Ray
fc88518067
ADDED: Spline drawing functions ->
- `DrawLineBSpline()`
- `DrawLineCatmullRom()`
2 лет назад
RadsammyT
0959f6ebf6
fix typos in rmodels, rshapes, rtext modules ( #3236 )
2 лет назад
Rokas Puzonas
d6f16b7664
Update usage of 'sinf()' and 'cosf()' to be correct ( #3181 )
* Update usage of 'sinf()' and 'cosf()' to be correct
* Update formatting of arithmetic operations
2 лет назад
Ray
ceafbcf9d2
REVIEWED: `SetShapesTexture()`, allow reseting
2 лет назад
Ray
452e3b494c
REVIEWED: `GetCollisionRec()`
2 лет назад
manuel5975p
af4b97a301
Update GetCollisionRec ( #3052 )
* Update rshapes.c
Add a much more efficient GetCollisionRec implementation
* Update GetCollisionRec
Replace macros with ternary operators
2 лет назад
Ray
7d68aa6869
REVIEWED: Modules description layout
2 лет назад
Dan Bechard
2d04dd8b88
Fix off-by-one error in CheckCollisionPointRec ( #3022 )
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.
2 лет назад
eternalStudent
8f741d894a
Minor fix in DrawLineBezier* ( #3006 )
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.
2 лет назад
Julio C. Galindo
6ae21d6581
Fixed some grammar mistakes and typos. ( #2914 )
* Fixed some grammar mistakes.
* Fixed some typos.
3 лет назад
Ray
1fea266472
Clean trailing spaces
3 лет назад
Jeffery Myers
edaca16d7c
Fix warnings in raylib project from MSVC ( #2871 )
3 лет назад
Ray
b59fab7ee6
Update year to 2023
3 лет назад
nobytesgiven
e5d332dea2
Fix bezier line breaking #2735 ( #2767 )
* Fixed bezier line breaking #2735
* converted tabs to spaces
* typo
* Changed doubles to floats
* removed heap allocations\
Co-authored-by: nobytesgiven <nobytesgiven@users.noreply.github.com>
3 лет назад
hkc
8ebe62b4dd
Use RL_QUADS/RL_TRIANGLES for single-pixel drawing ( #2750 )
Addresses problem mentioned in
https://github.com/raysan5/raylib/issues/2744#issuecomment-1273568263
(in short: when drawing pixels using DrawPixel{,V} in camera mode,
upscaled pixel becomes a line instead of bigger pixel)
3 лет назад
Ray
33e7f7cc59
WARNING: `DrawLineBezier()` implementation needs review #2721
3 лет назад
Ray
853c66baed
REVIEWED: `CheckCollisionPointPoly()`
3 лет назад
Ray
b09725fa84
REPLACED: `rlVertex2i()` by `rlVertex2f()`
3 лет назад
Ray
e59442bfab
REMOVED: `rlPushMatrix()`/`rlPopMatrix()` from `rshapes`
This simplification will allow the usage of `rshapes` as STANDALONE mode in a future. Only a small set of `rlgl` functions are required and they can be "more" easely replaced if no `rlPushMatrix()`/`rlPopMatrix()` are involved.
More simplification planned for the future, maybe the textures dependencies.
3 лет назад
Ray
9996e328cb
WARNING: BREAKING: Removed `rlCheckRenderBatchLimit()` requirement
Updated version to `rlgl 4.2`
3 лет назад
Ray
f4b4054de5
REVIEWED: `CheckCollisionPointPoly()`
3 лет назад
Jacek
aff98d7f2a
Check collision point polygon ( #2685 )
* Update raylib.h
* CheckCollisionPointPolygon()
* typo
3 лет назад
Ray
61e691d94f
Remove unneeded `rlPushMatrix()`
3 лет назад
raysan5
d4382f4a52
Removed trailing spaces
3 лет назад
raysan5
a940f41b4b
Update year to 2022
4 лет назад
Ray
e637ad9d2a
Support custom modules inclusion
Allow to choose which modules are compiled with raylib, if some modules are excluded from compilation, required functionality is not available but smaller builds are possible.
4 лет назад
Ray
da7e0ba9d9
ouch
4 лет назад
Ray
c82390e3f1
Reviewed descriptions and notes
4 лет назад
Ray
4853082a4f
REVIEWED: DrawRectanglePro(), support TRIANGLES drawing
4 лет назад
Ray
f6180efd35
REVIEWED: CheckCollision*() consistency
4 лет назад
KonPet
34f9f51835
Fix Render Batch Limit not being checked in DrawRectangleGradientEx() ( #2111 )
4 лет назад
mandar1jn
affb707dd9
fixing the library so the workflows compile ( #2082 )
4 лет назад
TheSergey496
08441e8b2d
When one of the colliding lines is vertical or horizontal, not all collisions were correctly detected due to floating point error. ( #2081 )
4 лет назад
Ray
22345ff62a
Minor format tweak
4 лет назад
SAOMDVN
3fc4a4c974
Added DrawLineBezierCubic() ( #2021 )
Co-authored-by: SAOMDVN <saomdvn@users.noreply.github.com>
4 лет назад