mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-02 14:57:59 +03:00
Imported Upstream version 0.26.0
This commit is contained in:
commit
9a2b6c69b6
1398 changed files with 212217 additions and 0 deletions
15
extern/sdl4ogre/osx_utils.mm
vendored
Normal file
15
extern/sdl4ogre/osx_utils.mm
vendored
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include "osx_utils.h"
|
||||
#import <AppKit/NSWindow.h>
|
||||
|
||||
|
||||
namespace SFO {
|
||||
|
||||
unsigned long WindowContentViewHandle(SDL_SysWMinfo &info)
|
||||
{
|
||||
NSWindow *window = info.info.cocoa.window;
|
||||
NSView *view = [window contentView];
|
||||
|
||||
return (unsigned long)view;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue