dixing

所属分类:OpenGL
开发工具:Visual C++
文件大小:9448KB
下载次数:3
上传日期:2013-06-11 22:13:32
上 传 者xiaoyaoko
说明:  opengl快速地形生成,nehe教程代码,windows平台下,快速学习opengl
(opengl fast terrain generation, nehe tutorial code, windows platform, fast learning opengl)

文件列表:
HeightMap1 (0, 2011-01-04)
HeightMap1\HeightMap_OGL (0, 2010-08-31)
HeightMap1\HeightMap_OGL\Height Map (0, 2010-08-31)
HeightMap1\HeightMap_OGL\Height Map\Camera.cpp (14147, 2006-03-21)
HeightMap1\HeightMap_OGL\Height Map\Camera.h (2376, 2006-03-21)
HeightMap1\HeightMap_OGL\Height Map\Debug (0, 2010-08-31)
HeightMap1\HeightMap_OGL\Height Map\Debug\Camera.obj (28045, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\Debug\HeightMap.exe (196737, 2007-07-25)
HeightMap1\HeightMap_OGL\Height Map\Debug\HeightMap.pdb (427008, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\Debug\Init.obj (21642, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\Debug\Main.obj (17922, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\Debug\Terrain.obj (16130, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\Debug\_desktop.ini (9, 2007-07-24)
HeightMap1\HeightMap_OGL\Height Map\Debug\vc60.pdb (77824, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\HeightMap.dsp (4431, 2002-05-24)
HeightMap1\HeightMap_OGL\Height Map\HeightMap.dsw (541, 2001-07-16)
HeightMap1\HeightMap_OGL\Height Map\HeightMap.exe (53248, 2007-07-25)
HeightMap1\HeightMap_OGL\Height Map\HeightMap.opt (54784, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\HeightMap.plg (1662, 2006-03-22)
HeightMap1\HeightMap_OGL\Height Map\Init.cpp (11193, 2006-03-21)
HeightMap1\HeightMap_OGL\Height Map\MAIN.H (3754, 2002-05-24)
HeightMap1\HeightMap_OGL\Height Map\Main.cpp (9643, 2002-05-24)
HeightMap1\HeightMap_OGL\Height Map\Terrain.cpp (10461, 2002-05-24)
HeightMap1\HeightMap_OGL\Height Map\Terrain.h (1317, 2002-01-08)
HeightMap1\HeightMap_OGL\Height Map\Terrain.raw (1048576, 2001-07-16)
HeightMap1\HeightMap_OGL\Height Map\_desktop.ini (9, 2007-07-24)
HeightMap1\HeightMap_OGL\_desktop.ini (9, 2007-07-24)
HeightMap1\HeightMap_OGL.zip (181268, 2002-07-29)
HeightMap1\Screenshot27.jpg (2597, 2002-07-29)
HeightMap1\_desktop.ini (9, 2007-07-24)
HeightMap2 (0, 2011-01-04)
HeightMap2\HeightMap2_OGL (0, 2010-08-31)
HeightMap2\HeightMap2_OGL\HeightMap2 (0, 2010-08-31)
HeightMap2\HeightMap2_OGL\HeightMap2\Back.bmp (263224, 2002-05-24)
HeightMap2\HeightMap2_OGL\HeightMap2\Bottom.bmp (263224, 2002-05-24)
HeightMap2\HeightMap2_OGL\HeightMap2\Camera.cpp (14182, 2002-06-04)
HeightMap2\HeightMap2_OGL\HeightMap2\Camera.h (2134, 2002-05-24)
HeightMap2\HeightMap2_OGL\HeightMap2\Debug (0, 2010-08-31)
HeightMap2\HeightMap2_OGL\HeightMap2\Debug\_desktop.ini (9, 2007-07-24)
... ...

//*********************************************************************** // // - "Talk to me like a 3 year old!" Programming Lessons - // // $Author: DigiBen DigiBen@GameTutorials.com // // $Program: HeightMap // // $Description: This shows how render a height map from a file. // // $Date: 7/12/01 // //*********************************************************************** Files: Main.cpp (The Source File containing the most worked with code) Init.cpp (The Source File containing the rarely changed code) Terrain.cpp(The Source File containing the terrain rendering code) Terrain.h (Header file that holds the terrain prototypes and definitions) Main.h (The header file that holds the global variables and prototypes) Camera.cpp (The Source File containing the camera code) Camera.h (Header file that holds the camera class) HeightMap.dsp (The Project File holding the project info) HeightMap.dsw (The Workspace File holding the workspace info) Terrain.raw (The file containing the "terrain" values) Libraries: opengl32.lib and glu32.lib winmm.lib Controls Used: w, s, UP_ARROW, DOWN_ARROW - Move the camera forward and backward a, d, RIGHT_ARROW, LEFT_ARROW - Strafe the camera left and right Mouse movement - Moves the view for first person mode Left Mouse Button - Turns wireframe on and off ESCAPE - Quits the program Win32 App: Remember, if using visual c/c++, if you want to create a windows application from scratch, and not a console application, you must choose "Win32 App" in the projects tab when selecting "New" from the file menu in visual C. Your program will not be able to run if you try and create a window inside of a console program. Once again, if creating a new project, click on "Win32 Application" and not "Win32 Console Application" if you want to create a program for windows (not a DOS window). This process is further explained at www.GameTutorials.com Instructions: If you have visual studio c++ (around version 6) just click on the .dsw file. This will open up up visual c++. You will most likely see the code for .cpp. If you don't, there should be a tab on the left window (workspace window) called "FileView". Click the tab and click on the plus sign in this tab if it isn't already open. There you should see 2 folders called "source" and "header". Double click on the "source" folder and you should see your source file with a .cpp extension after it. Double click on the file and it will open up in your main window. Hit Control-F5 to run the program. You will probably see a prompt to compile/build the project. Click OK and a window should pop up with the program. :) Ben Humphrey Game Programmer digiben@gametutorials.com www.GameTutorials.com

近期下载者

相关文件


收藏者