port from perforce
This commit is contained in:
60
evoke-64k/trunk/ev10/Water.h
Normal file
60
evoke-64k/trunk/ev10/Water.h
Normal file
@@ -0,0 +1,60 @@
|
||||
#pragma once
|
||||
|
||||
/***********************************************************************************/
|
||||
/** \file Water.h
|
||||
** \brief Header File zur Klasse Water
|
||||
*************************************************************************************
|
||||
** Autor: Christian Roesch
|
||||
*************************************************************************************
|
||||
** _tut nichts_
|
||||
**
|
||||
*//*********************************************************************************/
|
||||
|
||||
#ifndef _WATER_H
|
||||
#define _WATER_H
|
||||
|
||||
// includes
|
||||
#include <d3dx9.h>
|
||||
|
||||
#include <cassert>
|
||||
|
||||
// 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
|
||||
************************************************************************************/
|
||||
Reference in New Issue
Block a user