-
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 is a project of shot&bomb of c++ of openGL for windows...
windows下 基于c++ 用opengl实现 的 射击和爆炸的源码-this is a project of shot&bomb of c++ of openGL for windows...
- 2022-04-12 12:54:58下载
- 积分:1
-
opengl基本图元入门代码
opengl图形学刚开始入门十种基本图元的绘制。
代码文件夹里面包括注释的一些代码 每一个glBegin glEnd 之间的代码属于一种图元。
这个只是opengl的开始。后面的东西还需要一步一步的慢慢掌握。
- 2022-06-21 05:15:51下载
- 积分:1
-
一本关于基于MFC环境编程的OpenGL书籍,对于那些需要用MFC来进行OpenGL编程的人应该有些帮助。...
一本关于基于MFC环境编程的OpenGL书籍,对于那些需要用MFC来进行OpenGL编程的人应该有些帮助。-MFC about an environment based on OpenGL programming books, for those who need to use MFC to OpenGL programming that some people should assist.
- 2022-08-20 23:41:38下载
- 积分:1
-
Application vb language, combined with the development of three
应用vb语言,结合opengl控件开发的三维显示-Application vb language, combined with the development of three-dimensional display opengl Control
- 2022-06-02 16:44:23下载
- 积分:1
-
此代码向你展示OPENGL的强大功能,一个完美的茶壶
此代码向你展示OPENGL的强大功能,一个完美的茶壶-This code to your OPENGL display the power of a perfect teapot
- 2022-03-03 18:21:18下载
- 积分:1
-
使用Visual Basic的OpenGL的例子
OPENGL Example using Visual Basic
- 2022-07-14 21:36:17下载
- 积分:1
-
根据nehe的教程5修改而来的简单的漫游程序。
源码包括整个工程文件...
根据nehe的教程5修改而来的简单的漫游程序。
源码包括整个工程文件-According to nehe tutorial five changes from the simple roaming procedure. Source include the entire project file
- 2022-07-25 10:33:39下载
- 积分:1
-
opengl one small banner texture
opengl纹理 一面小旗帜-opengl one small banner texture
- 2022-04-23 00:58:09下载
- 积分:1
-
这是Nehe的OOP的OPenGL代码演示
这是Nehe的OOP的OPenGL代码演示-This is the OOP Nehe OpenGL demo code
- 2022-01-28 15:38:40下载
- 积分:1