Modified files for SDL2.

This commit is contained in:
LuisAntonRebollo 2015-01-18 22:52:29 +01:00
parent 33a0579735
commit 475f218bcd
33 changed files with 436 additions and 136 deletions

View file

@ -20,6 +20,8 @@
// IN THE SOFTWARE.
//-----------------------------------------------------------------------------
#if !defined(TORQUE_SDL)
#include <windows.h>
#include <tchar.h>
#include <winuser.h>
@ -121,6 +123,14 @@ Win32Window::~Win32Window()
_unregisterWindowClass();
}
void* Win32Window::getSystemWindow(const WindowSystem system)
{
if( system == WindowSystem_Windows)
return getHWND();
return NULL;
}
GFXDevice * Win32Window::getGFXDevice()
{
return mDevice;
@ -1209,3 +1219,5 @@ const UTF16 *Win32Window::getCurtainWindowClassName()
{
return _CurtainWindowClassName;
}
#endif