View Full Version : Allocation and release of GLUquadricObj!

08-29-2001, 09:05 AM
Are the gluNewQuadric and gluDeleteQuadric rendering-context-dependent? Should them be called only after wglMakeCurrent(*, *)?

Moreover, can one GLUquadricObj be used to render many different objects,such as
gluSphere(ob, ...);
gluCylinder(ob, ...); //'ob' is the same


[This message has been edited by jxruan (edited 08-29-2001).]

08-29-2001, 10:17 PM
Hi !

You can allocate one and use it for all rendering as long as you don't change the attributes.

As far as I know you can allocate it at any time, it's just a structure that keeps some information about the current attributes.


[This message has been edited by mikael_aronsson (edited 08-30-2001).]