cwaterroutine.h
来自「这是一个产生水纹、火焰及熔岩效果示例程序」· C头文件 代码 · 共 50 行
H
50 行
// 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_)
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?