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

Method createProgram

core/src/processing/opengl/PGL.java:2041–2055  ·  view source on GitHub ↗
(int vertexShader, int fragmentShader)

Source from the content-addressed store, hash-verified

2039
2040
2041 protected int createProgram(int vertexShader, int fragmentShader) {
2042 int program = createProgram();
2043 if (program != 0) {
2044 attachShader(program, vertexShader);
2045 attachShader(program, fragmentShader);
2046 linkProgram(program);
2047 if (!linked(program)) {
2048 System.err.println("Could not link program: ");
2049 System.err.println(getProgramInfoLog(program));
2050 deleteProgram(program);
2051 program = 0;
2052 }
2053 }
2054 return program;
2055 }
2056
2057
2058 protected boolean compiled(int shader) {

Callers 3

initTex2DShaderMethod · 0.95
initTexRectShaderMethod · 0.95
GLResourceShaderMethod · 0.45

Calls 6

attachShaderMethod · 0.95
linkProgramMethod · 0.95
linkedMethod · 0.95
getProgramInfoLogMethod · 0.95
deleteProgramMethod · 0.95
printlnMethod · 0.45

Tested by

no test coverage detected