|
// 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
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_)
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.