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

Function create_program

test/browser/html5_webgl.c:21–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21GLuint create_program(GLuint vertexShader, GLuint fragmentShader) {
22 GLuint program = glCreateProgram();
23 glAttachShader(program, vertexShader);
24 glAttachShader(program, fragmentShader);
25 glBindAttribLocation(program, 0, "apos");
26 glBindAttribLocation(program, 1, "acolor");
27 glLinkProgram(program);
28 return program;
29}
30
31int main() {
32 EmscriptenWebGLContextAttributes attrs;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected