Commit graph

31 commits

Author SHA1 Message Date
David Ludwig
78755d7572 WinRT: "SDL" to "SDL2", both for .dll output files, and for MSVC project names.
All WinRT builds of SDL will now output, "SDL2.dll".  Previously, the Windows
8.x/RT builds would output, "SDL.dll", and Windows Phone 8 builds would output,
"SDL_WinPhone.dll".  The change to "SDL2.dll" puts WinRT dll naming in-line with
that seen on Win32.

SDL/WinRT's MSVC project files will now appear as either "SDL2-WinRT" or
"SDL2-WinPhone", when displaying in MSVC.

This set of changes should not break any older WinRT or Windows Phone 8 app
builds that rely on MSVC's Project-to-Project reference system to build SDL2 for
the correct platform(s), and to install SDL2 dll files into the apps' output
packages.  App builds that reference SDL dll files directly should, however,
now reference "SDL2.dll".

--HG--
extra : rebase_source : cab688db2d74f9a60f7937fa1ab53475cbd59229
2014-03-30 11:50:59 -04:00
David Ludwig
0e9811178e WinRT: Implemented SDL_ShowMessageBox for Windows 8.x/RT hosts
This change does not include message box support for Windows Phone 8, which does
not offer the same message box APIs that Windows 8.x/RT does.

--HG--
extra : rebase_source : 2047c915117c6711c7cfdc2c1ba3f89450435b8e
2014-03-23 22:07:01 -04:00
David Ludwig
1126e9c461 Fixed broken rotation detection routines on WinRT
Rotation detection and handling should now work across all, publicly-released,
WinRT-based platforms (Windows 8.0, Windows 8.1, and Windows Phone 8.0).
2014-03-15 14:54:23 -04:00
David Ludwig
468dbccb39 Merged various WinRT build fixes
--HG--
rename : src/render/direct3d11/SDL_render_d3d11_winrthelpers.cpp => src/render/direct3d11/SDL_render_winrt.cpp
2014-03-12 12:12:20 -04:00
David Ludwig
7ba3100244 Fixed various build and runtime errors when using WinRT with VS2012. 2014-03-12 11:57:15 -04:00
David Ludwig
c836d9ffc2 WinRT: compiled the d3d11 renderer's shaders into SDL itself
Previously, the shaders would get compiled separately, the output of which would need to be packaged into the app.  This change should make SDL's dll be the only binary needed to include SDL in a WinRT app.
2013-12-25 21:39:48 -05:00
David Ludwig
1f740f328b WinRT: moved contents of the d3d11 renderer's header file into its implementation file 2013-12-25 13:13:15 -05:00
David Ludwig
e918745db0 WinRT: implemented SDL_GetBasePath and SDL_GetPrefPath
--HG--
rename : src/core/winrt/SDL_winrtpaths.cpp => src/filesystem/winrt/SDL_sysfilesystem.cpp
2013-10-28 15:41:22 -04:00
David Ludwig
79f80241a8 WinRT: unified the two, public, app-init functions
This function, SDL_WinRTRunApp, can be used to help launch either XAML or non-XAML/Direct3D-only based apps.
2013-09-22 12:26:53 -04:00
David Ludwig
5d50184a6f WinRT: project-naming cleanup. Projects that link to SDL will need updating. To update:
1. remove references to SDL's project files from the Visual Studio Solution.  To note, these project files have been renamed, and will show up in Visual Studio with the text, "load failed".
2. add the SDL project files back into the Visual Studio Solution
3. for each project that should link to SDL, add a reference to it.  This can be done by right-clicking on it in Visual Studio, selecting "References...", clicking "Add New Reference", checking the box next to the SDL project, then closing each dialog by clicking OK.

SDL_mixer, SDL_ttf, and SDL_image for WinRT have been updated, and will be pushed to my Bitbucket repos with these changes having been made.  If you do not pull in these changes, be sure to re-add to them the reference to the SDL project, as described above.

