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
eb6020c6bc
WinRT: added a TODO note regarding texture-[un]locking in the d3d11 renderer
2013-12-25 14:20:40 -05:00
David Ludwig
79d7f0dee2
WinRT: renamed d3d11-internal struct, SDL_VertexShaderConstants, to just VertexShaderConstants
...
This is primarily to keep naming consistent with other shader-bound structs.
2013-12-25 14:17:49 -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
bbd8e31737
WinRT: simplified a potentially-common error message from D3D11_SetRenderTarget
2013-12-25 13:00:41 -05:00
David Ludwig
788d61ec6b
WinRT: removed an unnecessary use of std::string in the d3d11 renderer
2013-12-25 12:58:37 -05:00
David Ludwig
1b770842fc
WinRT: utilized SDL_SetError's return value in the d3d11 renderer
2013-12-25 12:52:16 -05:00
David Ludwig
5fac22c332
WinRT: minor d3d11 code cleanups
2013-12-25 12:48:47 -05:00
David Ludwig
255cf99d66
WinRT: made d3d11-spawned error messages trickle down
...
Some error messages had the potential to be overwritten/obscured.
2013-12-25 12:47:39 -05:00
David Ludwig
326ecc4ed6
WinRT: made d3d11-spawned error messages include the function name of failed calls
2013-12-25 12:43:26 -05:00
David Ludwig
f5ca4203fb
WinRT: better rendering performance via D3D11_USAGE_DYNAMIC
2013-12-22 21:13:35 -05:00
David Ludwig
1df5dccd9a
WinRT: fixed bug: SDL_RenderReadPixels didn't work with certain orientations of the physical display
2013-12-10 22:34:08 -05:00
David Ludwig
23f6ff5673
WinRT: added support for SDL_HINT_RENDER_SCALE_QUALITY
2013-11-01 22:54:39 -04:00
David Ludwig
69cd08bc13
WinRT: made the Direct3D 11.x 'Debug Layer' be enable-able in any app via a hint
...
To enable the Debug Layer, set the hint, SDL_HINT_RENDER_DIRECT3D11_DEBUG to '1'.
The Debug Layer will be turned off by default, both in Release and Debug builds (of SDL).
2013-10-25 20:31:43 -04:00
David Ludwig
1dfe43a8b1
WinRT: fixed a line-rendering bug in the D3D 11.1 backend
2013-09-16 00:31:01 -04:00
David Ludwig
d5622eb2df
WinRT: made rendering work with orientation changes on Windows Phone
...
Pointer event geometry still needs to be adjusted on Windows Phone, to note.
2013-08-28 15:27:01 -04:00
David Ludwig
591af1b9f8
WinRT: removed a comment regarding a dealt-with TODO
2013-08-28 12:45:43 -04:00
David Ludwig
a5667cf3ba
WinRT: rendering orientation fixes for Windows Phone, part 1
...
This change should allow apps to render correctly in Portrait mode, at minimum,
Support for orientation changes is pending.
Thanks to Pierre-Yves for assistance!
2013-08-28 12:38:30 -04:00
David Ludwig
179a4d0367
WinRT: fixed a potential memory-related crash in SDL_Renderer on Windows Phone
2013-08-28 11:46:02 -04:00
David Ludwig
5248a0701d
WinRT: experimental and preliminary support for XAML-based overlays on Windows 8/RT
...
The XAML support here is still rudimentary. Bugs do exist. You've been warned.
XAML support in Windows Phone 8 is not yet available (in SDL/WinRT).
2013-08-27 21:21:09 -04:00
David Ludwig
1cfe2a9412
WinRT: made all WinRT-related TODO comments use the same prefix, "TODO, WinRT"
2013-08-27 13:03:43 -04:00
David Ludwig
45a13dac17
WinRT: renamed SDL_SYSWM_WINDOWSRT to SDL_SYSWM_WINRT
...
This is part of an overall effort to use the name, "WinRT", rather than "WindowsRT" (or "Windows RT"), as the shorthand name often seems to mean something different than the longhand name. (WinRT is an API, Windows RT is a product name)
2013-08-27 11:44:43 -04:00
David Ludwig
a49f0e4f74
WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer
2013-08-13 20:33:15 -04:00
David Ludwig
52a3b9b1f5
WinRT: made SDL's inner WinRT CoreWindow be accessible to non-C++/CX code, in theory
2013-04-16 23:40:03 -04:00
David Ludwig
e40e111591
WinRT: added render-to-texture support for D3D 11.1, via SDL_SetRenderTarget
2013-04-13 23:03:46 -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
b1b2ba3f09
WinRT: removed a bit of unused code from the D3D 11.1 renderer
2013-04-02 00:21:01 -04:00
David Ludwig
b7887dd326
WinRT: added rotation support to SDL_RenderCopyEx via D3D 11.1
2013-04-02 00:09:49 -04:00
David Ludwig
5230205e27
WinRT: implemented SDL_RenderCopyEx, w/ SDL_RendererFlip support, in D3D 11.1
2013-04-01 22:33:37 -04:00
David Ludwig
33ab98ccee
WinRT: implemented SDL_RenderReadPixels in Direct3D 11.1
2013-04-01 21:34:47 -04:00
David Ludwig
2e29d030b9
WinRT: removed code that unnecessarily set a blank D3D 11.1 texture's contents
2013-03-31 11:44:50 -04:00
David Ludwig
da65f35eaf
WinRT: added SDL_LockTexture and SDL_UnlockTexture support to the D3D 11.1 renderer
2013-03-31 11:16:31 -04:00
David Ludwig
b7476a788a
WinRT: added point drawing support to the Direct3D 11.1 rendering backend
2013-03-24 21:57:40 -04:00
David Ludwig
7cb5ae426f
WinRT: added line drawing support to the Direct3D 11.1 rendering backend
2013-03-24 21:19:26 -04:00
David Ludwig
88be433255
WinRT: made the D3D 11.1 renderer respect the 'srcrect' parameter of SDL_RenderCopy
2013-02-24 12:27:28 -05:00
David Ludwig
8d55f67a2f
WinRT: allowed for querying of max texture size (via Direct3D 11.1)
2013-02-24 10:30:12 -05:00
David Ludwig
0a9710e1e5
WinRT: made the Direct3D 11.1 renderer correctly report its status regarding render-to-texture (not supported, yet)
2013-02-24 10:14:23 -05: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
5520a12a33
WinRT: added support for alpha-blended texture rendering
2013-02-23 22:58:09 -05:00
David Ludwig
0cc80148f4
WinRT: another device-rotation and rendering fix
2013-02-19 22:07:07 -05:00
David Ludwig
4a906d9edf
WinRT: bug fixes for device orientation + Direct3D 11.1 rendering
2013-02-17 23:23:59 -05:00
David Ludwig
19ff37c4b3
WinRT: made SDL_RenderSetViewport work with the D3D 11.1 renderer
2013-02-17 11:09:07 -05:00
David Ludwig
bafdb176fa
WinRT: D3D 11.1 blending mode support added; FillRects coloring bug-fix
2013-02-16 16:53:06 -05:00
David Ludwig
a6c8d32843
WinRT: took out an unneeded depth stencil view from the D3D 11.1 renderer
2013-02-16 16:13:48 -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
1d2bde7131
WinRT: fixed one scaling bug (more remain) in the Direct3D 11.1 renderer
2013-02-12 21:25:26 -05:00
David Ludwig
5e66f60ffa
WinRT: fixed bug: SDL_RenderCopy was always filling the entire screen
2013-02-12 20:49:26 -05:00
David Ludwig
48ce80d49a
WinRT: made d3d 11.1 vertex buffers get created, and updated, when a render op is invoked
2013-02-12 19:08:35 -05:00
David Ludwig
754df984f0
WinRT: made SDL_RenderClear display the correct color via Direct3D 11.1
2013-02-10 17:35:38 -05:00
David Ludwig
2649db8b65
WinRT: consolidated all WinRT path-retrieval functions into one function
2013-02-09 22:48:19 -05:00