Skip to content

raylib v6.0 #376

Closed
Closed

Description

@execphantasmagoria

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

  1. Create a project with submodules of raylib and raylib-cpp from latest branch
  2. Link raylib and raylib-cpp to your target executable
  3. 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!

Activity

  1. RobLoach commented on Mar 1, 2026

    @RobLoach
    Owner

    This is true. For raylib 4 vs raylib 5, we had a next branch going before it became master. If you send a PR to update to raylib 6, then I could set up.

  2. execphantasmagoria commented on Mar 1, 2026

    @execphantasmagoria
    ContributorAuthor

    I will update other things once I confirm there are no silent errors. Thank you for your consideration

  3. RobLoach commented on Mar 3, 2026

    @RobLoach
    Owner

    Most excellent. Opened up at #379 .

  4. changed the title [-]The API is outdated for raylib v6.0[/-] [+]raylib v6.0[/+] on Mar 23, 2026
  5. RobLoach commented on Apr 23, 2026

    @RobLoach
    Owner

    Thanks! Made a release with 6.0 support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions