MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / CreateProgram

Function CreateProgram

test/browser/webgl_explicit_uniform_location.c:22–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22GLuint CreateProgram(GLuint vertexShader, GLuint fragmentShader) {
23 GLuint program = glCreateProgram();
24 glAttachShader(program, vertexShader);
25 glAttachShader(program, fragmentShader);
26 glBindAttribLocation(program, 0, "apos");
27 glLinkProgram(program);
28 return program;
29}
30
31int main(int argc, char *argv[]) {
32 EmscriptenWebGLContextAttributes attr;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected