grahamb314's picture


Project:The Open Toolkit library
Category:support request

Hi there,

I am using using OpenTK.Compatibility to try to draw a GLU.Sphere, However GLU.SPhere needs an intPtr or glu.quadratic to draw (In other words, the first parameter required to make a GLU.Sphere is needed!)

DO you know if this is available somewhere or if it is not available in OpenTK?

Basically I have:

using OpenTK.Compatibility;
 private  GLU.quadric q;  // GLU.quadratic isnt available but it is in other libraries other than openTK
Glu.Sphere(q, 10.0, 10, 10); // This will work if GLU.quadratic is available


Comment viewing options

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


You need to call NewQuadric to generate a new quadric handle:

IntPtr q = Glu.NewQuadric();
Glu.Sphere(q, 10.0, 10, 10);
the Fiddler's picture


Status:open» closed

Closing after one month of inactivity. If this is still an issue, please feel free to reopen.

darkdave's picture


I'm trying to do the same thing in VB.NET, how do i make a declaration such as

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

But for OpenTK instead of Tao?