
Add overloads for TexCoordPointer and NormalPointer
Posted Monday, 16 November, 2009 - 23:38 by kanato| Project: | The Open Toolkit library |
| Version: | 1.0-beta-2 |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
GL.VertexPointer, GL.ColorPointer and GL.IndexPointer have an overload where the last parameter is an int, which is cast to an IntPtr internally. GL.TexCoordPointer and GL.NormalPointer should have equivalent overloads, but they are missing from the 1.0 beta branch. Also, it might be prudent to have a similar overload for GL.DrawElements as well.


Comments
#1
A NormalPointer overload actually exists, but its signature is invalid. I am going to consider this a bug and fix it both in 1.0 and trunk.
Historic notes: these overloads were added at a time when passing an
intwould cause an immediate crash. Now that OpenTK is using generics rather thanobjectparameters, you can no longer pass anintby mistake, making these overloads less useful.Still, it would be nice to have symmetry in the bindings, which is why I am considering this a bug.
#2
Committed to branches/1.0 and trunk (r2536).
#3
Closing issues fixed in 1.0 beta-2.