
Vector3d and Vector2d support in Functions like GL.Vertex3(), GL.Color3(), GL.TexCoord2() etc.
Posted Tuesday, 2 March, 2010 - 16:24 by kanikanikani| Project: | The Open Toolkit library |
| Version: | 1.0-beta-3 |
| Component: | Code |
| Category: | feature request |
| Priority: | minor |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
There is currently no possibility to use the structures Vector3d and Vector2d (possible other vectorxd types are also affected) in functions like GL.Vertex3(), GL.Color3(), GL.TexCoord2() etc. natively. Instead something like that has to be done:
Vector3d foo;
//some stuff
GL.Vertex3(foo.X, foo.Y, foo.Z);
while with Vector3 it is much simpler:
Vector3 bar;
//some stuff
GL.Vertex3(bar);


Comments
#1
Thanks for the feature request, implemented in r2605 of the 1.0 branch (and will be appear in trunk shortly).
#2
Closing issues fixed in opentk-1.0-beta-3.