MCPcopy Index your code
hub / github.com/benfry/processing4 / containsVersionDirective

Method containsVersionDirective

core/src/processing/opengl/PGL.java:2053–2064  ·  view source on GitHub ↗
(String[] shSrc)

Source from the content-addressed store, hash-verified

2051 }
2052
2053 protected static boolean containsVersionDirective(String[] shSrc) {
2054 for (String line : shSrc) {
2055 int versionIndex = line.indexOf("#version");
2056 if (versionIndex >= 0) {
2057 int commentIndex = line.indexOf("//");
2058 if (commentIndex < 0 || versionIndex < commentIndex) {
2059 return true;
2060 }
2061 }
2062 }
2063 return false;
2064 }
2065
2066 protected int createShader(int shaderType, String source) {
2067 int shader = createShader(shaderType);

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected