| 160 | file.write(INDENT + 'return ' + functionName + '(mxp_in);\n') |
| 161 | |
| 162 | def _writeOperatorFunc(file, outputType, arg1, functionName, arg2): |
| 163 | if outputType == 'color4': |
| 164 | file.write(INDENT + 'return mk_color4(mk_float4(' + arg1 +') ' + functionName + ' mk_float4(' + arg2 + '));\n') |
| 165 | elif outputType == 'float3x3' or outputType == 'float4x4': |
| 166 | file.write(INDENT + 'return ' + outputType + '(' + arg1 + ') ' + functionName + ' ' + outputType + '(' + arg2 + ');\n') |
| 167 | else: |
| 168 | file.write(INDENT + 'return ' + arg1 + ' ' + functionName + ' ' + arg2 + ';\n') |
| 169 | |
| 170 | def _writeTwoArgumentFunc(file, outputType, functionName, arg1="mxp_in1", arg2="mxp_in2"): |
| 171 | if outputType == 'color4': |