PDA

View Full Version : GLUQUADRIC in OpenTK in VB .NET



darkdave
09-23-2012, 09:16 PM
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

darkdave
09-30-2012, 09:36 AM
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


Anybody? :(

darkdave
10-01-2012, 05:25 AM
Anybody? :(

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

V-man
10-03-2012, 11:11 AM
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 :)