开发者

gluNewQuadric() before opengl's initialization

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