Skip to content

Instantly share code, notes, and snippets.

@hosseinzoda
Last active April 8, 2018 15:55
Show Gist options
  • Save hosseinzoda/8d2622794e2162c9a739e90a4b8b050c to your computer and use it in GitHub Desktop.
Save hosseinzoda/8d2622794e2162c9a739e90a4b8b050c to your computer and use it in GitHub Desktop.
Write static strings as variable, e.x glsl shaders
# file2var does generate code to have files as strings in languages like javascript, c
# https://github.com/aminbros/file2var
file2var txt2cstr -p js -o ../src/programs.js *.glsl
# output file is js file containing all .glsl files named with their filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment