GLUQUADRIC in OpenTK in VB .NET

I’m trying to convert my VB.NET code from TAO to OpenTK, so far so good except for this line:

Public sphere As Tao.OpenGl.Glu.GLUquadric = New Tao.OpenGl.Glu.GLUquadric

I have tried repleacing Tao.opengl with Opentk.Graphics and Opentk.Graphics.OpenGL but neither worked.

David

[QUOTE=darkdave;1242783]I’m trying to convert my VB.NET code from TAO to OpenTK, so far so good except for this line:

Public sphere As Tao.OpenGl.Glu.GLUquadric = New Tao.OpenGl.Glu.GLUquadric

I have tried repleacing Tao.opengl with Opentk.Graphics and Opentk.Graphics.OpenGL but neither worked.

David[/QUOTE]

Anybody? :frowning:

Fine, im changing to DirectX, obviously open community doesnt work !!

They probably removed GLU from OpenTK by now.
This thread is from 2009 http://www.opentk.com/node/1275

For cylinders, spheres, cubes, torus and such, you will either have to write your own code or use someone else’s code.
In my glhlib project, I do have those shapes http://sourceforge.net/projects/glhlib/
but it is for vc++. You will probably have to write a wrapper to use the DLL or just take the code and convert to VB.NET.
But writing it yourself is more fun :slight_smile: