WinRT: more code-moving from SDL_winrtrenderer* to SDL_render_d3d11*

This commit is contained in:
David Ludwig 2013-02-09 11:42:17 -05:00
parent 7eee7ec08f
commit 0bc7f7eac8
4 changed files with 247 additions and 200 deletions

View file

@ -21,6 +21,7 @@
#include "SDL_config.h"
#include <D3D11_1.h>
#include <DirectXMath.h>
#include <wrl/client.h>
typedef struct
@ -36,10 +37,19 @@ typedef struct
Microsoft::WRL::ComPtr<ID3D11Texture2D> mainTexture;
Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> mainTextureResourceView;
Microsoft::WRL::ComPtr<ID3D11SamplerState> mainSampler;
D3D_FEATURE_LEVEL featureLevel;
unsigned int vertexCount;
bool loadingComplete;
} D3D11_RenderData;
typedef struct
{
} D3D11_TextureData;
struct VertexPositionColor
{
DirectX::XMFLOAT3 pos;
DirectX::XMFLOAT2 tex;
};
/* vi: set ts=4 sw=4 expandtab: */