Description
Source
Call Graph
Start Line: 44
void ShaderObject::loadShader(const char *fileName)
{
// Check for compilation of the shader
GLint compiled;
// Load shader source code
GLcharARB* source = getFileContents(fileName);
// Load source code into shaders
glShaderSourceARB(shader, 1, (const char **)&source, 0);
// Delete the shader source code
delete[] source;
// Compile the shader and print out the log file
glCompileShaderARB(shader);
glGetObjectParameterivARB(shader, GL_OBJECT_COMPILE_STATUS_ARB, &compiled);
assert(compiled && "The shader could not be compiled");
}