water.h

来自「水波演示」· C头文件 代码 · 共 74 行

H
74 行
字号
// Water.h : main header file for the WIZ application
//

#if !defined(AFX_WIZ_H__522244DC_D202_11D1_8785_0080C86E7AAE__INCLUDED_)
#define AFX_WIZ_H__522244DC_D202_11D1_8785_0080C86E7AAE__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000

#ifndef __AFXWIN_H__
	#error include 'stdafx.h' before including this file for PCH
#endif

#include "resource.h"       // main symbols

/////////////////////////////////////////////////////////////////////////////
// CWaterApp:
// See Water.cpp for the implementation of this class
//

class CWaterApp : public CDirectXApp
{
public:
	CWaterApp(void);
	virtual	~CWaterApp()
	{
	}

public:
	CDDDevice*	m_pDDDevice;
	CDDSurface*	m_pRenderSurface;
	// add your data here !
	short*	m_pBuf1;
	short*	m_pBuf2;
	CDDDIBSurface*	m_pTexture;
	CDDSurface*	m_pRender;

public:
	// add your function here !
	void	RippleSpread(void);
	void	RenderRipple(void);

public:
	virtual bool	GetDXInitSettings(void);

	virtual bool	InitDXObjects(void);
	virtual bool	DestroyDXObjects(void);

	virtual bool	UpdateFrame(void);

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CWaterApp)
	//}}AFX_VIRTUAL

// Implementation

	//{{AFX_MSG(CWaterApp)
	afx_msg void OnAppAbout();
		// NOTE - the ClassWizard will add and remove member functions here.
		//    DO NOT EDIT what you see in these blocks of generated code !
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};


/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_WIZ_H__522244DC_D202_11D1_8785_0080C86E7AAE__INCLUDED_)

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?