WinRT: cleaned up headers in src\video\windowsrt\
authorDavid Ludwig <dludwig@pobox.com>
Sun, 24 Feb 2013 10:02:57 -0500
changeset 8443 210a3869a783
parent 8442 7046465c646c
child 8444 dc12c4eda7e3
WinRT: cleaned up headers in src\video\windowsrt\
VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj
VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters
VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj
VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters
src/video/windowsrt/DirectXHelper.h
src/video/windowsrt/SDL_WinRTApp.cpp
src/video/windowsrt/SDL_WinRTApp.h
src/video/windowsrt/SDLmain_WinRT_common.h
--- a/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj	Sat Feb 23 22:58:09 2013 -0500
+++ b/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj	Sun Feb 24 10:02:57 2013 -0500
@@ -244,8 +244,6 @@
     <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
     <ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
     <ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
-    <ClInclude Include="..\..\src\video\windowsrt\DirectXHelper.h" />
-    <ClInclude Include="..\..\src\video\windowsrt\SDLmain_WinRT_common.h" />
     <ClInclude Include="..\..\src\video\windowsrt\SDL_WinRTApp.h" />
     <ClInclude Include="..\..\src\video\windowsrt\SDL_winrtevents_c.h" />
     <ClInclude Include="..\..\src\video\windowsrt\SDL_winrtmouse.h" />
--- a/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters	Sat Feb 23 22:58:09 2013 -0500
+++ b/VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters	Sun Feb 24 10:02:57 2013 -0500
@@ -321,12 +321,6 @@
     <ClInclude Include="..\..\src\video\SDL_sysvideo.h">
       <Filter>Source Files</Filter>
     </ClInclude>
-    <ClInclude Include="..\..\src\video\windowsrt\DirectXHelper.h">
-      <Filter>Source Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\src\video\windowsrt\SDLmain_WinRT_common.h">
-      <Filter>Source Files</Filter>
-    </ClInclude>
     <ClInclude Include="..\..\src\video\windowsrt\SDL_WinRTApp.h">
       <Filter>Source Files</Filter>
     </ClInclude>
--- a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj	Sat Feb 23 22:58:09 2013 -0500
+++ b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj	Sun Feb 24 10:02:57 2013 -0500
@@ -273,8 +273,6 @@
     <ClInclude Include="..\..\src\video\SDL_RLEaccel_c.h" />
     <ClInclude Include="..\..\src\video\SDL_shape_internals.h" />
     <ClInclude Include="..\..\src\video\SDL_sysvideo.h" />
-    <ClInclude Include="..\..\src\video\windowsrt\DirectXHelper.h" />
-    <ClInclude Include="..\..\src\video\windowsrt\SDLmain_WinRT_common.h" />
     <ClInclude Include="..\..\src\video\windowsrt\SDL_WinRTApp.h" />
     <ClInclude Include="..\..\src\video\windowsrt\SDL_winrtevents_c.h" />
     <ClInclude Include="..\..\src\video\windowsrt\SDL_winrtmouse.h" />
--- a/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters	Sat Feb 23 22:58:09 2013 -0500
+++ b/VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters	Sun Feb 24 10:02:57 2013 -0500
@@ -578,12 +578,6 @@
     <ClInclude Include="..\..\src\audio\xaudio2\SDL_xaudio2_winrthelpers.h">
       <Filter>Source Files</Filter>
     </ClInclude>
-    <ClInclude Include="..\..\src\video\windowsrt\SDLmain_WinRT_common.h">
-      <Filter>Source Files</Filter>
-    </ClInclude>
-    <ClInclude Include="..\..\src\video\windowsrt\DirectXHelper.h">
-      <Filter>Source Files</Filter>
-    </ClInclude>
     <ClInclude Include="..\..\src\events\blank_cursor.h">
       <Filter>Source Files</Filter>
     </ClInclude>
--- a/src/video/windowsrt/DirectXHelper.h	Sat Feb 23 22:58:09 2013 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,17 +0,0 @@
-#pragma once
-
-#include <wrl/client.h>
-#include <ppl.h>
-#include <ppltasks.h>
-
-namespace DX
-{
-    inline void ThrowIfFailed(HRESULT hr)
-    {
-        if (FAILED(hr))
-        {
-            // Set a breakpoint on this line to catch Win32 API errors.
-            throw Platform::Exception::CreateException(hr);
-        }
-    }
-}
--- a/src/video/windowsrt/SDL_WinRTApp.cpp	Sat Feb 23 22:58:09 2013 -0500
+++ b/src/video/windowsrt/SDL_WinRTApp.cpp	Sun Feb 24 10:02:57 2013 -0500
@@ -1,26 +1,28 @@
-#include "SDLmain_WinRT_common.h"
-#include "SDL_WinRTApp.h"
+
+#include <string>
+#include <unordered_map>
+#include <sstream>
+
 #include "ppltasks.h"
 
 extern "C" {
 #include "SDL_assert.h"
+#include "SDL_events.h"
+#include "SDL_hints.h"
+#include "SDL_log.h"
 #include "SDL_stdinc.h"
+#include "SDL_render.h"
 #include "../SDL_sysvideo.h"
+#include "../../SDL_hints_c.h"
+#include "../../events/scancodes_windows.h"
 #include "../../events/SDL_mouse_c.h"
 #include "../../events/SDL_keyboard_c.h"
 #include "../../events/SDL_windowevents_c.h"
-#include "../../events/scancodes_windows.h"
-#include "SDL_events.h"
-#include "SDL_log.h"
-#include "SDL_render.h"
 #include "../../render/SDL_sysrender.h"
-#include "SDL_hints.h"
-#include "../../SDL_hints_c.h"
 }
 
-#include <string>
-#include <unordered_map>
-#include <sstream>
+#include "SDL_winrtvideo.h"
+#include "SDL_WinRTApp.h"
 
 using namespace concurrency;
 using namespace std;
--- a/src/video/windowsrt/SDL_WinRTApp.h	Sat Feb 23 22:58:09 2013 -0500
+++ b/src/video/windowsrt/SDL_WinRTApp.h	Sun Feb 24 10:02:57 2013 -0500
@@ -1,7 +1,6 @@
 #pragma once
 
-#include "SDLmain_WinRT_common.h"
-#include "SDL_winrtvideo.h"
+struct SDL_WindowData;
 
 ref class SDL_WinRTApp sealed : public Windows::ApplicationModel::Core::IFrameworkView
 {
--- a/src/video/windowsrt/SDLmain_WinRT_common.h	Sat Feb 23 22:58:09 2013 -0500
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-#pragma once
-
-#include <wrl/client.h>
-#include <d3d11_1.h>
-#include <DirectXMath.h>
-#include <memory>
-#include <agile.h>
-#include <vector>
-
-extern "C" {
-#include "../SDL_sysvideo.h"
-}
-
-#include "SDL_winrtvideo.h"
-