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

Method createProgram

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

Source from the content-addressed store, hash-verified

2080
2081
2082 protected int createProgram(int vertexShader, int fragmentShader) {
2083 int program = createProgram();
2084 if (program != 0) {
2085 attachShader(program, vertexShader);
2086 attachShader(program, fragmentShader);
2087 linkProgram(program);
2088 if (!linked(program)) {
2089 System.err.println("Could not link program: ");
2090 System.err.println(getProgramInfoLog(program));
2091 deleteProgram(program);
2092 program = 0;
2093 }
2094 }
2095 return program;
2096 }
2097
2098
2099 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