Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
34 lines (27 loc) · 913 Bytes

SDL_winrtrenderer.h

File metadata and controls

34 lines (27 loc) · 913 Bytes
 
1
2
3
4
5
6
7
8
#pragma once
#include "Direct3DBase.h"
struct VertexPositionColor
{
DirectX::XMFLOAT3 pos;
DirectX::XMFLOAT3 color;
Nov 21, 2012
Nov 21, 2012
9
DirectX::XMFLOAT2 tex;
10
11
12
};
// This class renders a simple spinning cube.
Nov 19, 2012
Nov 19, 2012
13
ref class SDL_winrtrenderer sealed : public Direct3DBase
Nov 19, 2012
Nov 19, 2012
16
SDL_winrtrenderer();
17
18
19
20
21
22
23
24
25
26
27
28
// Direct3DBase methods.
virtual void CreateDeviceResources() override;
virtual void Render() override;
private:
bool m_loadingComplete;
Microsoft::WRL::ComPtr<ID3D11InputLayout> m_inputLayout;
Microsoft::WRL::ComPtr<ID3D11Buffer> m_vertexBuffer;
Microsoft::WRL::ComPtr<ID3D11VertexShader> m_vertexShader;
Microsoft::WRL::ComPtr<ID3D11PixelShader> m_pixelShader;
Nov 21, 2012
Nov 21, 2012
29
30
31
Microsoft::WRL::ComPtr<ID3D11Texture2D> m_mainTexture;
Microsoft::WRL::ComPtr<ID3D11ShaderResourceView> m_mainTextureResourceView;
Microsoft::WRL::ComPtr<ID3D11SamplerState> m_mainSampler;
Nov 19, 2012
Nov 19, 2012
33
uint32 m_vertexCount;