So I've been trying to teach myself how to OpenGL, and there are
errors whenever I try to compile my shaders.
Errors are : http://i.imgur.com/5hRaQL8.png
My shader code is as follows:
///
#version 130
attribute vec3 position;
void main()
{
gl_Position = vec4(position,1.0);
}
///
My shader loader code is :
//
string loadShader(string fileName){
File file = File(fileName,"r");
string line;
line = string.init;
while(!file.eof()){
line ~= file.readln();
}
writeln(line);
return line;
}//
Through my constant "googling" on the internet, I've seen many
countless answers to the loader code not appending '\n' to each
newline when it reads the new code.
It was not the case: http://i.imgur.com/6mWSs4S.png ;
So with that, I don't have any leads. Any ideas?
My graphics card is an Intel HD 5000, and GPU is AMD Radeon HD
7670M which supports OpenGL 3.0.