-
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
-
使用OpenGL行程序
#include #include #include #include #include#define INCR 1#define DECR -1#define PREDX 1#define PREDY 0int dx,dy,e,e_inc,e_noinc;int main(void){ int xa,ya,xb,yb,i;
- 2022-10-11 09:55:03下载
- 积分:1
-
在MFC中调用OpenGL库函数来实现二维图像的三维显示
在MFC中调用OpenGL库函数来实现二维图像的三维显示-OpenGL in MFC library function call to achieve the two-dimensional images of three-dimensional display
- 2022-03-01 12:07:51下载
- 积分:1
-
历史上阴影检测算法的归纳总结,对初学和使用阴影检测很有帮助...
历史上阴影检测算法的归纳总结,对初学和使用阴影检测很有帮助-
The history of the shadow detection algorithm summary of the learning and use of shadow detection very helpful
- 2022-05-18 08:53:39下载
- 积分:1
-
落叶飘飞在洒满阳光的道路上,在VC下,对学习VC很有帮助,
落叶飘飞在洒满阳光的道路上,在VC下,对学习VC很有帮助,-飘飞leaves in the path of the sun洒满in the VC, the VC very helpful in learning,
- 2022-07-20 22:28:51下载
- 积分:1
-
这是opengl super bible第三版的cd我把一些工具删掉了,还有macos的部分删掉了,不然内容太多了,不能上传。...
这是opengl super bible第三版的cd我把一些工具删掉了,还有macos的部分删掉了,不然内容太多了,不能上传。-opengl super This is the third edition of the bible cd I have deleted some of the tools, macos have deleted the part, not too much, not uploads.
- 2022-07-22 10:32:10下载
- 积分:1
-
This is designed to use OpenGL game code book, very classic, like OpenGL friends...
这是利用OpenGL设计游戏书中的代码,非常经典,有喜欢OpenGL 的朋友大家一起分享。-This is designed to use OpenGL game code book, very classic, like OpenGL friends have shared with everyone.
- 2023-07-31 06:05:03下载
- 积分:1
-
螺旋桨的五坐标数控加工系统,该软件能够实现不同型号螺旋桨的数控仿真...
螺旋桨的五坐标数控加工系统,该软件能够实现不同型号螺旋桨的数控仿真-rumbling of the five-axis NC machining system, the software can achieve different models of NC simulation propeller
- 2022-04-27 11:49:33下载
- 积分:1
-
OpenGL代码,显示在贪婪的立方体。颜色方法和三维图形
opengl code, shows the cube in greed. colour method and 3d graphic-opengl code, shows the cube in greed. color method and 3d gra phic
- 2022-02-03 18:55:23下载
- 积分:1
-
它运行一个蜂窝汽车模拟系统,并支持一套可以是Conway的生命游戏的规则,但是可以通过修改以在更广泛的其它蜂窝汽车模拟系统上运行.它使用OpenGL来处理图形,...
它运行一个蜂窝汽车模拟系统,并支持一套可以是Conway的生命游戏的规则,但是可以通过修改以在更广泛的其它蜂窝汽车模拟系统上运行.它使用OpenGL来处理图形,但不支持3D.可能的网格尺寸只受限于处理器的处理能力和内存大小.用户可以放大网格,直到其尺寸填满整个窗口 也可缩小网格直到整个网格是可见的. -CAEL stands for Cellular Automata Engine (Life). It runs a cellular automata simulation with a set of rules that can be Conway s game of life but can be changed to run a wide variety of other cellular automata systems as well. It uses OpenGL for graphics, but is not 3D. Possible grid size is limited only by processor power and memory. The user can zoom in until a single cell fills the window, and out until the whole grid is visible
- 2022-03-19 03:08:10下载
- 积分:1