⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 glsl_to_include.sh

📁 奇趣公司比较新的qt/emd版本
💻 SH
字号:
#! /bin/sh# Compile a .glsl file to a file that can be included in a C++ programUSAGE="Usage: $0 <file.glsl>"CGC=cgcCGC_PROFILE=arbfp1if test $# -ne 1then    echo $USAGE    exit 1fiGLSL_FILE=$1FRAG_FILE=`basename $1 .glsl`.frag#GLSL_INC_FILE=`basename $1 .glsl`.glsl_quotedecho "// Generated by src/opengl/util/$0 from $1" > $FRAG_FILE$CGC -quiet -oglsl -profile $CGC_PROFILE $GLSL_FILE | while read linedo   if test `echo $line | cut -c1` != "#"   then      echo -e \"$line\" >> $FRAG_FILE   fidoneecho "; // Generated by src/opengl/util/$0 from $1" >> $FRAG_FILE#echo "// Generated by src/opengl/util/$0 from $1" > $GLSL_INC_FILE#cat $GLSL_FILE | while read line#do#      printf \"%s\\\\n\"\\n "$line" >> $GLSL_INC_FILE#done#echo "; // Generated by src/opengl/util/$0 from $1" >> $GLSL_INC_FILE

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -