diff options
| author | Jason Maskell <[email protected]> | 2016-05-16 15:00:36 +0200 |
|---|---|---|
| committer | Jason Maskell <[email protected]> | 2016-05-16 15:00:36 +0200 |
| commit | 3eb017d032e0c542401ea202f7a62b7c7ddcd498 (patch) | |
| tree | 6470077bdc344f1493778976917f7217a3159707 /test/d3d11/ocean_surface.h | |
| parent | Project now compiles with Cmake. (diff) | |
| download | waveworks_archive-3eb017d032e0c542401ea202f7a62b7c7ddcd498.tar.xz waveworks_archive-3eb017d032e0c542401ea202f7a62b7c7ddcd498.zip | |
Added the test_d3d11 app to the solution. Not compiling yet, mostly a paranoia commit.
Diffstat (limited to 'test/d3d11/ocean_surface.h')
| -rw-r--r-- | test/d3d11/ocean_surface.h | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/test/d3d11/ocean_surface.h b/test/d3d11/ocean_surface.h index 6aa6f28..b273290 100644 --- a/test/d3d11/ocean_surface.h +++ b/test/d3d11/ocean_surface.h @@ -32,6 +32,9 @@ #include <D3DX11Effect.h> #include <GFSDK_WaveWorks.h> +#include <DirectXMath.h> + +using namespace DirectX; //#define DEBUG_VS //#define DEBUG_PS @@ -42,8 +45,8 @@ struct OceanSurfaceParameters { // Shading properties - D3DXVECTOR4 sky_color; - D3DXVECTOR4 waterbody_color; + XMFLOAT4 sky_color; + XMFLOAT4 waterbody_color; float sky_blending; }; @@ -88,8 +91,8 @@ public: // --------------------------------- Rendering routines ----------------------------------- // Rendering - void renderShaded(ID3D11DeviceContext* pDC, const D3DXMATRIX& matView, const D3DXMATRIX& matProj, GFSDK_WaveWorks_SimulationHandle hSim, GFSDK_WaveWorks_SavestateHandle hSavestate, BOOL freeze_cam); - void renderWireframe(ID3D11DeviceContext* pDC, const D3DXMATRIX& matView, const D3DXMATRIX& matProj, GFSDK_WaveWorks_SimulationHandle hSim, GFSDK_WaveWorks_SavestateHandle hSavestate, BOOL freeze_cam); + void renderShaded(ID3D11DeviceContext* pDC, const XMMATRIX& matView, const XMMATRIX& matProj, GFSDK_WaveWorks_SimulationHandle hSim, GFSDK_WaveWorks_SavestateHandle hSavestate, BOOL freeze_cam); + void renderWireframe(ID3D11DeviceContext* pDC, const XMMATRIX& matView, const XMMATRIX& matProj, GFSDK_WaveWorks_SimulationHandle hSim, GFSDK_WaveWorks_SavestateHandle hSavestate, BOOL freeze_cam); void getQuadTreeStats(GFSDK_WaveWorks_Quadtree_Stats& stats); // --------------------------------- Surface geometry ----------------------------------- @@ -102,8 +105,8 @@ public: UINT* m_pSimulationShaderInputMappings_Shaded; UINT* m_pSimulationShaderInputMappings_Wireframe; - D3DXMATRIX m_matView; - D3DXMATRIX m_matProj; + XMMATRIX m_matView; + XMMATRIX m_matProj; }; #endif // _OCEAN_WAVE_H |