-
01
说明: 3.实验原理:
示范代码原理参见教材直线光栅化一节中的DDA算法。下面介绍下OpenGL画线的一些基础知识和glutReshapeFunc()函数。
(1)数学上的直线没有宽度,但OpenGL的直线则是有宽度的。同时,OpenGL的直线必须是有限长度,而不是像数学概念那样是无限的。可以认为,OpenGL的“直线”概念与数学上的“线段”接近,它可以由两个端点来确定。这里的线由一系列顶点顺次连结而成,有闭合和不闭合两种。
前面的实验已经知道如何绘“点”,那么OpenGL是如何知道拿这些顶点来做什么呢?是一个一个的画出来,还是连成线?或者构成一个多边形?或是做其它事情呢?为了解决这一问题,OpenGL要求:指定顶点的命令必须包含在glBegin函数之后,glEnd函数之前(否则指定的顶点将被忽略),并由glBegin来指明如何使用这些点。
(DDAsuanfa)
- 2009-06-21 09:28:44下载
- 积分:1
-
Internal-comparison-algorithm
系统用srand()函数产生一个以当前时间开始的随机种子。其产生的种子用选择排序、冒泡排序、快速排序将顺序表中的数字排好,设置变量记录每种排序关键字的移动次数和关键字的比较次数。选择排序:利用L.length-1个循环,将随机种子按从小到大的顺序排好。(System with srand () function generates a random seed to start the current time. Which produces seeds with selection sort, bubble sort, quick sort the order of numbers in the table lined up, set the variable record number of comparisons for each mobile number and keyword sort key. Sort: use L.length-1 cycle, the random seed small to large order lined up.
)
- 2015-03-14 12:39:38下载
- 积分:1
-
EBOOK
网上书店asp.net源码,实现购物车功能,买卖,账单等(source code of asp.net book shop)
- 2010-03-08 10:52:01下载
- 积分:1
-
opencv 寻找已知物体
使用SURF算子检测关键点
调用detect函数检测出SURF特征关键点,保存在vector容器中
计算描述符(特征向量)
使用FLANN匹配算子进行匹配
计算出关键点之间距离的最大值和最小值
存下匹配距离小于3*min_dist的点对
绘制出匹配到的关键点
- 2022-03-23 23:29:41下载
- 积分:1
-
Paway.Windows.Forms 仿qq登入页面+右下角消息提示
Paway.Windows.Forms 仿qq登入页面+右下角消息提示
- 2014-04-18下载
- 积分:1
-
FFT
提供函数能进行1维2维的FFT,输入输出的序列长度应为2的整数次方倍(Provides functions can be one-dimensional two-dimensional FFT, sequence length input and output should be an integer power of 2 times)
- 2014-01-07 22:10:34下载
- 积分:1
-
Experiment_C#
读写器的C#开发程序, 主要开发读写器的读写功能和各个频段下的操作(Reader C# development process, the main development of read-write function and the operation of each frequency band)
- 2017-07-27 20:38:50下载
- 积分:1
-
基于STM32的光立方源码
基于stm32单片机的全彩光立方的代码,注释清晰,拿来学习。(STM32 microcontroller based on the Quan Caiguang cube code, clear notes, to learn.)
- 2017-11-14 21:28:39下载
- 积分:1
-
A7139
说明: 笙科最新低频段无线射频芯片A7139资料,包括C源代码 中文手册 芯片可运行在 315/433/470/510/868/915MHz的 ISM 频段 数据率可编程从 2K 到 250Kbps(Sheng Ke's latest low-frequency radio frequency chip A7139 data, including C source code, Chinese manual chip, can run in the ISM frequency band of 315/433/470/510/868/915MHz, and data rate is programmable, from 2K to 250Kbps.)
- 2018-03-29 14:41:54下载
- 积分:1
-
chelianggengzongjiance
车辆检测与跟踪,实时跟踪车辆状态, 不错的方案(Car Detection and Tracking)
- 2013-08-05 19:45:07下载
- 积分:1