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

Method init

core/src/processing/opengl/PShader.java:900–914  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

898
899
900 public void init() {
901 if (glProgram == 0 || contextIsOutdated()) {
902 create();
903 if (compile()) {
904 pgl.attachShader(glProgram, glVertex);
905 pgl.attachShader(glProgram, glFragment);
906
907 setup();
908
909 pgl.linkProgram(glProgram);
910
911 validate();
912 }
913 }
914 }
915
916
917 protected void create() {

Callers 3

bindMethod · 0.95
getAttributeLocMethod · 0.95
getUniformLocMethod · 0.95

Calls 7

contextIsOutdatedMethod · 0.95
createMethod · 0.95
compileMethod · 0.95
setupMethod · 0.95
validateMethod · 0.95
attachShaderMethod · 0.45
linkProgramMethod · 0.45

Tested by

no test coverage detected