文件名称:openGLwater
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:3.41mb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
操作指导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
操作指导7water-cmy3/cmy.aps
操作指导7water-cmy3/cmy.clw
操作指导7water-cmy3/cmy.cpp
操作指导7water-cmy3/cmy.dsp
操作指导7water-cmy3/cmy.dsw
操作指导7water-cmy3/cmy.h
操作指导7water-cmy3/cmy.ncb
操作指导7water-cmy3/cmy.plg
操作指导7water-cmy3/cmy.rc
操作指导7water-cmy3/cmyDoc.cpp
操作指导7water-cmy3/cmyDoc.h
操作指导7water-cmy3/cmyView.cpp
操作指导7water-cmy3/cmyView.h
操作指导7water-cmy3/MainFrm.cpp
操作指导7water-cmy3/MainFrm.h
操作指导7water-cmy3/ReadMe.txt
操作指导7water-cmy3/Resource.h
操作指导7water-cmy3/StdAfx.cpp
操作指导7water-cmy3/StdAfx.h
操作指导7water-cmy3/res/cmy.ico
操作指导7water-cmy3/res/cmy.rc2
操作指导7water-cmy3/res/cmyDoc.ico
操作指导7water-cmy3/res/Toolbar.bmp
操作指导7water-cmy3/Debug/cmy.exe
操作指导7water-cmy3/Debug/cmy.ilk
操作指导7water-cmy3/Debug/cmy.obj
操作指导7water-cmy3/Debug/cmy.pch
操作指导7water-cmy3/Debug/cmy.pdb
操作指导7water-cmy3/Debug/cmy.res
操作指导7water-cmy3/Debug/cmyDoc.obj
操作指导7water-cmy3/Debug/cmyView.obj
操作指导7water-cmy3/Debug/MainFrm.obj
操作指导7water-cmy3/Debug/StdAfx.obj
操作指导7water-cmy3/Debug/vc60.idb
操作指导7water-cmy3/Debug/vc60.pdb
操作指导7water-cmy3/cmy.opt
操作指导7water-cmy3/res
操作指导7water-cmy3/Debug
操作指导7water-cmy3
操作指导7water-cmy3/cmy.aps
操作指导7water-cmy3/cmy.clw
操作指导7water-cmy3/cmy.cpp
操作指导7water-cmy3/cmy.dsp
操作指导7water-cmy3/cmy.dsw
操作指导7water-cmy3/cmy.h
操作指导7water-cmy3/cmy.ncb
操作指导7water-cmy3/cmy.plg
操作指导7water-cmy3/cmy.rc
操作指导7water-cmy3/cmyDoc.cpp
操作指导7water-cmy3/cmyDoc.h
操作指导7water-cmy3/cmyView.cpp
操作指导7water-cmy3/cmyView.h
操作指导7water-cmy3/MainFrm.cpp
操作指导7water-cmy3/MainFrm.h
操作指导7water-cmy3/ReadMe.txt
操作指导7water-cmy3/Resource.h
操作指导7water-cmy3/StdAfx.cpp
操作指导7water-cmy3/StdAfx.h
操作指导7water-cmy3/res/cmy.ico
操作指导7water-cmy3/res/cmy.rc2
操作指导7water-cmy3/res/cmyDoc.ico
操作指导7water-cmy3/res/Toolbar.bmp
操作指导7water-cmy3/Debug/cmy.exe
操作指导7water-cmy3/Debug/cmy.ilk
操作指导7water-cmy3/Debug/cmy.obj
操作指导7water-cmy3/Debug/cmy.pch
操作指导7water-cmy3/Debug/cmy.pdb
操作指导7water-cmy3/Debug/cmy.res
操作指导7water-cmy3/Debug/cmyDoc.obj
操作指导7water-cmy3/Debug/cmyView.obj
操作指导7water-cmy3/Debug/MainFrm.obj
操作指导7water-cmy3/Debug/StdAfx.obj
操作指导7water-cmy3/Debug/vc60.idb
操作指导7water-cmy3/Debug/vc60.pdb
操作指导7water-cmy3/cmy.opt
操作指导7water-cmy3/res
操作指导7water-cmy3/Debug
操作指导7water-cmy3
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.