MCPcopy Index your code
hub / github.com/processing/processing / init

Method init

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

Source from the content-addressed store, hash-verified

889
890
891 public void init() {
892 if (glProgram == 0 || contextIsOutdated()) {
893 create();
894 if (compile()) {
895 pgl.attachShader(glProgram, glVertex);
896 pgl.attachShader(glProgram, glFragment);
897
898 setup();
899
900 pgl.linkProgram(glProgram);
901
902 validate();
903 }
904 }
905 }
906
907
908 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