jonwright / pyopengltk

OpenGL frame for Python/Tkinter via ctypes and pyopengl
MIT License
54 stars 13 forks source link

Question about single/double buffering #18

Open a3an-de opened 3 years ago

a3an-de commented 3 years ago

Do I have to assume that pyopengltk uses double buffering by default ? Can it be changed during initialization ? If this is not possible, is a combination of glDrawBuffer(GL_FRONT) and glReadBuffer(GL_Front) fully supported (mimicking single buffering) ?

jonwright commented 3 years ago

There is a double buffer flag that is passed by default, I assume it would be no problem to make it optional, along with various other things in #3. A pull request is welcome.

For glDrawBuffer: you might need opengl >= 2.0 and there are situations where you do not have this (windows RDP?).