Open GL version 1, Centos, C++
Please allow for typos as I cannot copy from my work computer to my internet computer.
Summary: What is the method to define buffers to swap in double buffering?
I am working on a strip chart that is always 2D and does not use any matrices. Several places have examples of double buffering.
In my init code is
#ifdef GL_DOUBLE_BUFFER glutInitDisplayMode( GL_DOUBLE ) #endif
And at the end of the drawing function
#ifdef GL_DOUBLE_BUFFER glSwapBuffers(); #else glFlush() #endif
The app starts then quickly exits with the complaint:
Function called with no current window defined.
I have found several sites with example code, but did not recognize the line(s) of code that define windows for the swap function.