Fixed bug 731 - No mechanism to extract the NSView for 3d library
This commit is contained in:
parent
2f9ac5db94
commit
97fba74bda
2 changed files with 3 additions and 0 deletions
|
@ -82,6 +82,7 @@ struct SDL_SysWMinfo;
|
|||
#include <Cocoa/Cocoa.h>
|
||||
#else
|
||||
typedef struct _NSWindow NSWindow;
|
||||
typedef struct _NSView NSView;
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
@ -187,6 +188,7 @@ struct SDL_SysWMinfo
|
|||
struct
|
||||
{
|
||||
NSWindow *window; /* The Cocoa window */
|
||||
NSView *view; /* The Cocoa view */
|
||||
} cocoa;
|
||||
#endif
|
||||
#if defined(SDL_VIDEO_DRIVER_UIKIT)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue