(String line, ShaderOption[] ops)
| 1797 | } |
| 1798 | |
| 1799 | private static String applyOptions(String line, ShaderOption[] ops) |
| 1800 | { |
| 1801 | if (ops != null && ops.length > 0) |
| 1802 | { |
| 1803 | for (int i = 0; i < ops.length; ++i) |
| 1804 | { |
| 1805 | ShaderOption shaderoption = ops[i]; |
| 1806 | |
| 1807 | if (shaderoption.matchesLine(line)) |
| 1808 | { |
| 1809 | line = shaderoption.getSourceLine(); |
| 1810 | break; |
| 1811 | } |
| 1812 | } |
| 1813 | |
| 1814 | return line; |
| 1815 | } |
| 1816 | else |
| 1817 | { |
| 1818 | return line; |
| 1819 | } |
| 1820 | } |
| 1821 | |
| 1822 | public static ArrayList listOfShaders() |
| 1823 | { |
no test coverage detected