OpenGL had (deprecated since 3.0 or so) picking built in via
glSelectBuffer & co.
The modern way would probably be to just use a render target to store
the sprite at
each pixel. But as you say you are a beginner I would not go that
route.

Having a slightly bigger click target is usually a good thing, plus
it's easier to do, at least in simple scenes.

Shapely has algorithms for checking whether a point is inside of a
polygon of you really need it:
http://gispython.org/shapely/docs/1.0/manual.html#contains

Cheers,
Jonas

On May 11, 5:39 am, David Kidd <[email protected]> wrote:
> Thanks all. Bruce, that code is a great example.

-- 
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