Updated according to the new enums.

This commit is contained in:
the_fiddler 2008-01-04 20:55:52 +00:00
parent 33495b5d63
commit bbb38b9271

View file

@ -90,14 +90,14 @@ namespace Examples.Tutorial
int status_code; int status_code;
string info; string info;
vertexObject = GL.CreateShader(ShaderObjectType.VertexShader); vertexObject = GL.CreateShader(ShaderType.VertexShader);
fragmentObject = GL.CreateShader(ShaderObjectType.FragmentShader); fragmentObject = GL.CreateShader(ShaderType.FragmentShader);
// Compile vertex shader // Compile vertex shader
GL.ShaderSource(vertexObject, vs); GL.ShaderSource(vertexObject, vs);
GL.CompileShader(vertexObject); GL.CompileShader(vertexObject);
GL.GetShaderInfoLog(vertexObject, out info); GL.GetShaderInfoLog(vertexObject, out info);
GL.GetShader(vertexObject, Version20.CompileStatus, out status_code); GL.GetShader(vertexObject, ShaderParameter.CompileStatus, out status_code);
if (status_code != 1) if (status_code != 1)
throw new ApplicationException(info); throw new ApplicationException(info);
@ -106,7 +106,7 @@ namespace Examples.Tutorial
GL.ShaderSource(fragmentObject, fs); GL.ShaderSource(fragmentObject, fs);
GL.CompileShader(fragmentObject); GL.CompileShader(fragmentObject);
GL.GetShaderInfoLog(fragmentObject, out info); GL.GetShaderInfoLog(fragmentObject, out info);
GL.GetShader(fragmentObject, Version20.CompileStatus, out status_code); GL.GetShader(fragmentObject, ShaderParameter.CompileStatus, out status_code);
if (status_code != 1) if (status_code != 1)
throw new ApplicationException(info); throw new ApplicationException(info);