Fixed GetShader to use the new enums. Added PointParameter helper overload.

This commit is contained in:
the_fiddler 2008-01-04 17:16:43 +00:00
parent 45a0bb7c7d
commit 844d262df2

View file

@ -727,7 +727,7 @@ namespace OpenTK.OpenGL
unsafe
{
int length;
GL.GetShader(shader, Version20.InfoLogLength, out length);
GL.GetShader(shader, ShaderParameter.InfoLogLength, out length);
if (length == 0)
{
info = "";
@ -741,6 +741,22 @@ namespace OpenTK.OpenGL
#endregion
#region public static void PointParameter(PointSpriteCoordOriginParameter param)
/// <summary>
/// Helper function that defines the coordinate origin of the Point Sprite.
/// </summary>
/// <param name="param">
/// A OpenTK.OpenGL.GL.PointSpriteCoordOriginParameter token,
/// denoting the origin of the Point Sprite.
/// </param>
public static void PointParameter(PointSpriteCoordOriginParameter param)
{
GL.PointParameter(PointParameterName.PointSpriteCoordOrigin, (int)param);
}
#endregion
#endregion
}
}