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

计算机图形学第五章

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

  • SplitADT
    链表L,创建公有成员函数Split(A,B ),创建2个新表A,B,使的A 中含有L中奇数位置元数,B中含L偶数位置元数 (Chain L, create public member function Split (A, B), to create two new tables A, B, A so containing L odd position of a few yuan, B-L even a few locations yuan)
    2007-03-30 20:48:18下载
    积分:1
  • 并行程序设计导论
    适合于新手学习并行化MPI程序以及并行思想学习(This is a parallel program learning material for beginners.)
    2021-01-05 13:28:54下载
    积分:1
  • jiaotongdeng
    交通灯通过数码管显示,几种模式可调,还可以时间可设,适合初学者入门参考学习。(LED traffic lights can be set to several modes adjustable time beginners reference ~ ~ ~)
    2013-08-25 10:02:34下载
    积分:1
  • 423563
    坐标转换,大地坐标经纬度转空间直角坐标的正反算。基于C#,(Coordinate transformation, geodetic latitude and longitude coordinates of the rectangular space, positive and negative transfer count. Based on C#,)
    2011-07-20 10:43:30下载
    积分:1
  • ESP8266资料
    说明:  基于stm32的esp8266 wifi模块开发源码与说明(Source code and description of the development of esp8266 WiFi module based on stm32)
    2019-11-10 23:27:28下载
    积分:1
  • GJKSourceCode
    用C语言开发的一个GJK算法源代码。希望对大家研究机器人路径规划有所帮助。(Developed using C language source code of a GJK algorithm. Research we want to help the robot path planning.)
    2021-03-02 16:59:33下载
    积分:1
  • 简单的防火墙和数据包捕获窗口
    正如这个名字所表明的,这个源码是利用窗口的数据包过滤,来进行基本的过滤,并结合数据包捕获功能网络。这只是一个演示,我不得不做我基于图书馆塔米尔sharpcap过滤
    2022-03-24 03:58:38下载
    积分:1
  • 基于C++CORBA高级编程
    说明:  介绍使用C++开发CORBA接口,及高级编程技巧(This paper introduces how to use C + + to develop CORBA interface and advanced programming skills)
    2021-01-21 22:58:46下载
    积分:1
  • 24点游戏设计
    说明:  24点游戏的关键代码和流程图,适合新手进行学习(Key Codes and Flow Charts for the 24-Point Game)
    2019-01-09 08:33:15下载
    积分:1
  • oled-STC89C52)
    OLED 接口演示例程(51系列) I2C(OLED 4 Interface demonstration routine (51))
    2016-02-25 14:20:44下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载