Lines Matching refs:shaderProgram
329 @Output shaderProgram Handle to a shader program containing the fragment and vertex shader
333 -(BOOL) initialiseFragmentShader:(GLuint &)fragmentShader andVertexShader:(GLuint &)vertexShader withProgram:(GLuint &)shaderProgram
432 shaderProgram = glCreateProgram();
435 glAttachShader(shaderProgram, fragmentShader);
436 glAttachShader(shaderProgram, vertexShader);
439 glBindAttribLocation(shaderProgram, VERTEX_ARRAY, "myVertex");
442 glLinkProgram(shaderProgram);
446 glGetProgramiv(shaderProgram, GL_LINK_STATUS, &isLinked);
451 glGetProgramiv(shaderProgram, GL_INFO_LOG_LENGTH, &infoLogLength);
455 glGetProgramInfoLog(shaderProgram, infoLogLength, &charactersWritten, infoLog);
470 glUseProgram(shaderProgram);