-
用vc++和OpenGL实现三维地形实时动态显示
开发环境:vc++6.0
windows2000 专业版
在正常情况下,opengl开发包在安装完vc++6以后,就已经安装好了,
所以本程序不需要其他的组件
源代码包含了三维地形生成的全过程,包括数据的读入,数据的组织,
三角网的构造,光照、材质、纹理等应用,对于核心代码均有简明的注释
至于某些特殊函数,请参考opengl和windowsapi的书籍,在msdn上均可以查到函数的使用说明。
几个文件的说明:
dh10.bmp是本程序使用的导弹模型的纹理图片
dh10.mtl是本程序使用的导弹模型的材质文件
dh10.obj是本程序使用的导弹模型的数据文件
draw.dll,draw.h,draw.lib 专门用于绘制三维模型的通用动态库及其相关文件,由于项目原因,这部分源代码还不能公开
直接运行需要的文件
.exe
dh10.bmp
dh10.mtl
dh10.obj
draw.dll
- 2022-07-13 07:40:20下载
- 积分:1
-
数值分析最常用的四十种算法,使用c++/matlab实现
数值分析最常用的四十种算法,使用c++/matlab实现-numerical analysis of the 40 most commonly used algorithms, the use of c/Matlab achieve
- 2022-01-25 22:02:14下载
- 积分:1
-
链表的基本操作
#include
#include
#define LEN sizeof(struct student)
/*----------------数据定义----------------------*/
//定义一个学生信息的结构体,包括学号,姓名和结构体类型的指针
struct student
{
long num; //学号
char name[128]; //姓名
struct student *next; //结构体指针
};
typedef struct student * stuNode;
int n=0; //全局变量,记录链表的长度
/*---------------函数声明---------------------*/
stuNode Create(); //创建一个新的链表 &nbs
- 2022-03-11 02:44:17下载
- 积分:1
-
从与相关的快速算法中分离
离散相关和自相关的快速算法-separated from the relevant and related to the fast algorithm
- 2023-07-04 00:20:03下载
- 积分:1
-
Visual C++常微分方程解法(转载)
Visual C++常微分方程解法(转载)-Visual C Ordinary Differential Equations Solution (reproduced)
- 2022-02-04 07:31:54下载
- 积分:1
-
0 / 1背包问题是一个N P
0 / 1背包问题是一个N P-复杂问题,为了解决该问题,,将用回溯算法解决该问题。既然想选择一个对象的子集,将它们装入背包,以便获得的收益最大,则解空间应组织成子集树的形状(如图1 6 - 2所示)。该回溯算法与4 . 2节的装载问题很类似。首先形成一个递归算法,去找到可获得的最大收益。然后,对该算法加以改进,形成代码。改进后的代码可找到获得最大收益时包含在背包中的对象的集合。-0/1 knapsack problem is a P-complex issues, in order to solve the problem, and will be used backtracking algorithm to solve the problem. As to the choice of a subset of object, they will load a backpack, in order to obtain the greatest profits, the solution should be organized into space subset of the shape of the tree (Figure 1 6-2 below). The backtracking algorithms and 4. Two loading problem is very similar. Forming a recursive algorithm to get the maximum benefit available. Then, this algorithm is modified to form code. Improved code can be found at the maximum benefits included in the backpack of a collection of objects.
- 2022-02-26 09:06:08下载
- 积分:1
-
用C开发的莱文森算法
用C开发的莱文森算法-the c levinson algorithm
- 2022-12-03 19:30:08下载
- 积分:1
-
这个程序分别用二分法,Newton法,弦截法,Newton下山法等算法求解非线性方程...
这个程序分别用二分法,Newton法,弦截法,Newton下山法等算法求解非线性方程-this procedure were used dichotomy, Newton, String interception, Newton downhill law for solving nonlinear equations
- 2022-11-19 17:30:03下载
- 积分:1
-
几种常见随机数的产生
几种常见随机数的产生-several common random number generated
- 2022-03-24 17:23:30下载
- 积分:1
-
任意数学表达式计算的源码及测试软件
任意数学表达式计算的源码及测试软件-Calculation of arbitrary mathematical expression of the source code and test software
- 2022-01-21 04:19:42下载
- 积分:1