CodeBus
www.codebus.net
Search
Sign in
Sign up
Hot Search :
Source
embeded
web
remote control
p2p
game
More...
Location :
Home
Search - openglwater
Main Category
SourceCode
Documents
Books
WEB Code
Develop Tools
Other resource
Search - openglwater - List
[
OpenGL program
]
OpenGLWater
DL : 1
本程序主要介绍海浪波动的模拟技术,水的流动效果、水波的模拟。-the procedures introduced wave fluctuations in the simulation, water flow effect, the wave simulation.
Date
: 2008-10-13
Size
: 35.79kb
User
:
h
[
OpenGL program
]
OpenGLWater
DL : 0
本程序主要介绍海浪波动的模拟技术,水的流动效果、水波的模拟。-the procedures introduced wave fluctuations in the simulation, water flow effect, the wave simulation.
Date
: 2025-07-02
Size
: 52kb
User
:
h
[
OpenGL program
]
openGLwater
DL : 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} } }
Date
: 2025-07-02
Size
: 3.41mb
User
:
fangzijian
[
Other
]
openGLWater
DL : 0
使用OpenGL在VC++中实现水波的模拟效果,适合初学者研究和学习-Use OpenGL implementation in VC++ wave simulation results, the research and study for beginners
Date
: 2025-07-02
Size
: 1.72mb
User
:
Pan
CodeBus
is one of the largest source code repositories on the Internet!
Contact us :
1999-2046
CodeBus
All Rights Reserved.