📄 water.h
字号:
// 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -