Lines Matching full:shader
49 GLuint shader;
51 if (!(shader = glCreateShader(shaderType)))
54 glShaderSource(shader, 1, &src, NULL);
55 glCompileShader(shader);
56 glGetShaderiv(shader, GL_COMPILE_STATUS, &status);
59 return shader;
61 glGetShaderiv(shader, GL_INFO_LOG_LENGTH, &len);
65 glGetShaderInfoLog(shader, len, NULL, msg);
67 fprintf(stderr, "error compiling shader:\n%s\n", msg);
71 glDeleteShader(shader);