-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
C++ compiler support #5232
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
C++ compiler support #5232
Conversation
I would appreciate it if somebody could review this and suggest how I can improve this. I dont think my solutions for aggregate initializers is good, but I am not sure how to improve it. |
@sakgoyal Thanks for the review, I see multiple improvements that can be implemented but I'm afraid external libraries should not be modified on raylib side because once updated to latest versions, changes will be lost. Still, some of the them are managed by me so only libraries managed by other developers will suffer that fate. I also see some specific changes that I don't understand why are required. Added some notes. Also, about coding conventions, raylib uses a space before asterix on casting, please, could you review that? (i.e. |
{ | ||
drwav wav = { 0 }; | ||
#ifdef __cplusplus | ||
drwav_data_format format = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this is required? I prefer to avoid it.
void *data = NULL; | ||
|
||
#ifdef __cplusplus | ||
cgltf_options options = {}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to avoid the __cplusplus check only for that.
I will revert GLFW and qoa. is my fix for RGFW seems to be introducing some breaking changes for v1.8 (removing gamepad support, and more). so that will require a rework of the RGFW backend in raylib. for now, I think backporting this change is useful for now while 1.8 is being worked on |
Cross compile c and msvc c++ support
@sakgoyal Yees, |
The tool can work with other libraries following `raylib.h` structure, keeping the `raylib_parser` name could be missleading. Also added an icon an reviewed Makefile an CI.
Co-authored-by: pyrokn8 <202429796+pyrokn8@users.noreply.github.com>
* ADDED: example: shapes_recursive_tree * [examples] Added shapes_recursive_tree * [examples] shapes_recursive_tree: adjustments * Reduced tree depth from 12 to 10 * new shapes_recursive_tree.png * follow the conventions * follow the conventions 2
* [examples] Add shapes_triangle_strip * Remove functions
* ADDED: example: `shapes_kaleidoscope` * Add line reflection * Updated with `rexm update` * Follow raylib's conventions
Oh man I messed up the force push. Let me try fixing this. I am going to close this an open a new PR. Not sure how to resolve this. |
Allow C++ compilers to compile this code without separately linking as a C library.
Changes:
keyMappingRGFW