登录
首页 » c++ » 计算机图形学第五章

计算机图形学第五章

于 2022-09-20 发布 文件大小:1.10 kB
0 104
下载积分: 2 下载次数: 1

代码说明:

 #include// OPenGL实用工具库  constint XL=100; constint XR=300; constint YB=100; constint YT=200; int x1=150,y1=50,x2=250,y2=150;  #defineLIFT 1 #defineRIGHT 2 #defineBOTTOM 4 #defineTOP 8 char encode(floatx,floaty) {  char c=0;  if(xXR) c|=RIGHT;  if(yYT) c|=TOP;  return c; }  void CSLineClip(int&x1,int&y1,int&x2,int&y2,intXL,intXR,intYB,intYT) {  char code1=encode(x1,y1);  char code2=encode(x2,y2);  int x,y;  char code = 3;  while (code1||code2)  {   if(code1 != 0)   {    code=code1;   }else   {

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

发表评论

0 个回复

  • bped.cpp
    bped source code inc plus
    2010-02-08 21:05:48下载
    积分:1
  • 不规则图形的填充
    说明:  用VC开发的图形填充算法,简单实用, 希望对你的图形开发有所帮助, 如果有什么问题,可以与我联系(development of the VC graphics filling algorithm, simple and practical, and I hope to your graphics development will help, if any, can contact me)
    2005-11-29 15:22:20下载
    积分:1
  • MCSharpLib
    C#基础库,封装DES,AES,DAS加密模块,Sql&Mysql 数据库操作模块(C# foundation library package DES, AES, DAS encryption module, Sql & Mysql operations module)
    2015-02-02 14:57:45下载
    积分:1
  • DeMultiwave
    读取segy文件,消除多次波 的地震处理运用(segy read documents, eliminating the multiple use of seismic processing)
    2007-02-16 12:23:48下载
    积分:1
  • BL75R04
    继上次源码开放后,本次把BL芯片信息公开下载,供大家与程序操作 BL75R04SM 是遵从 ISO/IEC15693 无线接口的2Kbit 电子标签芯片。可制作成电子 标签或非接触卡,主要适用于大中型物流、商品防盗防伪、工业控制、门禁系统、军 事跟踪、路桥收费、畜牧养殖、图书文档管理、特种设备和金融票据等领域。具备防 2 冲突功能,读写器能同时快速处理多个芯片。片内2K 位 E PROM,分成64block, 每 block 有4 字节的数据存储区,2 个位的块锁存区,管理存储区2 block ,全球唯一 的64 位标示码。 (BL75R04SM 2 K bit EEPROM radio frequency identification Rf interface fully comply with ISO15693 standards This program can be more data data and operation BL75R04SM is follow ISO/IEC15693 wireless interface Kbit electronic tag 2 chip. Can be made into electronic Tag or the contact card, mainly is suitable for the large and medium-sized logistics, commodity anti-theft security, industrial control, access control system, the army Things tracking, road, bridge charges, animal husbandry and breeding, books document management, special equipment and financial instruments, etc. Have the 2 Conflict, literacy can at the same time the function DuoGe rapid processing chip. Within 2 K bit E of PROM, which divided into 64, Every four bytes of data which storage area, two bits of the latch area, the area of storage management, the only global which 2 A mark of 64 yards. )
    2011-06-29 14:08:41下载
    积分:1
  • MFCaVideo
    由opencv2.3.1+vs2008编写的界面程序,可以通过界面对话框上的控制按钮来控制笔记本电脑上相机的开启与关闭。(Opencv2.3.1+vs2008 written by the interface program, you can control on your laptop on and off the camera via the control buttons on the dialog interface.)
    2013-12-10 14:15:44下载
    积分:1
  • ht1621
    ht1261 STM32 驱动,亲测可用(ht1621 driver for STM32.tested.)
    2019-05-16 14:33:08下载
    积分:1
  • C# ScanPort 局域网端口扫描程序
    C#端口扫描程序,适用于局域网计算机的扫描,扫描时将遍历局域网中的工作组,并将计算机名显示在下拉列表控件中,用户可指定某电脑的端口扫描范围。判断工作组名称,遍历指定工作组中的所有计算机名称,并显示在ListBox控件中:   //实例化DirectoryEntry对象,以便获得局域网组名和计算机名   DirectoryEntry DEMain = new DirectoryEntry("WinNT:");   TcpClient TClient = null;//实例化连接侦听对象   private Thread myThread; //实例化线程对象   string strName = ""; //记录选择的计算机名称   int intflag = 0; //扫描到的端口号   int intport = 0; //记录已用端口号   int intstart = 0; //扫描的开始端口号   int intend = 0; //扫描的结束端口号   详细情况请下载源码。
    2023-05-16 16:35:03下载
    积分:1
  • 嵌入式C语言
    基于STM32的万年历设计,数码管显示,掉电保护,按键可调年月日时分秒
    2023-06-13 15:35:23下载
    积分:1
  • PCRat
    呵呵,一款功能非常强大的远控软件,可以非常好的学习vc++(Oh, a very powerful remote control software, can be very good to learn vc++)
    2011-08-20 16:45:03下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载