Added int overloads to [FogCoord|EdgeFlag|VertexAttrib]Pointer, to avoid issues with the object vs IntPtr overloads.

This commit is contained in:
the_fiddler 2009-01-29 00:37:08 +00:00
parent 4d98cf56fb
commit 561b90a0eb

View file

@ -983,7 +983,7 @@ namespace OpenTK.Graphics
#endregion
#region [Vertex|Normal|Index|Color]Pointer
#region [Vertex|Normal|Index|Color|FogCoord|VertexAttrib]Pointer
public static void VertexPointer(int size, VertexPointerType type, int stride, int pointer)
{
@ -1005,6 +1005,21 @@ namespace OpenTK.Graphics
ColorPointer(size, type, stride, (IntPtr)pointer);
}
public static void FogCoordPointer(int size, FogPointerType type, int stride, int pointer)
{
FogCoordPointer(type, stride, (IntPtr)pointer);
}
public static void EdgeFlagPointer(int stride, int pointer)
{
EdgeFlagPointer(stride, (IntPtr)pointer);
}
public static void VertexAttribPointer(int index, int size, VertexAttribPointerType type, bool normalized, int stride, int pointer)
{
VertexAttribPointer(index, size, type, normalized, stride, (IntPtr)pointer);
}
#endregion
#endregion