LWJGL Forum

Programming => Lightweight Java Gaming Library => Topic started by: elias4444 on December 13, 2004, 18:04:44

Title: Quadrics?
Post by: elias4444 on December 13, 2004, 18:04:44
I just can't seem to stop asking questions, can I?

Just wondering if lwjgl supported drawing quadratics (a.k.a. quadrics). And if so, where is it?
Title: Quadrics?
Post by: Chman on December 13, 2004, 20:23:45
Yes it's supported.
Look at the org.lwjgl.opengl.clu package, there are classes like Sphere, Cylinders etc...

Chman
Title: Quadrics?
Post by: elias4444 on December 13, 2004, 22:06:10
Do you mean the "glu" package? I can't find the clu one.

Update: I found the ones in the glu package, but for some reason can't get them to function (Eclipse doesn't even recognize them!). Could someone please offer some sample code on how they can be used.
Title: Quadrics?
Post by: elias4444 on December 16, 2004, 16:52:59
Shamless bump and begging for previous request.  :oops:
Title: hmmmm.....
Post by: Fool Running on December 16, 2004, 21:45:58
Well, I'll try answer... although I don't use them (I make the shapes in my engine myself) :roll:

To make a quadratic (say a Sphere):

Sphere sphere = new Sphere();
sphere.draw(1.0f, 10, 10);


That's all there is to it!  :lol:

QuoteEclipse doesn't even recognize them!
What do you mean?
Title: Quadrics?
Post by: elias4444 on December 20, 2004, 16:37:10
Finally got around to trying it....

Looks like I was just using the glu methods in a completely wrong fashion.

Thanks for the help!