Main Menu

gluQuadric

Started by Krux, July 19, 2010, 22:00:18

Previous topic - Next topic

Krux

Why is Sphere and the other Quadric objects a subClass of gluQuadric? Quadric was always something like an configuration file for my Quadric objects, so that i coud use one Quadric, and render everything with this. Now i have to create quadrics for every Shape in glu.

Is there still the possibility to use one single quadric for them all?

kappa

the glu shapes stuff in LWJGL is just there for testing and quick demo's and not really intended for proper use, hence why some of the shapes are missing. Just write your own shapes (its pretty easy or port the c code) and you can choose how you want to subclass them (if at all).

Krux

actually i am writing my own primitives class, but i thought, why bother implementing the already exsisting ones in glu by myself.
I have already tried to cast the quadric, but that breaks the program.