登录
首页 » c++ » OpenGL绘制任意大小的矩形

OpenGL绘制任意大小的矩形

于 2022-02-26 发布 文件大小:366.91 kB
0 91
下载积分: 2 下载次数: 1

代码说明:

通过拖动鼠标,先点击鼠标设置起始点,然后按住不动拖动鼠标绘制任意矩形,确定形状后再松开鼠标完成绘制。程序能够往任意方向拖动鼠标,并显示矩形的绘制过程,绘制完一个矩形可再进行下一个矩形的绘制,能够实现图形重叠,互不影响。

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

发表评论

0 个回复

  • kuozhan-complete-finished
    MATLAB对LED光源扩展,改变原来的光源发光强度分布(Extension of LED light source by matlab,Change the light intensity distribution of the original light source)
    2020-11-30 20:39:27下载
    积分:1
  • 33385779lbfill
    双三次Bezier曲面的绘制,曲面旋转,OPEN GL.C++语言。(Bicubic Bezier surface rendering, surface rotation, OPEN GL.C++ language.)
    2013-07-03 18:11:48下载
    积分:1
  • 光源追踪
    通过光明电阻检测实现对光源的自动追踪,并在LCD12864显示对应光照强度。(The light source is automatically tracked by light resistance detection, and the corresponding illumination intensity is displayed on LCD12864.)
    2020-06-19 10:40:02下载
    积分:1
  • hao
    本PPT介绍了协方差函数及其计算公式,变异函数及其计算公式,克里格插值方法的过程,最后给了一个基于克里金插值的实例.(This PPT introduces covariance function and its formula for calculating the variation function and its formula, Kriging interpolation process, and finally given an example based Kriging interpolation.)
    2009-09-24 12:02:35下载
    积分:1
  • ESPRIT算法的性能与信噪比的关系
    说明:  其中一项是ESPRIT算法的性能与信噪比的关系,有矩阵运算,出图对比(One of them is the relationship between the performance of ESPRIT algorithm and signal-to-noise ratio, with matrix operation and plot comparison)
    2019-10-22 11:17:20下载
    积分:1
  • 基于STM32实现矩阵按键控制数码管显示的长按,短按,以及状态切换
        此代码能实现按键对数码管的控制,和各种状态切换,数码管有9个用到7个其中两个暂时还没用到。按键11个。定时器对数码管时间显示计时,按键实现数码管的加减,其中包括短按按键加减1,长按加减10的功能。设置完之后按下开始按键实现计时,按下停止按键实现数码管显示的数停止计时。停止按键有三种或者两种状态切换,停止,回复设定的值,以及清零。
    2022-01-31 10:50:36下载
    积分:1
  • xianxinglianbiao
    c语言编写链式线性表的初始化,创建,插入删除等操作。(c language chained linear table is initialized, create, insert and delete operations.)
    2013-11-09 14:30:30下载
    积分:1
  • 串行通信
    51单片机串行通信的PROTUES仿真,使用了串行通信芯片,实现双机通信(Serial communication of 51 single chip microcomputer)
    2018-08-07 09:36:38下载
    积分:1
  • 图书馆管理系统
    C语言作的图书管理系统 该程序能实现对一本书进行采编入库、清除库存、借阅图书、归还图书且记录借书的用户信息,还有查找书、显示图书目录的功能,并且以该书的书号为关键字建立一个B_树。(C language does books management system management system this procedure can realize to a book carries on picks enrolls the storehouse, the elimination stock, borrows the books, returns the books also the record borrows the book the user information, but also has the search book, the demonstration library catalog function, and establishes a B_ tree take this book book number as the essential character. )
    2020-12-17 17:19:11下载
    积分:1
  • airkill_web
    说明:  现在比较流程的airkiss在公众号进行配置wifi密码的功能,(Now compare the airkiss of the process to configure the WiFi password on the public number.)
    2020-06-22 00:40:01下载
    积分:1
  • 696516资源总数
  • 106658会员总数
  • 16今日下载