mirror of
https://github.com/Ryujinx/Opentk.git
synced 2025-02-25 09:56:48 +00:00
Added int overloads to [Vertex|Normal|Index|Color]Pointer, to avoid issues with the object vs IntPtr overloads.
This commit is contained in:
parent
0ab939a744
commit
66ceeb03d0
|
@ -983,6 +983,30 @@ namespace OpenTK.Graphics
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
#region [Vertex|Normal|Index|Color]Pointer
|
||||||
|
|
||||||
|
public static void VertexPointer(int size, VertexPointerType type, int stride, int pointer)
|
||||||
|
{
|
||||||
|
VertexPointer(size, type, stride, (IntPtr)pointer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void NormalPointer(int size, NormalPointerType type, int stride, int pointer)
|
||||||
|
{
|
||||||
|
NormalPointer(type, stride, (IntPtr)pointer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void IndexPointer(IndexPointerType type, int stride, int pointer)
|
||||||
|
{
|
||||||
|
IndexPointer(type, stride, (IntPtr)pointer);
|
||||||
|
}
|
||||||
|
|
||||||
|
public static void ColorPointer(int size, ColorPointerType type, int stride, int pointer)
|
||||||
|
{
|
||||||
|
ColorPointer(size, type, stride, (IntPtr)pointer);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue