Repository navigation
raylib v6.0 #376
Copy link
Copy link
Closed
Description
Overview
Recently I tried using raylib and raylib-cpp for my project and realised that raylib has had some changes in how it handles animations. This library has yet to update the references to the new structures and reflect changes in procedures.
Steps To Reproduce
- Create a project with submodules of raylib and raylib-cpp from latest branch
- Link raylib and raylib-cpp to your target executable
- Build and Compile with Ninja, Clang and CMake
Expected Error Output
lude\./Model.hpp(243): error C2065: 'boneCount': undeclared identifier
...\thirdparty\raylib-cpp\include\./Model.hpp(243): error C2039: 'boneCount': is not a member of 'Model'
...\thirdparty\raylib\src\raylib.h(415): note: see declaration of 'Model'
...\thirdparty\raylib-cpp\include\./Model.hpp(244): error C2065: 'bones': undeclared identifier
...\thirdparty\raylib-cpp\include\./Model.hpp(244): error C2039: 'bones': is not a member of 'Model'
...\thirdparty\raylib\src\raylib.h(415): note: see declaration of 'Model'
...\thirdparty\raylib-cpp\include\./Model.hpp(245): error C2065: 'bindPose': undeclared identifier
...\thirdparty\raylib-cpp\include\./Model.hpp(245): error C2039: 'bindPose': is not a member of 'Model'
...\thirdparty\raylib\src\raylib.h(415): note: see declaration of 'Model'
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(38): error C2065: 'boneIds': undeclared identifier
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(40): error C2065: 'boneMatrices': undeclared identifier
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(133): error C2065: 'boneIds': undeclared identifier
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(245): error C2065: 'boneIds': undeclared identifier
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(245): error C2039: 'boneIds': is not a member of 'Mesh'
...\thirdparty\raylib\src\raylib.h(343): note: see declaration of 'Mesh'
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(247): error C2065: 'boneMatrices': undeclared identifier
...\thirdparty\raylib-cpp\include\./MeshUnmanaged.hpp(247): error C2039: 'boneMatrices': is not a member of 'Mesh'
...\thirdparty\raylib\src\raylib.h(343): note: see declaration of 'Mesh'
...\thirdparty\raylib-cpp\include\./Mesh.hpp(51): error C2039: 'boneIds': is not a member of 'raylib::Mesh'
...\thirdparty\raylib-cpp\include\./Mesh.hpp(20): note: see declaration of 'raylib::Mesh'
...\thirdparty\raylib-cpp\include\./Mesh.hpp(76): error C2039: 'boneIds': is not a member of 'raylib::Mesh'
...\thirdparty\raylib-cpp\include\./Mesh.hpp(20): note: see declaration of 'raylib::Mesh'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(25): error C2039: 'frameCount': is not a member of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(15): note: see declaration of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(26): error C2039: 'bones': is not a member of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(15): note: see declaration of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(27): error C2039: 'framePoses': is not a member of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(15): note: see declaration of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(46): error C2065: 'bones': undeclared identifier
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(47): error C2065: 'frameCount': undeclared identifier
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(48): error C2065: 'framePoses': undeclared identifier
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(66): error C2039: 'frameCount': is not a member of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(15): note: see declaration of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(67): error C2039: 'bones': is not a member of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(15): note: see declaration of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(68): error C2039: 'framePoses': is not a member of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(15): note: see declaration of 'raylib::ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(76): error C2039: 'UnloadModelAnimation': is not a member of '`global namespace''
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(76): error C3861: 'UnloadModelAnimation': identifier not found
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(90): error C2039: 'UpdateModelAnimationBones': is not a member of '`global namespace''
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(90): error C3861: 'UpdateModelAnimationBones': identifier not found
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(101): error C2065: 'frameCount': undeclared identifier
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(101): error C2039: 'frameCount': is not a member of 'ModelAnimation'
...\thirdparty\raylib\src\raylib.h(433): note: see declaration of 'ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(102): error C2065: 'bones': undeclared identifier
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(102): error C2039: 'bones': is not a member of 'ModelAnimation'
...\thirdparty\raylib\src\raylib.h(433): note: see declaration of 'ModelAnimation'
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(103): error C2065: 'framePoses': undeclared identifier
...\thirdparty\raylib-cpp\include\./ModelAnimation.hpp(103): error C2039: 'framePoses': is not a member of 'ModelAnimation'
...\thirdparty\raylib\src\raylib.h(433): note: see declaration of 'ModelAnimation'
ninja: build stopped: subcommand failed.
Additional Details
IDE used: Visual Studio 18 2026
OS and Architecture: Windows 11, x86
I have patched the errors after looking through the code and after further testing to ensure things work, I will send forward a PR. Thank you for your continued work on this project!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Activity
RobLoach commentedon Mar 1, 2026
This is true. For raylib 4 vs raylib 5, we had a
nextbranch going before it became master. If you send a PR to update to raylib 6, then I could set up.execphantasmagoria commentedon Mar 1, 2026
I will update other things once I confirm there are no silent errors. Thank you for your consideration
RobLoach commentedon Mar 3, 2026
Most excellent. Opened up at #379 .
[-]The API is outdated for raylib v6.0[/-][+]raylib v6.0[/+]RobLoach commentedon Apr 23, 2026
Thanks! Made a release with 6.0 support.