WinRT: fixed bug: SDL_RenderCopy was always filling the entire screen

This commit is contained in:
David Ludwig 2013-02-12 20:49:26 -05:00
parent 48ce80d49a
commit 5e66f60ffa
3 changed files with 52 additions and 6 deletions

View file

@ -26,6 +26,7 @@
struct SDL_VertexShaderConstants
{
DirectX::XMFLOAT4X4 view;
DirectX::XMFLOAT4X4 projection;
};
@ -40,6 +41,7 @@ typedef struct
Microsoft::WRL::ComPtr<ID3D11VertexShader> vertexShader;
Microsoft::WRL::ComPtr<ID3D11PixelShader> pixelShader;
Microsoft::WRL::ComPtr<ID3D11SamplerState> mainSampler;
Microsoft::WRL::ComPtr<ID3D11RasterizerState> mainRasterizer;
D3D_FEATURE_LEVEL featureLevel;
bool loadingComplete;