WinRT: made SDL's inner WinRT CoreWindow be accessible to non-C++/CX code, in theory

This commit is contained in:
David Ludwig 2013-04-16 23:40:03 -04:00
parent 3a0f7dfe30
commit 52a3b9b1f5
4 changed files with 51 additions and 23 deletions

View file

@ -58,6 +58,10 @@ struct SDL_SysWMinfo;
#include <windows.h>
#endif
#if defined(SDL_VIDEO_DRIVER_WINRT)
#include <Unknwn.h>
#endif
/* This is the structure for custom window manager events */
#if defined(SDL_VIDEO_DRIVER_X11)
#if defined(__APPLE__) && defined(__MACH__)
@ -175,7 +179,7 @@ struct SDL_SysWMinfo
#if defined(SDL_VIDEO_DRIVER_WINRT)
struct
{
void * window; /**< The Windows RT CoreWindow, casted from 'CoreWindow ^*' to 'void *' */
IUnknown * window; /**< The Windows RT CoreWindow */
} winrt;
#endif
#if defined(SDL_VIDEO_DRIVER_X11)