RobLoach / raylib-cpp

C++ Object Oriented Wrapper for raylib
https://robloach.github.io/raylib-cpp/
zlib License
675 stars 87 forks source link

Add missing const #333

Closed Maneren closed 1 month ago

Maneren commented 1 month ago

Hi, I believe there is supposed to be a const here to match the C version.

RLAPI void DrawLineStrip(const Vector2 *points, int pointCount, Color color);

https://github.com/raysan5/raylib/blob/master/src%2Fraylib.h#L1242

Maneren commented 1 month ago

Sorry, I‌ just noticed this library officially supports only raylib 5.0, but the upstream const was added in a newer version.

RobLoach commented 1 month ago

Thanks! There is the next branch for 5+ raylib https://github.com/RobLoach/raylib-cpp/tree/next

Feel free to submit any changes there :wink:

RobLoach commented 1 month ago

https://github.com/RobLoach/raylib-cpp/pull/316