登录
首页 » OpenGL图像 » DDA 算法的实现

DDA 算法的实现

于 2022-08-10 发布 文件大小:9.59 MB
0 176
下载积分: 2 下载次数: 1

代码说明:

数字微分分析器或只是简略的 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

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • Draw a picture which there are a number of small star around a big star.Method:...
    绘制一个这样的图案,一个大星周围有一系列的小星,使用方法:原点转移。-Draw a picture which there are a number of small star around a big star.Method: central point transformation
    2022-02-03 01:09:40下载
    积分:1
  • 使用OpenGL库,C Builder环境下地形仿真系统三
    利用OpenGL函数库,在C++Builder环境下实现三位地形的仿真显示,实现了对地图的放大,缩小,旋转,移动等操作,对不同的高程使用不同的颜色加以标记没,并增加了光照效果,使显示更逼真!-use OpenGL libraries, the C Builder environment under three terrain simulation showed that the realization of the right of the map to zoom, rotate, such as mobile operators, the use of different elevation of different colors, not to be labeled, and to increase the effects of light, shows a more realistic!
    2023-08-01 12:45:03下载
    积分:1
  • 2022-02-21 06:57:30下载
    积分:1
  • 简单的程序,按键打开盖子,按下按钮和按钮…
    简单的OpenGL程序,按O键打开盖子,按C键关闭盖子。-simple procedure, according to O bond opened the lid and press the C button and close the lid.
    2022-03-26 04:28:36下载
    积分:1
  • 在vc的环境下关于mfc的opengl的窗口设置的简单例子,程序很简单,对opengl的初学者应该很有用....
    在vc的环境下关于mfc的opengl的窗口设置的简单例子,程序很简单,对opengl的初学者应该很有用.-in vc environment on the opengl mfc the window set up a simple example, the procedures are simple, right opengl beginners should be very useful.
    2022-02-02 23:14:07下载
    积分:1
  • OpenGL network programming, enabling user data between each other
    OPENGL网络程序,实现用户间的数据互传-OpenGL network programming, enabling user data between each other-
    2022-05-20 15:04:29下载
    积分:1
  • OpenGL窗口
    Opengl windows 驱动的经典规范文档-Opengl windows-driven classic normative documents
    2023-08-20 13:20:03下载
    积分:1
  • nehe
    nehe-opengl(21-25)
    2022-05-15 08:57:32下载
    积分:1
  • 简单的 openGL
    这段代码关于 opengl 和绘制一个简单的家。有关更多信息,请阅读自述文件。
    2022-02-05 03:41:14下载
    积分:1
  • 利用OpenGL实现GPU和三
    使用GPU和OpenGL实现的三维水波模拟,借助纹理映射模拟水波的倒影。-The use of GPU and OpenGL realize three-dimensional wave simulation, using texture mapping of the reflection wave simulation.
    2022-08-08 02:51:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载