ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pygame-users
pygame-users
[pygame] Collision Detection with Pygame/OpenGL Surfaces
by Ian Mallett other posts by this author
Aug 2 2007 11:26AM messages near this date
Re: [pygame] pygame | Re: [pygame] Collision Detection with Pygame/OpenGL Surfaces
Hi,
I'm making a program for visualizing molecules.  Each atom will be selected
by the mouse.  Since I know the color of each atom, my idea for detecting if
a mouse is over one is as follows:

1: get the color of the pixel the mouse is over
2: if the color is __ select the atom with that color.

The problem is, pygame has issues with OpenGL surfaces and the call to
Surface.get_at() declares I can't call an OpenGL surface.  Is there any way
to get around this?
Thanks,
Ian
Thread:
Ian Mallett
Dave LeCompte
Michael George
Dave LeCompte
Michael George
Ian Mallett
Ian Mallett
Dave LeCompte
Ian Mallett
Ian Mallett
Greg Ewing
Richard Jones
Brian Fisher
Ian Mallett
Ian Mallett
Ian Mallett
Brian Fisher
Ian Mallett
Brian Fisher
Michael George
Greg Ewing
Jason Massey
Michael George

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved