Re: [AD] (5.1) Mac OSX Patch - added a way to get NSWindow |
[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]
On Thu, Jul 12, 2012 at 8:17 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote: > On Thu, 12 Jul 2012 23:44:16 +0200, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote: >> On Thu, 12 Jul 2012 16:50:04 -0400 >> Dennis <dgooden@xxxxxxxxxx> wrote: >> >> > I've added a way to get the native NSWindow handle for OSX, just like >> > getting a HWND under Windows, UIView under iPhone, etc. >> > >> > This adds a new file called allegro_osx.h. I think I got the CMAKE >> > stuff right, I just copied what it does for allegro_windows.h. It >> > seems to build and work OK for me. >> > >> > I made this patch because if you use multiple windows (created with >> > al_create_display) in your program, there isn't an easy way to get >> > access to the different native NSWindow's. It's possible, but it's a >> > pain. With just a single window, it's not as much of a problem. >> > >> > Patch is attached, let me know if you have any questions/comments. >> > >> >> Thanks, it compiled on my mac with the patch applied, so committed it >> while there. >> >> We probably could add a call of the function to ex_multiwin (with an >> #ifdef, to show the system window handle for OSX, Windows, IPhone... >> maybe with the builtin font). I'll see if I get around to do that. > > Please add documentation. > > Peter > Attached is a patch that adds documentation for al_osx_get_window. I think I got the syntax right, but if someone could double check, I'd appreciate that. Dennis Gooden dgooden@xxxxxxxxxx
Attachment:
platform.patch
Description: Binary data
Mail converted by MHonArc 2.6.19+ | http://listengine.tuxfamily.org/ |