From 75724d913913c4730ee64faa4c638889fe79b5e3 Mon Sep 17 00:00:00 2001 From: gered Date: Sun, 11 Aug 2013 18:18:13 -0400 Subject: [PATCH] forgot to add this one too --- PortableGL/GL20Helpers.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PortableGL/GL20Helpers.cs b/PortableGL/GL20Helpers.cs index 55802d7..7d38aed 100644 --- a/PortableGL/GL20Helpers.cs +++ b/PortableGL/GL20Helpers.cs @@ -758,6 +758,14 @@ namespace PortableGL glVertexAttrib4fv(index, new IntPtr((long)ptr)); } } + + public unsafe void glVertexAttribPointer(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)); + } + } } }