-
DDA 算法的实现
数字微分分析器或只是简略的 DDA 直线绘制算法是用于光栅图形设备中绘制线条。在这种算法,在行的开始和结束位置已提供。
中介像素位置将在起始点和结束点之间的时间间隔的变量线性内插法计算。该算法如下所示:
让开始和结束点线的是 (x 1,y1) 和 (x2,y2),分别。所以坡、 m = (y2-y1)/(x2-x1)。根据 m 和该象限的 (x,y) 的值属于,中介像素职位要计算如下:
职位要计算如下:
象限
m < = 1
m > 1
第一次
x = x + 1
y = y + m
x = x + 1/m
y = y + 1
第二次
x = x 1
y = y + m
- 2022-08-10 08:17:23下载
- 积分:1
-
另一个项目,使简单的太阳能系统…太阳在中心和所有行星…
this another project to make simple solar system... sun at centre and all planets around-this is another project to make simple solar system... sun at centre and all planets around...
- 2022-02-02 18:50:27下载
- 积分:1
-
在VC中实现OpenGL三维图形的程序,这个程序实际上是一个FRA…
在VC中实现OpenGL实现3D绘图的好程序 这个程序实际上是一个框架 有了他就可以把在CONSOLE 中的OPENGL程序移植过来 便于GDI图形接口下 实现实时3D开发-in VC achieve OpenGL 3D graphics of the program this procedure is actually a framework has he can in the OpenGL CONSOLE transplant procedures to facilitate GDI graphics interfaces to the development of real-time 3D
- 2022-01-21 04:07:25下载
- 积分:1
-
一个OpenGl的小例子,画了一座山
一个OpenGl的小例子,画了一座山-a small example, a drawing of a mountain
- 2022-03-04 19:59:23下载
- 积分:1
-
MD2调用,影子练习
MD2调用、影子做法-MD2 call, the Shadow practice
- 2022-06-12 06:41:47下载
- 积分:1
-
code, you must use the OpenGL glut.h header file, tarball contain glut.h use
图象拼接代码,必须使用OpenGL的glut.h header file,压缩档内含有glut.h使用说明-code, you must use the OpenGL glut.h header file, tarball contain glut.h use
- 2023-03-17 23:40:03下载
- 积分:1
-
stl文件读取
用MFC结合OpenGL编写的一个stl文件读取程序,亲测可用,不过只有读取功能,比较简单的一个程序,亲们看需要下载吧
- 2022-11-05 23:10:04下载
- 积分:1
-
openGL编程实例源代码,
包括各种常用的资源。
openGL编程实例源代码,
包括各种常用的资源。-openGL programming examples of source code, including all the resources used.
- 2022-08-15 19:12:13下载
- 积分:1
-
这是Nehe的用C#写的Opengl代码演示
这是Nehe的用C#写的Opengl代码演示-This is the C# code written presentation Opengl
- 2022-03-30 09:54:17下载
- 积分:1
-
微软基础类库:gleasy
MICROSOFT FOUNDATION CLASS LIBRARY : GLEasy-MICROSOFT CLASS LIBRARY FOUNDATION : GLEasy
- 2023-04-16 23:50:03下载
- 积分:1