#pragma once /***********************************************************************************/ /** \file Water.h ** \brief Header File zur Klasse Water ************************************************************************************* ** Autor: Christian Roesch ************************************************************************************* ** _tut nichts_ ** *//*********************************************************************************/ #ifndef _WATER_H #define _WATER_H // includes #include #include // Klassen-Deklaration extern IDirect3DDevice9* g_d3d_device; /***********************************************************************************/ /** \brief Water _tut nichts_ ************************************************************************************* ** Genau genommen _tut dies nichts_ ** *//*********************************************************************************/ class Water { public: float m_fWaterLevel; static const int MaxSplitCount = 16; void Init(); void Update(const D3DXMATRIX &mView, const D3DXMATRIX &mProj); D3DXMATRIX m_ViewMatrix; D3DXMATRIX m_ProjMatrix; D3DXVECTOR3 m_ViewPos; D3DXVECTOR3 m_ViewDir; private: /// Computes a projection matrix that contains the given plane as near plane D3DXMATRIX ObliqueProjectionMatrix(const D3DXMATRIX &mView, const D3DXMATRIX &mProjection, const D3DXPLANE &clipPlane); }; #endif//_Water_H class Water; /************************************************************************************ ** Ende der Datei: Water.h ************************************************************************************/