[ pyopengl-Bugs-2152623 ] KeyError: GL_BITMAP with glDrawPixels

"SourceForge.net" <[email protected]> Sun, 19 Jul 2009 01:52:26 +0000
Newsgroups gmane.comp.python.opengl.devel
Message-ID <[email protected]>
Bugs item #2152623, was opened at 2008-10-08 01:05
Message generated for change (Comment added) made by mcfletch
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2152623&group_id=5988

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: GL
Group: v3.0.0
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: Karl Ostmo (kostmo)
Assigned to: Nobody/Anonymous (nobody)
Summary: KeyError: GL_BITMAP with glDrawPixels

Initial Comment:
Error trace:

    glDrawPixels(len(pixels[0])*8, len(pixels), GL_STENCIL_INDEX, GL_BITMAP, pixels)
  File "/usr/lib/python2.5/site-packages/OpenGL/wrapper.py", line 915, in wrapperCall
    pyArgs.append( converter(arg, self, args) )
  File "/usr/lib/python2.5/site-packages/OpenGL/GL/images.py", line 404, in __call__
    arrayType = arrays.GL_CONSTANT_TO_ARRAY_TYPE[ images.TYPE_TO_ARRAYTYPE[ type ] ]
KeyError: GL_BITMAP


It looks like the capability to draw bitmaps (1 byte = 8 pixels) is not implemented.

----------------------------------------------------------------------

>Comment By: Mike C. Fletcher (mcfletch)
Date: 2009-07-18 21:52

Message:
I realize it's far too late, but I did finally see this bug report.  Thanks
for the patch.  I have added a test case to the test_core.py file and added
a BITMAP type to the registered image types.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105988&aid=2152623&group_id=5988

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
PyOpenGL Homepage
http://pyopengl.sourceforge.net