
glu.quadratic
Posted Wednesday, 3 February, 2010 - 23:26 by grahamb314| Project: | The Open Toolkit library |
| Version: | 1.0-beta-2 |
| Component: | Code |
| Category: | support request |
| Priority: | critical |
| Assigned: | grahamb314 |
| Status: | closed |
Jump to:
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
#1
You need to call NewQuadric to generate a new quadric handle:
#2
Closing after one month of inactivity. If this is still an issue, please feel free to reopen.
#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