Skip to content

domhathair/raylib-converter-bash

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 

Repository files navigation

snake_case converter for raylib.h / raymath.h

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".

Process:

  • 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.

Usage:

  • 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.

About

snake_case raylib.h / raymath.h

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%