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

OpenGL绘制任意大小的矩形

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

代码说明:

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

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

发表评论

0 个回复

  • BoxDimension_TS
    求混沌时间序列的盒子维(box dimension)覆盖法(Seeking chaotic time series box dimensions (box dimension) covering method)
    2015-03-18 16:33:47下载
    积分:1
  • XFEM
    一本关于介绍2015年发表的关于扩展有限元的SCI论文的论文集书籍,非常实用(In the standard FEM, cracks are required to follow element edges for the discontinuity modeling. In contrast, the crack geometry in the extended finite element method (XFEM) need not be aligned with the element edges and thus is independent of the background mesh.)
    2015-10-14 13:00:48下载
    积分:1
  • MFC c++开发的运动控制卡程序
    运动控制有很多种方法,51单片机,avrd,msp430单片机,甚至是arm7,arm9.arm11,还有最新的stm32单片机,然而这都有一些缺陷,算法需要自己来写,运动控制卡包含许多控制算法,点位运动,插补运动等,大大简化了控制算法,运用在数控系统,机器人系统比较多,这个vc源码让初学者对mfc C++编写控制卡程序有一个基本的认识。
    2022-06-21 11:56:58下载
    积分:1
  • 经典的100个c算法
    说明:  Classic 100 C language algorithms
    2020-06-18 14:00:02下载
    积分:1
  • 穿目前所有还原下载者 C 源码
    说明:  [C/C++] 穿目前所有还原的下载者 C++源码 下载者包括四个工程: CDown:生成器 userinit:真正的下载者 Dat:驱动和下载者的安装程序 pass:驱动程序 原理:驱动程序可以穿透还原卡,并且可以修改系统文件,这里是通过修改系统文件userinit.exe来实现的。userinit.exe的功能很简单,就是启动explorer.exe。这里就是通过替换uerinit.exe,伪造一个userinit.exe。这个伪造的程序可以实现uerinit.exe的原始功能,并可以实现自定义的功能,比如下载执行,发送数据。 驱动的功能就是替换指定的系统文件。 将userinit Dat pass 编译出来的文件放到cdown的res里,再生成出生成器就可以使用它生成下载者,也就是这个穿还原的程序([C/C++] wear all current restore downloader C++ source code The download includes four projects: CDown: generator Userinit: a true Downloader Dat: driver and downloader installer Pass: Driver Principle: driver can penetrate the restore card, and you can modify the system file, here is through the modification of system file userinit.exe to achieve. The function of userinit.exe is simple, that is, to start explorer.exe. This is where you forge a userinit.exe by replacing uerinit.exe. This fake program can realize the original function of uerinit.exe, and can implement custom functions, such as downloading, executing and sending data. The driver's function is to replace the specified system files. The userinit Dat pass compiled files into the Cdown res, regeneration into the generator, you can use it to generate the download, that is, the process of wearing a restore)
    2021-03-21 03:59:17下载
    积分:1
  • winceDrive
    包括wince的开发入门和wince驱动开发,是驱动开发的很好的资料。(Including the development of entry and wince wince-driven development, is driving the development of good information.)
    2011-10-14 09:43:06下载
    积分:1
  • ChartForm
    使用C#编写的一个现实波形的界面程序,可以对波形进行放大和复原操作。同时还有对波形的颜色和背景现实颜色的操作。改程序同时具备波形数据的加载和保存。保存格式有图片,文本文档或者是Excel数据格式。(Interface program using C# to write a real waveform, the waveform zoom and recovery operations. As well as the operation of the waveform color and background realistic color. The reform program along with the load and save waveform data. The save format pictures, text documents or Excel data format.)
    2012-07-06 10:13:37下载
    积分:1
  • SSMV11CD-PowerPC-VXWorks-DEMO
    基于VXWORKS的MVB列车网络BSP开发实例,对于初学者有较好的借鉴意义。(The source code is a good example to beginner to learn vxworks bsp development about mvb network)
    2021-01-03 17:58:56下载
    积分:1
  • fdtd3D
    计算电磁学中FDTD(有限时域差分法)三维的算法程序。(FDTD (finite difference time domain method) three-dimensional algorithm program in computational electromagnetics.)
    2012-03-22 23:00:03下载
    积分:1
  • ds18b20-timer-1602show.tar
    DS18B20温度1602显示,51单片机使用,驱动代码,可用(1602 DS18B20 temperature display, 51 single use, driver code, available)
    2013-12-14 21:33:30下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载