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

Function create_program

test/browser/webgl_sample_query.c:55–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53}
54
55GLuint create_program(GLuint vert, GLuint frag) {
56 GLuint program = glCreateProgram();
57 GL_CALL(glAttachShader(program, vert));
58 GL_CALL(glAttachShader(program, frag));
59 GL_CALL(glBindAttribLocation(program, 0, "position"));
60 GL_CALL(glLinkProgram(program));
61 return program;
62}
63
64int main() {
65 EmscriptenWebGLContextAttributes attrs;

Callers 1

mainFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected