Re: [PyOpenGL-Users] bus error on gluNewQuadric()
Brought to you by:
mcfletch
From: Dave P. <de...@bu...> - 2004-10-24 21:51:14
|
On Fri, 22 Oct 2004, altern wrote: > the only thing i changed is that i was actually creating the q = > gluNewQuadric() as a to reuse it so that i dont do it everytime i create a > circle. Now i put it into the drawing function and there is no problem. I > guess osx didnt like to reuse the object and needs to create one new every > time. OSX's OpenGL implementation requires a GL context to exist before you can create a quadric; this also applies to Linux & probably other Unixes, Windows happens to be different and lets you create a quadric any time. So, if you move your gluNewQuadric() call to happen _after_ you've opened a window (for instance, after calling glutCreateWindow), then it should be fine, and you'll only need to create it once. -- Dave Pape Assistant Professor dav...@ac... Department of Media Study http://resumbrae.com/ University at Buffalo |