文件名称:openGLwater
- 所属分类:
- OpenGL
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3.41mb
- 下载次数:
- 0次
- 提 供 者:
- fangz*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
操作指导7水纹
一、 建立工程
二、 添加函数和变量,修改头文件(view.h)
public:
int npoint
float lpoint[4][4]
float cpoint[102][76][3]
void drawplat()
void lm()
BOOL movekey
CClientDC *my_pDC
CRect my_oldRect
BOOL mytbar
BOOL mysbar
virtual ~CCmyView()
#ifdef _DEBUG
virtual void AssertValid() const
virtual void Dump(CDumpContext& dc) const
#endif
添加消息响应函数OnTimer()。
三、 初始化变量
CCmyView::CCmyView()
{
// TODO: add construction code here
my_pDC=NULL
mytbar=FALSE
mysbar=FALSE
movekey=TRUE
npoint=-1
for(int i=0 i<102 i++){
for(int j=0 j<76 j++){
cpoint[i][j][0]=0.0f
cpoint[i][j][1]=0.0f
cpoint[i][j][2]=0.0f //法向初值全为0
}
}
}-Operation of a water wave guide 7, the establishment of two projects, add functions and variables, modify the header file (view.h) public: int npoint float lpoint [4] [4] float cpoint [102] [76] [3] void drawplat () void lm () BOOL movekey CClientDC* my_pDC CRect my_oldRect BOOL mytbar BOOL mysbar virtual ~ CCmyView () # ifdef _DEBUG virtual void AssertValid () const virtual void Dump (CDumpContext & dc) const # endif add a message response function OnTimer (). Third, initialize variables CCmyView:: CCmyView () {//TODO: add construction code here my_pDC = NULL mytbar = FALSE mysbar = FALSE movekey = TRUE npoint =- 1 for (int i = 0 i < 102 i++) {for (int j = 0 j < 76 j++) {cpoint [i] [j] [0] = 0.0f cpoint [i] [j] [1] = 0.0f cpoint [ i] [j] [2] = 0.0f // method to the initial value of all 0} } }
一、 建立工程
二、 添加函数和变量,修改头文件(view.h)
public:
int npoint
float lpoint[4][4]
float cpoint[102][76][3]
void drawplat()
void lm()
BOOL movekey
CClientDC *my_pDC
CRect my_oldRect
BOOL mytbar
BOOL mysbar
virtual ~CCmyView()
#ifdef _DEBUG
virtual void AssertValid() const
virtual void Dump(CDumpContext& dc) const
#endif
添加消息响应函数OnTimer()。
三、 初始化变量
CCmyView::CCmyView()
{
// TODO: add construction code here
my_pDC=NULL
mytbar=FALSE
mysbar=FALSE
movekey=TRUE
npoint=-1
for(int i=0 i<102 i++){
for(int j=0 j<76 j++){
cpoint[i][j][0]=0.0f
cpoint[i][j][1]=0.0f
cpoint[i][j][2]=0.0f //法向初值全为0
}
}
}-Operation of a water wave guide 7, the establishment of two projects, add functions and variables, modify the header file (view.h) public: int npoint float lpoint [4] [4] float cpoint [102] [76] [3] void drawplat () void lm () BOOL movekey CClientDC* my_pDC CRect my_oldRect BOOL mytbar BOOL mysbar virtual ~ CCmyView () # ifdef _DEBUG virtual void AssertValid () const virtual void Dump (CDumpContext & dc) const # endif add a message response function OnTimer (). Third, initialize variables CCmyView:: CCmyView () {//TODO: add construction code here my_pDC = NULL mytbar = FALSE mysbar = FALSE movekey = TRUE npoint =- 1 for (int i = 0 i < 102 i++) {for (int j = 0 j < 76 j++) {cpoint [i] [j] [0] = 0.0f cpoint [i] [j] [1] = 0.0f cpoint [ i] [j] [2] = 0.0f // method to the initial value of all 0} } }
(系统自动生成,下载前可以参看下载内容)
下载文件列表
操作指导7-water.doc
.........water-cmy3\cmy.aps
...................\cmy.clw
...................\cmy.cpp
...................\cmy.dsp
...................\cmy.dsw
...................\cmy.h
...................\cmy.ncb
...................\cmy.plg
...................\cmy.rc
...................\cmyDoc.cpp
...................\cmyDoc.h
...................\cmyView.cpp
...................\cmyView.h
...................\MainFrm.cpp
...................\MainFrm.h
...................\ReadMe.txt
...................\Resource.h
...................\StdAfx.cpp
...................\StdAfx.h
...................\res\cmy.ico
...................\...\cmy.rc2
...................\...\cmyDoc.ico
...................\...\Toolbar.bmp
...................\Debug\cmy.exe
...................\.....\cmy.ilk
...................\.....\cmy.obj
...................\.....\cmy.pch
...................\.....\cmy.pdb
...................\.....\cmy.res
...................\.....\cmyDoc.obj
...................\.....\cmyView.obj
...................\.....\MainFrm.obj
...................\.....\StdAfx.obj
...................\.....\vc60.idb
...................\.....\vc60.pdb
...................\cmy.opt
...................\res
...................\Debug
操作指导7water-cmy3
.........water-cmy3\cmy.aps
...................\cmy.clw
...................\cmy.cpp
...................\cmy.dsp
...................\cmy.dsw
...................\cmy.h
...................\cmy.ncb
...................\cmy.plg
...................\cmy.rc
...................\cmyDoc.cpp
...................\cmyDoc.h
...................\cmyView.cpp
...................\cmyView.h
...................\MainFrm.cpp
...................\MainFrm.h
...................\ReadMe.txt
...................\Resource.h
...................\StdAfx.cpp
...................\StdAfx.h
...................\res\cmy.ico
...................\...\cmy.rc2
...................\...\cmyDoc.ico
...................\...\Toolbar.bmp
...................\Debug\cmy.exe
...................\.....\cmy.ilk
...................\.....\cmy.obj
...................\.....\cmy.pch
...................\.....\cmy.pdb
...................\.....\cmy.res
...................\.....\cmyDoc.obj
...................\.....\cmyView.obj
...................\.....\MainFrm.obj
...................\.....\StdAfx.obj
...................\.....\vc60.idb
...................\.....\vc60.pdb
...................\cmy.opt
...................\res
...................\Debug
操作指导7water-cmy3