Quadrics?

Started by elias4444, December 13, 2004, 18:04:44

Previous topic - Next topic

elias4444

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?
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

Chman

Yes it's supported.
Look at the org.lwjgl.opengl.clu package, there are classes like Sphere, Cylinders etc...

Chman

elias4444

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.
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

elias4444

Shamless bump and begging for previous request.  :oops:
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com

Fool Running

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?
Programmers will, one day, rule the world... and the world won't notice until its too late.Just testing the marquee option ;D

elias4444

Finally got around to trying it....

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

Thanks for the help!
=-=-=-=-=-======-=-=-=-=-=-
http://www.tommytwisters.com