grahamb314's picture

glu.quadratic

Project:The Open Toolkit library
Version:1.0-beta-2
Component:Code
Category:support request
Priority:critical
Assigned:grahamb314
Status:closed
Description

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

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

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

#2

Status:open» closed

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

darkdave's picture

#3

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?

David