1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- // 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 SmoothWater(int npage);
- void FlattenWater();
- void SineBlob(int x, int y, int radius, int height, int page);
- void WarpBlob(int x, int y, int radius, int height, int page);
- void HeightBox (int x, int y, int radius, int height, int page);
- void HeightBlob(int x, int y, int radius, int height, int page);
- void CalcWaterBigFilter(int npage, int density);
- void DrawWaterNoLight(int page,DWORD* pSrcImage,DWORD* pTargetImage);
- void DrawWaterWithLight(int page, int LightModifier,DWORD* pSrcImage,DWORD* pTargetImage);
- COLORREF GetShiftedColor(COLORREF color,int shift);
- int m_iWidth;
- int m_iHeight;
- BOOL m_bDrawWithLight;
- int m_iLightModifier;
- int m_iHpage;// The current heightfield
- int m_density;// The water density - can change the density...
- // the height fields
- int* m_iHeightField1;
- int* m_iHeightField2;
- };
- #endif // !defined(AFX_WATERROUTINE_H__4B4865CD_75CD_4BDE_9D2F_475BEED8FDAA__INCLUDED_)
|