WinRT: added a stub implementation of UpdateClipRect to the D3D 11.1 renderer

This commit is contained in:
David Ludwig 2013-08-13 20:33:15 -04:00
parent 45ef345df0
commit eaf26ff66a

View File

@ -69,6 +69,7 @@ static int D3D11_LockTexture(SDL_Renderer * renderer, SDL_Texture * texture,
static void D3D11_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture); static void D3D11_UnlockTexture(SDL_Renderer * renderer, SDL_Texture * texture);
static int D3D11_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture); static int D3D11_SetRenderTarget(SDL_Renderer * renderer, SDL_Texture * texture);
static int D3D11_UpdateViewport(SDL_Renderer * renderer); static int D3D11_UpdateViewport(SDL_Renderer * renderer);
static int D3D11_UpdateClipRect(SDL_Renderer * renderer);
static int D3D11_RenderClear(SDL_Renderer * renderer); static int D3D11_RenderClear(SDL_Renderer * renderer);
static int D3D11_RenderDrawPoints(SDL_Renderer * renderer, static int D3D11_RenderDrawPoints(SDL_Renderer * renderer,
const SDL_FPoint * points, int count); const SDL_FPoint * points, int count);
@ -176,6 +177,7 @@ D3D11_CreateRenderer(SDL_Window * window, Uint32 flags)
renderer->UnlockTexture = D3D11_UnlockTexture; renderer->UnlockTexture = D3D11_UnlockTexture;
renderer->SetRenderTarget = D3D11_SetRenderTarget; renderer->SetRenderTarget = D3D11_SetRenderTarget;
renderer->UpdateViewport = D3D11_UpdateViewport; renderer->UpdateViewport = D3D11_UpdateViewport;
renderer->UpdateClipRect = D3D11_UpdateClipRect;
renderer->RenderClear = D3D11_RenderClear; renderer->RenderClear = D3D11_RenderClear;
renderer->RenderDrawPoints = D3D11_RenderDrawPoints; renderer->RenderDrawPoints = D3D11_RenderDrawPoints;
renderer->RenderDrawLines = D3D11_RenderDrawLines; renderer->RenderDrawLines = D3D11_RenderDrawLines;
@ -1254,6 +1256,13 @@ D3D11_UpdateViewport(SDL_Renderer * renderer)
return 0; return 0;
} }
static int
D3D11_UpdateClipRect(SDL_Renderer * renderer)
{
// TODO, WinRT: implement D3D11_UpdateClipRect
return 0;
}
static ComPtr<ID3D11RenderTargetView> & static ComPtr<ID3D11RenderTargetView> &
D3D11_GetCurrentRenderTargetView(SDL_Renderer * renderer) D3D11_GetCurrentRenderTargetView(SDL_Renderer * renderer)
{ {