--HG--
rename : VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj => VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj
rename : VisualC-WinPhone/SDL/SDL_VS2012-WinPhone.vcxproj.filters => VisualC-WinPhone/SDL/SDL-WinPhone_VS2012.vcxproj.filters
rename : VisualC-WinRT/SDL_VS2012-WinRT.sln => VisualC-WinRT/SDL-WinRT_VS2012.sln
rename : VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj => VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj
rename : VisualC-WinRT/SDL/SDL_VS2012-WinRT.vcxproj.filters => VisualC-WinRT/SDL/SDL-WinRT_VS2012.vcxproj.filters
2013-09-14 23:34:27 -04:00
David Ludwig
e0af19f033 WinRT: code cleanup: attempted to make it more clear what code is specific to what app type (plain Direct3D or XAML)
--HG--
rename : src/core/winrt/SDL_winrtapp.cpp => src/core/winrt/SDL_winrtapp_direct3d.cpp
rename : src/core/winrt/SDL_winrtapp.h => src/core/winrt/SDL_winrtapp_direct3d.h
rename : src/core/winrt/SDL_winrtxaml.cpp => src/core/winrt/SDL_winrtapp_xaml.cpp
rename : src/core/winrt/SDL_winrtxaml_cpp.h => src/core/winrt/SDL_winrtapp_xaml.h
2013-09-06 21:13:15 -04:00
David Ludwig
63a6d98f44 WinRT: made SDL_xaudio2.c compile as C code when building for WinRT
XAudio2 2.8's header file, xaudio2.h, doesn't compile in plain C code for WinRT
apps, not automatically at least.  Initially, this file was adapted to compile
as C++, however these changes are now deprecated in favor of some preprocessor
based hacks that should get xaudio2.h to compile (while making sure XAudio2
still works).
2013-09-06 19:07:15 -04:00
David Ludwig
4348ee8893 WinRT: more renaming of "windowsrt" to "winrt"
--HG--
rename : include/SDL_config_windowsrt.h => include/SDL_config_winrt.h
2013-09-04 19:55:45 -04:00
David Ludwig
12ca6364f9 WinRT: renamed a mouse-related header file for naming-consistency's sake
--HG--
rename : src/video/winrt/SDL_winrtmouse.h => src/video/winrt/SDL_winrtmouse_c.h
2013-09-02 15:29:46 -04:00
David Ludwig
76c97b1caa WinRT: misc code cleanups regarding touch and mouse events, and also SDL-internal globals 2013-09-02 15:23:33 -04:00
David Ludwig
edb51d8485 WinRT: corrected SDL_MOUSE* coordinates in non-Portrait modes
Thanks to Pierre-Yves Gueniffey for proper pointer geometry transform code!
2013-08-28 16:51:07 -04:00
David Ludwig
95b429d98e WinRT: build fix for Windows Phone 2013-08-28 11:45:22 -04:00
David Ludwig
6964e2e325 WinRT: Windows Phone build fix 2013-08-27 11:40:06 -04:00
David Ludwig
b06f02e4e5 WinRT: moved most platform-specific keyboard and mouse code to shared locations 2013-08-26 17:17:53 -04:00
David Ludwig
bfb6a12e2c WinRT: file naming and placement cleanup
- moved SDL_WinRTApp.* from src/video/windowsrt/ to src/core/winrt/, and renamed them to SDL_winrtapp.* (to mimick case-sensitivity used elsewhere in SDL)
- renamed all "windowsrt" directories (in src) to "winrt", as the shorthand name is used more often (and, IMO, "WinRT" != "Windows RT", not entirely at least)

--HG--
rename : src/video/windowsrt/SDL_WinRTApp.cpp => src/core/winrt/SDL_winrtapp.cpp
rename : src/video/windowsrt/SDL_WinRTApp.h => src/core/winrt/SDL_winrtapp.h
rename : src/core/windowsrt/SDL_winrtpaths.cpp => src/core/winrt/SDL_winrtpaths.cpp
rename : src/video/windowsrt/SDL_winrtevents.cpp => src/video/winrt/SDL_winrtevents.cpp
rename : src/video/windowsrt/SDL_winrtevents_c.h => src/video/winrt/SDL_winrtevents_c.h
rename : src/video/windowsrt/SDL_winrtmouse.cpp => src/video/winrt/SDL_winrtmouse.cpp
rename : src/video/windowsrt/SDL_winrtmouse.h => src/video/winrt/SDL_winrtmouse.h
rename : src/video/windowsrt/SDL_winrtvideo.cpp => src/video/winrt/SDL_winrtvideo.cpp
rename : src/video/windowsrt/SDL_winrtvideo.h => src/video/winrt/SDL_winrtvideo.h
2013-08-20 21:22:32 -04:00
David Ludwig
7c61812370 WinRT: Windows Phone 8 build fixes 2013-08-13 20:11:51 -04:00
David Ludwig
b2ea4f6eca WinRT: Windows Phone 8 build/project updates 2013-05-12 22:38:39 -04:00
David Ludwig
b74856f7b7 WinRT: added texture channel color-modulation support for D3D 11.1
--HG--
rename : src/render/direct3d11/SDL_D3D11_PixelShader_TextureCopy.hlsl => src/render/direct3d11/SDL_D3D11_PixelShader_TextureColored.hlsl
2013-04-07 22:35:58 -04:00
David Ludwig
0464946409 WinRT: moved the default vertex shader into the Direct3D 11.1 renderer's folder
--HG--
rename : src/video/windowsrt/SimpleVertexShader.hlsl => src/render/direct3d11/SDL_D3D11_VertexShader_Default.hlsl
2013-02-24 10:11:58 -05:00
David Ludwig
a53fe847a1 WinRT: cleaned up headers in src\video\windowsrt\ 2013-02-24 10:02:57 -05:00
David Ludwig
c895496828 WinRT: implemented SDL_RenderFillRect and SDL_RenderFillRects for the D3D 11.1 renderer
--HG--
rename : src/video/windowsrt/SimplePixelShader.hlsl => src/render/direct3d11/SDL_D3D11_PixelShader_TextureCopy.hlsl
2013-02-16 09:10:43 -05:00
David Ludwig
46530ef818 WinRT: made use of SDL's framebuffer emulation code, instead of the custom stuff; then removed SDL_winrtrenderer 2013-02-09 19:39:42 -05:00
David Ludwig
4b6b1755fe WinRT: provided access, via SDL_GetWindowWMInfo, to SDL's WinRT CoreWindow 2013-02-09 14:35:06 -05:00
David Ludwig
7eee7ec08f WinRT: Windows Phone build fixes 2013-02-09 10:43:20 -05:00
David Ludwig
f7b08ae60b WinRT: started refactoring Direct3D 11.1 code into a new SDL_Renderer backend 2013-02-02 19:32:44 -05:00
David Ludwig
a1ef55a6f7 WinRT: added Windows Phone 8 project files, and got SDL compiling under them 2013-01-28 23:13:07 -05:00