Commit Graph

616 Commits

Author SHA1 Message Date
Le Juez Victor
93e7885bc4 add Window::GetMonitor() method 2025-03-13 18:53:02 +01:00
Rob Loach
7d41ebe7a2 Merge pull request #350 from humz2k/master
Change const char** to const char* const* in TextSplit
2025-03-01 14:06:56 -05:00
Humza Qureshi
536e7d01df change const char** to const char* const* in TextSplit
::TextSplit returns a char** now, so you can't cast to a const char** implicitly. By specifying const char* const*, we allow implicit conversions from both char** and const char**. The strings are copied into the vector anyway, so adding the extra const specifier changes nothing.
2025-02-05 15:01:55 -05:00
StillGreen-san
e54015953e reset bytesRead in FileData::Unload 2025-02-03 10:29:23 -05:00
StillGreen-san
0186631967 fix memory leak in FileData::Load 2025-02-03 10:29:23 -05:00
Rob Loach
872556df94 Fix some example C++ Warnings 2024-12-18 02:41:49 -05:00
Rob Loach
6e4a8525d4 Merge pull request #341 from Bigfoot71/master
Security and clarity improvements
2024-12-16 00:02:38 -05:00
Bigfoot71
2a1738e3ad update TextureUnmanaged
Added nodiscard, I forgot this file
2024-12-15 22:45:46 +01:00
Bigfoot71
7a8a6ebeef fix warnings 2024-12-15 22:39:31 +01:00
Bigfoot71
d9b3334854 remove unnecessary inclusiosn 2024-12-15 22:35:01 +01:00
Bigfoot71
1917faf378 adding noexcept to move constructors 2024-12-15 22:22:34 +01:00
Bigfoot71
cffed168a1 tweaks 2024-12-15 22:19:33 +01:00
Rob Loach
c283b731b0 Have Texture::GetSize() return a raylib::Vector2 2024-12-07 22:42:40 -05:00
Rob Loach
cc3e2e0ee6 Fix Mesh default properties 2024-12-07 22:39:44 -05:00
Rob Loach
16605e9dd0 Merge pull request #340 from GaniAliguzhinov/fix-mesh-unmanaged
Adding boneMatrices to MeshUnmanaged to fix double free
2024-12-07 22:37:26 -05:00
Gani Aliguzhinov
b0123116be Adding boneMatrices to MeshUnmanaged to fix double free
I noticed a bug when trying out the models_first_person_maze
example, that sometimes a double free occurs on UnloadMesh
when destructor of MeshUnmanaged is called. The offending line
is Line 1935 from rmodels.c from raylib, where
RL_FREE(mesh.boneMatrices) is called. To remedy this, I added
a default assignment of nullptr to boneMatrices and explicit
assignment throught the set method.
2024-12-08 03:24:16 +01:00
Rob Loach
6d9d02cd24 Merge pull request #316 from RobLoach/next
Update to raylib 5.5
2024-11-18 18:25:31 -05:00
Rob Loach
96aaff597a Update to raylib 5.5 2024-11-18 18:22:55 -05:00
Rob Loach
3a6e7bbdd3 Remove duplicate operator statements (#338)
* Remove duplicate operator statements

* Make raylib not introduce the operators
2024-11-14 13:33:56 -05:00
Rob Loach
7b9fd03cac Merge branch 'master' of github.com:RobLoach/raylib-cpp into next 2024-10-16 11:22:39 -04:00
Rob Loach
7581b1d50e Revert "Add missing const"
This reverts commit 9a579b1489.
2024-10-16 11:21:22 -04:00
Rob Loach
f2ec83838c Update raylib 2024-10-16 11:20:57 -04:00
Rob Loach
948a2de388 Merge branch 'master' of github.com:RobLoach/raylib-cpp into next 2024-10-16 11:17:03 -04:00
Rob Loach
8ab70ae76a Merge pull request #334 from realstealthninja/patch-1
docs: Camera2D mentions GetWorldToScreen() converts coordinates to 3d
2024-10-16 11:15:41 -04:00
Rob Loach
cfc804287b Merge pull request #333 from Maneren/master
Add missing const
2024-10-16 11:14:40 -04:00
realstealthninja
8da0fb06c9 docs: change 3d to 2d 2024-10-16 20:13:44 +05:30
Maneren
9a579b1489 Add missing const 2024-10-15 01:06:42 +02:00
Rob Loach
a63ee3f76a Merge branch 'master' of github.com:RobLoach/raylib-cpp into next 2024-08-31 13:24:24 -04:00
Rob Loach
09b029d6b3 Merge pull request #332 from furudbat/feature/clang-format
Add Code Formatting (#331)
2024-08-31 13:23:08 -04:00
furudbat
21187d203f Update .clang-format 2024-08-31 18:38:51 +02:00
furudbat
9f474c0b17 Formatting 2024-08-31 17:04:54 +02:00
furudbat
f1ed8cd11e Add .clang-format 2024-08-31 17:02:44 +02:00
Rob Loach
4c3e25cb40 Merge pull request #329 from furudbat/feature/issue-299-shader-unmanged
Add ShaderUnmanaged
2024-08-30 14:30:27 -04:00
furudbat
514bf04541 Add ShaderUnmanaged 2024-07-09 15:13:13 +02:00
Rob Loach
59ab49a0f8 Merge pull request #328 from kyomawolf/master
Fixed wrong returnvalue of GetKey- and GetChar-pressed functions
2024-07-07 16:32:36 -04:00
kyomawolf
1883df07a2 Fixed wrong returnvalue of GetKey- and GetChar-pressed functions 2024-07-07 20:22:30 +02:00
Rob Loach
1ef7ddbba1 v5.0.2 2024-06-27 15:58:44 -04:00
Rob Loach
2d18aaa03a Merge pull request #325 from Arcod7/master
Add copy name in ModelAnimation
2024-06-19 10:37:24 -04:00
Arcod7
7307816124 Add copy name in ModelAnimation 2024-06-19 14:43:49 +02:00
Rob Loach
6a5286c1bc Merge pull request #320 from RobLoach/drawroundedlines
Fix compatibility with DrawRectangleRoundedLines
2024-05-28 14:51:27 -04:00
Rob Loach
8c4322570c Merge branch 'drawroundedlines' of github.com:RobLoach/raylib-cpp into next 2024-05-28 14:51:08 -04:00
Rob Loach
0b727bd819 Merge branch 'master' of github.com:RobLoach/raylib-cpp into next 2024-05-28 14:48:34 -04:00
Rob Loach
3b8fe30ca0 Merge pull request #322 from RobLoach/bring-in-wayland-fix
Disable wayland
2024-05-28 14:48:25 -04:00
Rob Loach
a9e949333f Fix cpplint notices (#321) 2024-05-28 14:47:39 -04:00
Rob Loach
e117852a2b Disable wayland 2024-05-28 14:46:32 -04:00
Rob Loach
dd3b8e34d5 Clean up DrawRectangleRoundedLines 2024-05-28 11:49:47 -04:00
Rob Loach
3eb09fe28f Merge pull request #319 from RobLoach/versions
Update AutomationEventList usage
2024-05-28 11:39:53 -04:00
Rob Loach
8f1689d1a3 Update AutomationEventList usage 2024-05-28 11:03:05 -04:00
Rob Loach
1a45d71bfc Disable wayland 2024-05-04 15:43:47 -04:00
Rob Loach
2b76a33413 Update raylib in the branch 2024-05-04 15:41:01 -04:00