Fixed GetShader to use the new enums. Added PointParameter helper overload.
This commit is contained in:
parent
45a0bb7c7d
commit
844d262df2
1 changed files with 17 additions and 1 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue