forgot to add this one too

This commit is contained in:
Gered 2013-08-11 18:18:13 -04:00
parent c242935a3c
commit 75724d9139

View file

@ -758,6 +758,14 @@ namespace PortableGL
glVertexAttrib4fv(index, new IntPtr((long)ptr));
}
}
public unsafe void glVertexAttribPointer<T>(int index, int size, int type, bool normalized, int stride, T[] pointer) where T : struct
{
fixed (void *ptr = pointer)
{
glVertexAttribPointer(index, size, type, normalized, stride, new IntPtr((long)ptr));
}
}
}
}