src/video/windowsrt/CubeRenderer.h
changeset 8343 f593baeea84c
parent 8340 e470405f3ae9
parent 8342 05d7aa70928e
child 8344 11fd2e01a070
     1.1 --- a/src/video/windowsrt/CubeRenderer.h	Mon Nov 12 13:25:44 2012 -0500
     1.2 +++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.3 @@ -1,44 +0,0 @@
     1.4 -#pragma once
     1.5 -
     1.6 -#include "Direct3DBase.h"
     1.7 -
     1.8 -struct ModelViewProjectionConstantBuffer
     1.9 -{
    1.10 -	DirectX::XMFLOAT4X4 model;
    1.11 -	DirectX::XMFLOAT4X4 view;
    1.12 -	DirectX::XMFLOAT4X4 projection;
    1.13 -};
    1.14 -
    1.15 -struct VertexPositionColor
    1.16 -{
    1.17 -	DirectX::XMFLOAT3 pos;
    1.18 -	DirectX::XMFLOAT3 color;
    1.19 -};
    1.20 -
    1.21 -// This class renders a simple spinning cube.
    1.22 -ref class CubeRenderer sealed : public Direct3DBase
    1.23 -{
    1.24 -public:
    1.25 -	CubeRenderer();
    1.26 -
    1.27 -	// Direct3DBase methods.
    1.28 -	virtual void CreateDeviceResources() override;
    1.29 -	virtual void CreateWindowSizeDependentResources() override;
    1.30 -	virtual void Render() override;
    1.31 -	
    1.32 -	// Method for updating time-dependent objects.
    1.33 -	void Update(float timeTotal, float timeDelta);
    1.34 -
    1.35 -private:
    1.36 -	bool m_loadingComplete;
    1.37 -
    1.38 -	Microsoft::WRL::ComPtr<ID3D11InputLayout> m_inputLayout;
    1.39 -	Microsoft::WRL::ComPtr<ID3D11Buffer> m_vertexBuffer;
    1.40 -	Microsoft::WRL::ComPtr<ID3D11Buffer> m_indexBuffer;
    1.41 -	Microsoft::WRL::ComPtr<ID3D11VertexShader> m_vertexShader;
    1.42 -	Microsoft::WRL::ComPtr<ID3D11PixelShader> m_pixelShader;
    1.43 -	Microsoft::WRL::ComPtr<ID3D11Buffer> m_constantBuffer;
    1.44 -
    1.45 -	uint32 m_indexCount;
    1.46 -	ModelViewProjectionConstantBuffer m_constantBufferData;
    1.47 -};