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

Single-file header-only HxA loader #8

Closed
raysan5 opened this issue Sep 7, 2021 · 4 comments
Closed

Single-file header-only HxA loader #8

raysan5 opened this issue Sep 7, 2021 · 4 comments

Comments

@raysan5
Copy link

raysan5 commented Sep 7, 2021

Hi, I'd like to support HxA models loading in raylib. All the file-formats loading libraries I use are always single-file header-only, would be possible to have a similar loader for HxA file-format?

I think it would be very useful for maximum portability.

@quelsolaar
Copy link
Owner

Single header file implementations are more of a C++ thing then a C thing. The hxa.h file acts as a specification for the format. Loading the file version of HxA is not really required for some uses of the conventions so i would like to keep them separate. However, HxA is designed to be as trivial as possible to implement, so a header only C++ version would probably be a good thing to have. I however is a terrible C++ programmer so I'm probably not the right person to write it. If there is any way i can help you make the current C version easier to integrate let me know!!

@raysan5
Copy link
Author

raysan5 commented Sep 7, 2021

Thanks for your quick answer! :D

Actually I'm more used to C single-header files than C++, that's probably because C is the language I use. As you can see in the list, several 3d-model-format loaders are provided as a C single-header library, that makes them really easy to integrate in any engine.

In any case, I keep an eye on the repo in case you consider that possibility in a future.

@raysan5 raysan5 closed this as completed Sep 7, 2021
@quelsolaar
Copy link
Owner

Maybe we could do a merge of the basic loader with the HxA .h file specificly for this purpose. That should be easy. Would that help?

@raysan5
Copy link
Author

raysan5 commented Sep 8, 2021

@quelsolaar Sure! That would be perfect!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants