kanikanikani's picture

Vector3d and Vector2d support in Functions like GL.Vertex3(), GL.Color3(), GL.TexCoord2() etc.

Project:The Open Toolkit library
Version:1.0-beta-3
Component:Code
Category:feature request
Priority:minor
Assigned:Unassigned
Status:closed
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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Version:all versions» 0.9.x-dev
Status:open» fixed

Thanks for the feature request, implemented in r2605 of the 1.0 branch (and will be appear in trunk shortly).

the Fiddler's picture

#2

Version:0.9.x-dev» 1.0-beta-3
Status:fixed» closed

Closing issues fixed in opentk-1.0-beta-3.