PDA

View Full Version : Reusing GLUquadricObj



Drazurh
03-15-2017, 01:00 PM
Is there a way to redraw a GLUquadricObj sphere without having to call gluSphere every loop? I'm making a 360 video player and all I want to do is update the texture every frame and not have to regenerate the sphere.

right now I have something like:

GLUquadricObj* quadro = gluNewQuadric();

while(true){
display.Clear(0.0f, 0.0f, 0.5f, 1.0f);
gluSphere(quadro, 1, 48, 48);
display.Update();
}

Any ideas? Should I just avoid using glu altogether to have more control over what I need drawn?