I am attempting to use pyglet to do mousepress picking.  This works
fine if I keep all my picking code in a single method or function.
However, if I try to do any decomposition I run into problems.  I can
put drawing code in other functions, but if I put either glLoadName or
glPushName calls into another function I get the following error:
  File "city.py", line 755, in pick
    glSelectBuffer (512, selectBuf)
  File "build/bdist.linux-x86_64/egg/pyglet/gl/lib.py", line 89, in
errcheck
pyglet.gl.lib.GLException: invalid operation

I don't understand why I can't declare a selection buffer in one
method and then push names onto the stack in another.

Anybody have any ideas?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to