Thread: [PyOpenGL-Devel] [PATCH] Make OpenGL constants pickleable
Brought to you by:
mcfletch
From: Joshua R. <jos...@us...> - 2007-10-05 17:30:10
Attachments:
constant.py.diff
|
Makes it possible to store pickled renderable objects that have e.g. GL_TRIANGLES as part of their state. |
From: Joshua R. <jos...@us...> - 2007-10-06 19:41:31
|
Note that with the patch applied you still can't pickle constants using version 2 of the pickle protocol, only versions 0 and 1. I think that an implementation of __getnewargs__ might be needed, though I'm in a bit over my head with this stuff to be honest. - Josh |