MIT license - @keyle, @domhathair
This is a converter from raylib's traditional PascalCase/camelCase to lowercase snake_case.
NOTE: this converter is NOT part of the raylib library (https://www.raylib.com/) and is provided "as-is".
- Creates macros for all "FunctionName" to "r*_function_name";
- Creates macros for all "TypeName" to "type_name_t";
- Saves the content into "raylib_s.h" and "raymath_s.h".
This approach is non-destructive, so you can copy-paste a raylib examples, they will work then eventually rewrite it to snake_case and it will work just the same.
There is also no cost added at runtime.
- git clone https://github.com/domhathair/raylib-converter-bash.git && cd raylib-converter-bash
- chmod +x converter.sh
- ./converter.sh <path_to_raylib_folder>
- If all goes well, you should have an additional files "raylib_s.h" and "raymath_s.h";
- #include "raylib_s.h" instead of "raylib.h" but keep it as it's not a replacement.