e4547eb422
Remove trail spaces
2023-10-26 23:56:03 +02:00
e33e9da277
Add DrawCircleLinesV for consistency ( #3452 )
...
ImageDrawCircleLinesV already existed, so I'm not sure why this was
missing. It is trivial to implement, anyway
2023-10-22 17:13:49 +02:00
8189bddefb
tweaks
2023-08-20 21:36:36 +02:00
bf705a63de
REVIEWED: DrawLineCatmullRom()
2023-08-12 19:31:29 +02:00
d873d0f173
ISSUE: DrawLineCatmullRom(), needs review
2023-08-12 18:45:59 +02:00
9161c55d59
REVIEWED: Code formatting
2023-08-12 18:40:18 +02:00
fc88518067
ADDED: Spline drawing functions ->
...
- `DrawLineBSpline()`
- `DrawLineCatmullRom()`
2023-08-12 14:00:50 +02:00
0959f6ebf6
fix typos in rmodels, rshapes, rtext modules ( #3236 )
2023-08-10 00:21:14 +02:00
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
2023-07-19 13:46:14 +02:00
ceafbcf9d2
REVIEWED: SetShapesTexture(), allow reseting
2023-06-28 00:37:24 +02:00
452e3b494c
REVIEWED: GetCollisionRec()
2023-05-10 19:25:12 +02:00
af4b97a301
Update GetCollisionRec ( #3052 )
...
* Update rshapes.c
Add a much more efficient GetCollisionRec implementation
* Update GetCollisionRec
Replace macros with ternary operators
2023-05-10 19:19:59 +02:00
7d68aa6869
REVIEWED: Modules description layout
2023-05-01 14:04:22 +02:00
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.
2023-04-22 10:15:19 +02:00
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.
2023-04-09 22:43:06 +02:00
6ae21d6581
Fixed some grammar mistakes and typos. ( #2914 )
...
* Fixed some grammar mistakes.
* Fixed some typos.
2023-02-09 13:17:47 +01:00
1fea266472
Clean trailing spaces
2023-02-05 16:30:23 +01:00
edaca16d7c
Fix warnings in raylib project from MSVC ( #2871 )
2023-01-20 16:05:19 +01:00
b59fab7ee6
Update year to 2023
2023-01-01 16:00:56 +01:00
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 >
2022-10-24 16:35:47 +02:00
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)
2022-10-11 18:45:34 +02:00
33e7f7cc59
WARNING: DrawLineBezier() implementation needs review #2721
2022-10-02 11:11:13 +02:00
853c66baed
REVIEWED: CheckCollisionPointPoly()
2022-09-10 23:56:52 +02:00
b09725fa84
REPLACED: rlVertex2i() by rlVertex2f()
2022-09-05 18:45:33 +02:00
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.
2022-09-05 18:23:25 +02:00
9996e328cb
WARNING: BREAKING: Removed rlCheckRenderBatchLimit() requirement
...
Updated version to `rlgl 4.2`
2022-09-05 13:20:09 +02:00
f4b4054de5
REVIEWED: CheckCollisionPointPoly()
2022-09-04 10:45:01 +02:00
aff98d7f2a
Check collision point polygon ( #2685 )
...
* Update raylib.h
* CheckCollisionPointPolygon()
* typo
2022-09-04 10:39:03 +02:00
61e691d94f
Remove unneeded rlPushMatrix()
2022-06-27 13:27:16 +02:00
d4382f4a52
Removed trailing spaces
2022-02-18 20:30:46 +01:00
a940f41b4b
Update year to 2022
2021-12-31 20:06:22 +01:00
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.
2021-12-04 19:56:02 +01:00
da7e0ba9d9
ouch
2021-11-10 13:37:50 +01:00
c82390e3f1
Reviewed descriptions and notes
2021-11-10 13:31:42 +01:00
4853082a4f
REVIEWED: DrawRectanglePro(), support TRIANGLES drawing
2021-11-10 13:28:43 +01:00
f6180efd35
REVIEWED: CheckCollision*() consistency
2021-11-10 13:28:05 +01:00
34f9f51835
Fix Render Batch Limit not being checked in DrawRectangleGradientEx() ( #2111 )
2021-11-07 11:50:15 +01:00
affb707dd9
fixing the library so the workflows compile ( #2082 )
2021-10-24 18:24:01 +02:00
08441e8b2d
When one of the colliding lines is vertical or horizontal, not all collisions were correctly detected due to floating point error. ( #2081 )
2021-10-24 17:31:13 +02:00
22345ff62a
Minor format tweak
2021-10-03 12:17:15 +02:00
3fc4a4c974
Added DrawLineBezierCubic() ( #2021 )
...
Co-authored-by: SAOMDVN <saomdvn@users.noreply.github.com >
2021-10-03 12:15:56 +02:00
99ab4d6cb8
WARNING: MODULES RENAMING!!!
...
raylib modules have been slightly renamed to add some identity and note that they are independent modules that can be used as standalone separate parts of raylib if required.
The renamed modules are:
- `core` -> `rcore`
- `shapes` -> `rshapes`
- `textures` -> `rtextures`
- `text` -> `rtext`
- `models` -> `rmodels`
- `camera` -> `rcamera`
- `gestures` -> `rgestures`
- `core` -> `rcore`
All the build systems has been adapted to this change.
2021-09-22 00:15:06 +02:00