> I have trouble drawing objects from the AUX-Library.
> If I just do...
> ...it draws the sphere very fine. Even when I use this command
> in a loop it works good. But my programm works in that way
> that I calculate some 3D-coordinates an render them after each
> calculation step. This works fine for one calculation (many spheres).
> The problem is if I start a new calculation and so create new
> rendereing context and so on - no spheres are rendered any more.
doesn't know you have switched rendering contexts on it. Thus,
it believes that it has already created the display list, and just uses it.
This causes the glNewList and the glBegin inside auxWireCube (isQuote:> I thought I solved the problem with putting the command between
> these statements...
this a deliberate change?) to fail silently. It also causes the glGenList
call to return 0, which allows the aux routine to believe it needs to
generate the list next time.
For this I don't have an hypothesis.Quote:> ...yeah so it draws the spheres but somehow allocates memory for
> each sphere which isn't freed till the program exits. So my memory
> gets blown up (2MB/s or so).
Don't use aux. Use GLUT instead.Quote:> Can you give me some advice???
Andy V (OpenGL Alpha Geek)
"In order to make progress, one must leave the door to the unknown ajar."
Richard P. Feynman, quoted by Jagdish Mehra in _The Beat of a Different Drum_.
Paul Martz's OpenGL FAQ: http://www.opengl.org/developers/faqs/technical.html