| 20 | } |
| 21 | |
| 22 | GLuint 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 | |
| 31 | int main(int argc, char *argv[]) { |
| 32 | EmscriptenWebGLContextAttributes attr; |
nothing calls this directly
no outgoing calls
no test coverage detected