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] ogre + pygame: how do I get them to share a window?
by Mark Ivey other posts by this author
Aug 22 2006 5:35PM messages near this date
Re: [pygame] ideas for renaming pygame-ctypes | Re: [pygame] ogre + pygame: how do I get them to share a window?
I'm trying to get Ogre (for graphics) and pygame (for input) to play  
together (glued together with Boost::Python, if it matters).  When  
Ogre isn't using the SDL backend, pygame doesn't get any keyboard/ 
mouse events.



I've tried two solutions, and had problems with both:

1) Pygame using Ogre's window, with SDL_WINDOWID.  Started with  
pygame.display.set_mode((800, 600)).  My window was always black, as  
if the pygame surface covered up the Ogre stuff.  Next, I tried  
set_mode((1,1)).  Then the window shows Ogre's 3D stuff.  However, I  
only get keyboard events, no mouse events.

2) Ogre using pygame's window.  I need to pass Ogre a window handle,  
and on OSX, at least, pygame.display.get_wm_info() returns an empty  
hash.  How do I get the window handle from pygame on OSX?


Any help getting past these problems would be greatly appreciated...

-Mark Ivey- 
Thread:
Mark Ivey
Peter Shinners
renesd
Mark Ivey
Ryan Charpentier

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