Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift Package with cpp interop for original GLM library #375

Open
masters3d opened this issue Dec 17, 2023 · 2 comments
Open

Swift Package with cpp interop for original GLM library #375

masters3d opened this issue Dec 17, 2023 · 2 comments
Labels

Comments

@masters3d
Copy link

hi,
now that swift has support for cpp interoperability, I am curious if anybody knows of a swift package version of the https://github.com/g-truc/glm?

@gottfriedleibniz
Copy link

You should look for another mathematics library... Preferably this one!

GLM in its present state is barely maintained. "Recent" changes (as of 2021) have broke backwards compatibility. Even more recent changes (Nov 8th) have put the upstream version of the library into an unusable/uncompilable state.

Ever since the issues section was removed from that repository it has become incredibly difficult to track all of the bugs present in that library (and there are many of them).

@recp
Copy link
Owner

recp commented Dec 22, 2023

cglm has Swift Package :) Also in the future, cglm may add basic C++ operations like operator overloading ( +=, *=, `-= ) and some other helpers to struct types if target is C++. In this case cglm may take advantage of C++ interop with Swift too.

For now cglm provides cglm/applesimd.h to make it easier to convert cglm -> Apple's simd. Since alignment requirements may be different conversion like this is required I guess.

@recp recp added the Q & A label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants