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

计算机图形学第五章

于 2022-09-20 发布 文件大小:1.10 kB
0 77
下载积分: 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 个回复

  • ewmark
    newmark-b法的简要程序,供大家使用(newmark-b)
    2010-03-06 12:49:10下载
    积分:1
  • DMAPADC
    单片机dspic33fj128gp310, 使用DMA+ADC采样 DMA缓冲区以分散集中模式写入(dspic33fj128gp310 DMA+ADC DMA buffer is written to distribute centralized mode)
    2013-05-23 08:56:22下载
    积分:1
  • C# 数据库备份还原 实例源码下载
    用于操作数据库备份还原的功能,将lib下的 dll文件 拷贝至 debug目录 即可运行 原理:Interop.SQLDMO.dll实现
    2015-04-14下载
    积分:1
  • sqlDataGrid, sql and c# using the combination of datagrid control
    sqlDataGrid,sql和c#结合的datagrid控件使用-sqlDataGrid, sql and c# using the combination of datagrid control
    2022-10-06 00:10:03下载
    积分:1
  • 家庭财务管理,主要管理家庭财务的支出与收入。
    家庭财务管理,主要管理家庭财务的支出与收入。-family financial management, financial management of family expenses and income.
    2023-06-13 14:15:02下载
    积分:1
  • weatherinfo
    c语言使用socket获取中央气象台天气信息,有城市名和城市ID对应表,JSON解析。(c language use socket to get the weather information of the Central Meteorological Station, the city name and city ID corresponding table, JSON parsing.)
    2013-03-20 08:28:05下载
    积分:1
  • anim_pres
    fortran的matlab代码,可以将fortran仿真结果可视化(fortran matlab code, you can visualize simulation results fortran)
    2014-02-20 21:05:27下载
    积分:1
  • TIGERPLAY
    说明:  添翼虎MP3播放器及界面实现源程序 (1.2M VC 作者:添翼虎)(1228KB)(Tim Maverick MP3 player and graphic interface and source code (1.2M VC of: Tim Maverick) (1228KB))
    2010-04-08 05:26:16下载
    积分:1
  • Acquisition-process
    c8051f060单片机的采集存储程序,利用DMA技术,完成快速采集存储,(c8051f060 microcontroller acquisition process, use DMA technology to complete the rapid acquisition and storage,)
    2013-10-16 19:33:24下载
    积分:1
  • STM32F103SD卡升级跟IAP升级
    STM32F103的BootLoader功能,支持SD卡升级功能,比较适合于初级或者新人查阅,不喜勿喷。。。。
    2022-08-06 03:43:36下载
    积分:1
  • 696518资源总数
  • 105578会员总数
  • 20今日下载