Posted Wednesday, 5 November, 2008 - 15:29 by the Fiddler
GL.ClearColor takes GLClampf (float between 0.0-1.0). GL.Color3 takes everything and converts it to GLClampf. OpenTK also provides a System.Drawing.Color overload for convenience.
In any case GL.Color3 is deprecated now - which, I guess, provides the answer :)
Posted Wednesday, 5 November, 2008 - 18:15 by the Fiddler
GL.VertexAttribute and a simple shader (gl_FrontColor = ...).
Talking about GL3, of course, as that's the first version to deprecate functions.
Edit: On topic, I don't think it makes sense to provide GL.ClearColor overloads - just use the built-in conversion operators of C# (or the language of your choice).
Comments
Re: Mini-issue: GL.ClearColor vs. GL.Color
GL.ClearColor takes GLClampf (float between 0.0-1.0). GL.Color3 takes everything and converts it to GLClampf. OpenTK also provides a System.Drawing.Color overload for convenience.
In any case GL.Color3 is deprecated now - which, I guess, provides the answer :)
Re: Mini-issue: GL.ClearColor vs. GL.Color
So what replaces GL.Color3..?
Or you mean deprecated by GL3?
Re: Mini-issue: GL.ClearColor vs. GL.Color
GL.VertexAttribute and a simple shader (gl_FrontColor = ...).
Talking about GL3, of course, as that's the first version to deprecate functions.
Edit: On topic, I don't think it makes sense to provide GL.ClearColor overloads - just use the built-in conversion operators of C# (or the language of your choice).