[PyOpenGL-Users] glReadPixels error
Brought to you by:
mcfletch
From: . <rem...@gm...> - 2009-03-30 05:23:01
|
I'm getting the following traceback with this code: OpenGL.GL.glReadPixels(0,0,640,480,OpenGL.GL.GL_RGBA,OpenGL.GL.GL_UNSIGNED_BYTE) ... Traceback (most recent call last): File "/home/packages/python/2.5/python2.5-2.5.2/Modules/_ctypes/callbacks.c", line 274, in 'calling callback function' File "/home/c7a71k/Hexer/SIL/Engine.py", line 182, in idleCallback self.displayCallback() File "/home/c7a71k/Hexer/SIL/Engine.py", line 161, in displayCallback OpenGL.GL.glReadPixels(0,0,640,480,OpenGL.GL.GL_RGBA,OpenGL.GL.GL_UNSIGNED_BYTE) File "/home/c7a71k/Hexer/SIL/OpenGL/GL/images.py", line 319, in glReadPixels imageData = arrayType.dataPointer(array) File "/home/c7a71k/Hexer/SIL/OpenGL/arrays/arraydatatype.py", line 38, in dataPointer return cls.getHandler(value).dataPointer( value ) File "/home/c7a71k/Hexer/SIL/OpenGL/arrays/formathandler.py", line 16, in __call__ typ = value.__class__ AttributeError: __class__ ... also very curious to note from that first 'File' line ... that file, and even that DIRECTORY (/home/packages/) does not exist! Heh. Any ideas? |