gluNewQuadric() before opengl's initialization

Posted by Schrödinger's cat on Stack Overflow See other posts from Stack Overflow or by Schrödinger's cat
Published on 2010-05-28T19:29:34Z Indexed on 2010/05/28 19:32 UTC
Read the original article Hit count: 152

Filed under:
|

Hello, I'm working on a c++ code that uses SDL/opengl. Is this possible to create a pointer to a quadric with 'gluNewQuadric()' before having initialized opengl with 'SDL_SetVideoMode'? The idea is to create a class with a (pointer to a) quadric class member that has to be instantiate before the 'SDL_SetVideoMode' call. This pointer is initialized in the class' constructor with a 'gluNewQuadric()' call.

© Stack Overflow or respective owner

Related posts about opengl

Related posts about initialization