CWaterRoutine.h
上传用户:sycq158
上传日期:2008-10-22
资源大小:15361k
文件大小:1k
- // WaterRoutine.h: interface for the CWaterRoutine class.
- //
- //////////////////////////////////////////////////////////////////////
- #if !defined(AFX_WATERROUTINE_H__4B4865CD_75CD_4BDE_9D2F_475BEED8FDAA__INCLUDED_)
- #define AFX_WATERROUTINE_H__4B4865CD_75CD_4BDE_9D2F_475BEED8FDAA__INCLUDED_
- #if _MSC_VER > 1000
- #pragma once
- #endif // _MSC_VER > 1000
- #include <windows.h>
- class CWaterRoutine
- {
- public:
- CWaterRoutine();
- virtual ~CWaterRoutine();
- void Create(int iWidth,int iHeight);
- void Render(DWORD* pSrcImage,DWORD* pTargetImage);
- void CalcWater(int npage, int density);
- void FlattenWater();
- void HeightBlob(int x, int y, int radius, int height, int page);
- void DrawWaterWithLight(int page,DWORD* pSrcImage,DWORD* pTargetImage);
- COLORREF GetShiftedColor(COLORREF color,int shift);
- void LoadBarrierData();
- int m_iWidth;
- int m_iHeight;
- int m_iHpage;// The current heightfield
- int m_density;// 阻尼系数
- // the height fields
- int* m_iHeightField1;
- int* m_iHeightField2;
- double m_ABProportion;
- BOOL m_bBarArray[1024][768];
- };
- #endif // !defined(AFX_WATERROUTINE_H__4B4865CD_75CD_4BDE_9D2F_475BEED8FDAA__INCLUDED_)