Load the shader from the source text
| 6 | |
| 7 | // Load the shader from the source text |
| 8 | void gltLoadShaderSrc(const char *szShaderSrc, GLuint shader) |
| 9 | { |
| 10 | GLchar *fsStringPtr[1]; |
| 11 | |
| 12 | fsStringPtr[0] = (GLchar *)szShaderSrc; |
| 13 | glShaderSource(shader, 1, (const GLchar **)fsStringPtr, NULL); |
| 14 | } |
| 15 | |
| 16 | GLuint gltLoadShaderPair(const char *szVertexProg, const char *szFragmentProg) |
| 17 | { |