medfall

A super great game engine
Log | Files | Refs

glad.sh (433B)


      1 #! /bin/sh
      2 
      3 set -e
      4 
      5 cd libs/glad
      6 python -m glad --profile=core --api=gl=3.3 --generator=c --spec=gl --out-path gladout --omit-khrplatform \
      7 	--extensions GL_KHR_debug,GL_AMD_debug_output,GL_EXT_texture_sRGB,GL_EXT_texture_sRGB_decode,GL_EXT_texture_compression_s3tc
      8 mv gladout/src/glad.c ../../glad.cc
      9 mv gladout/include/glad/glad.h ../../glad.h
     10 rm -r gladout
     11 sed -i "s/#include <glad\\/glad\\.h>/#include \"glad.h\"/" ../../glad.cc