Click here to Skip to main content
15,886,110 members
Articles / Desktop Programming / WTL

A little tool to show some system informations

Rate me:
Please Sign up or sign in to vote.
4.59/5 (15 votes)
12 May 2007CPOL1 min read 40K   3K   42  
This small tool shows some real-time system information, such as network speed, CPU utilization, time period and so on on the screen .
// 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.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
China China
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions