开发者

gluNewQuadric() before opengl's initialization

开发者 https://www.devze.com 2023-01-02 00:44 出处:网络
I\'m working on a c++ code that uses SD开发者_运维问答L/opengl. Is this possible to create a pointer to a quadric with gluNewQuadric() before having initialized opengl with SDL_SetVideoMode?

I'm working on a c++ code that uses SD开发者_运维问答L/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.


I'm not seeing anything in the source code that would require an active GL context.

0

精彩评论

暂无评论...
验证码 换一张
取 消