Archives Aug. 11, 2009

Add context managers to PyOpenGL?

Playing a bit with Python context managers for PyOpenGL.  Considering adding them pervasively, likely with a configuration flag. (idea is from Florian's gletools)...

  • OpenGL.arrays.VBO -- make a context manager itself (this is already implemented)
  • OpenGL.GL.compileShader -- make the shader int returned a context manager (implemented)

Those two I consider non-controversial, as they ...

Continue reading

Previous day

Aug. 10, 2009

Next day

Aug. 18, 2009

Archives