Пример #1
0
 // <DEFINENAME> [ ":" <PARAMNAME> ]
 private void readDefine(String statement) throws IOException {
   String[] split = statement.split(":");
   if (split.length == 1) {
     // add preset define
     technique.addShaderPresetDefine(split[0].trim(), VarType.Boolean, true);
   } else if (split.length == 2) {
     technique.addShaderParamDefine(split[1].trim(), split[0].trim());
   } else {
     throw new IOException("Define syntax incorrect");
   }
 }